Class OnPremiseSqlResourceDetails
java.lang.Object
com.azure.resourcemanager.security.models.ResourceDetails
com.azure.resourcemanager.security.models.OnPremiseResourceDetails
com.azure.resourcemanager.security.models.OnPremiseSqlResourceDetails
Details of the On Premise Sql resource that was assessed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the databaseName property: The Sql database name installed on the machine.Get the serverName property: The Sql server name installed on the machine.void
validate()
Validates the instance.withDatabaseName
(String databaseName) Set the databaseName property: The Sql database name installed on the machine.withMachineName
(String machineName) Set the machineName property: The name of the machine.withServerName
(String serverName) Set the serverName property: The Sql server name installed on the machine.withSourceComputerId
(String sourceComputerId) Set the sourceComputerId property: The oms agent Id installed on the machine.withVmuuid
(String vmuuid) Set the vmuuid property: The unique Id of the machine.withWorkspaceId
(String workspaceId) Set the workspaceId property: Azure resource Id of the workspace the machine is attached to.Methods inherited from class com.azure.resourcemanager.security.models.OnPremiseResourceDetails
machineName, sourceComputerId, vmuuid, workspaceId
-
Constructor Details
-
OnPremiseSqlResourceDetails
public OnPremiseSqlResourceDetails()
-
-
Method Details
-
serverName
Get the serverName property: The Sql server name installed on the machine.- Returns:
- the serverName value.
-
withServerName
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
Get the databaseName property: The Sql database name installed on the machine.- Returns:
- the databaseName value.
-
withDatabaseName
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
Set the workspaceId property: Azure resource Id of the workspace the machine is attached to.- Overrides:
withWorkspaceId
in classOnPremiseResourceDetails
- Parameters:
workspaceId
- the workspaceId value to set.- Returns:
- the OnPremiseResourceDetails object itself.
-
withVmuuid
Set the vmuuid property: The unique Id of the machine.- Overrides:
withVmuuid
in classOnPremiseResourceDetails
- Parameters:
vmuuid
- the vmuuid value to set.- Returns:
- the OnPremiseResourceDetails object itself.
-
withSourceComputerId
Set the sourceComputerId property: The oms agent Id installed on the machine.- Overrides:
withSourceComputerId
in classOnPremiseResourceDetails
- Parameters:
sourceComputerId
- the sourceComputerId value to set.- Returns:
- the OnPremiseResourceDetails object itself.
-
withMachineName
Set the machineName property: The name of the machine.- Overrides:
withMachineName
in classOnPremiseResourceDetails
- Parameters:
machineName
- the machineName value to set.- Returns:
- the OnPremiseResourceDetails object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classOnPremiseResourceDetails
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-