Class OnPremiseSqlResourceDetails


public final class OnPremiseSqlResourceDetails extends OnPremiseResourceDetails
Details of the On Premise Sql resource that was assessed.
  • Constructor Details

    • OnPremiseSqlResourceDetails

      public OnPremiseSqlResourceDetails()
  • Method Details

    • serverName

      public String serverName()
      Get the serverName property: The Sql server name installed on the machine.
      Returns:
      the serverName value.
    • withServerName

      public OnPremiseSqlResourceDetails withServerName(String serverName)
      Set the serverName property: The Sql server name installed on the machine.
      Parameters:
      serverName - the serverName value to set.
      Returns:
      the OnPremiseSqlResourceDetails object itself.
    • databaseName

      public String databaseName()
      Get the databaseName property: The Sql database name installed on the machine.
      Returns:
      the databaseName value.
    • withDatabaseName

      public OnPremiseSqlResourceDetails withDatabaseName(String databaseName)
      Set the databaseName property: The Sql database name installed on the machine.
      Parameters:
      databaseName - the databaseName value to set.
      Returns:
      the OnPremiseSqlResourceDetails object itself.
    • withWorkspaceId

      public OnPremiseSqlResourceDetails withWorkspaceId(String workspaceId)
      Set the workspaceId property: Azure resource Id of the workspace the machine is attached to.
      Overrides:
      withWorkspaceId in class OnPremiseResourceDetails
      Parameters:
      workspaceId - the workspaceId value to set.
      Returns:
      the OnPremiseResourceDetails object itself.
    • withVmuuid

      public OnPremiseSqlResourceDetails withVmuuid(String vmuuid)
      Set the vmuuid property: The unique Id of the machine.
      Overrides:
      withVmuuid in class OnPremiseResourceDetails
      Parameters:
      vmuuid - the vmuuid value to set.
      Returns:
      the OnPremiseResourceDetails object itself.
    • withSourceComputerId

      public OnPremiseSqlResourceDetails withSourceComputerId(String sourceComputerId)
      Set the sourceComputerId property: The oms agent Id installed on the machine.
      Overrides:
      withSourceComputerId in class OnPremiseResourceDetails
      Parameters:
      sourceComputerId - the sourceComputerId value to set.
      Returns:
      the OnPremiseResourceDetails object itself.
    • withMachineName

      public OnPremiseSqlResourceDetails withMachineName(String machineName)
      Set the machineName property: The name of the machine.
      Overrides:
      withMachineName in class OnPremiseResourceDetails
      Parameters:
      machineName - the machineName value to set.
      Returns:
      the OnPremiseResourceDetails object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class OnPremiseResourceDetails
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.