OnPremiseSqlResourceDetails Class

public final class OnPremiseSqlResourceDetails
extends OnPremiseResourceDetails

Details of the On Premise Sql resource that was assessed.

Constructor Summary

Constructor Description
OnPremiseSqlResourceDetails()

Creates an instance of OnPremiseSqlResourceDetails class.

Method Summary

Modifier and Type Method and Description
String databaseName()

Get the databaseName property: The Sql database name installed on the machine.

String serverName()

Get the serverName property: The Sql server name installed on the machine.

void validate()

Validates the instance.

OnPremiseSqlResourceDetails withDatabaseName(String databaseName)

Set the databaseName property: The Sql database name installed on the machine.

OnPremiseSqlResourceDetails withMachineName(String machineName)

Set the machineName property: The name of the machine.

OnPremiseSqlResourceDetails withServerName(String serverName)

Set the serverName property: The Sql server name installed on the machine.

OnPremiseSqlResourceDetails withSourceComputerId(String sourceComputerId)

Set the sourceComputerId property: The oms agent Id installed on the machine.

OnPremiseSqlResourceDetails withVmuuid(String vmuuid)

Set the vmuuid property: The unique Id of the machine.

OnPremiseSqlResourceDetails withWorkspaceId(String workspaceId)

Set the workspaceId property: Azure resource Id of the workspace the machine is attached to.

Methods inherited from OnPremiseResourceDetails

Methods inherited from java.lang.Object

Constructor Details

OnPremiseSqlResourceDetails

public OnPremiseSqlResourceDetails()

Creates an instance of OnPremiseSqlResourceDetails class.

Method Details

databaseName

public String databaseName()

Get the databaseName property: The Sql database name installed on the machine.

Returns:

the databaseName value.

serverName

public String serverName()

Get the serverName property: The Sql server name installed on the machine.

Returns:

the serverName value.

validate

public void validate()

Validates the instance.

Overrides:

OnPremiseSqlResourceDetails.validate()

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.

withMachineName

public OnPremiseSqlResourceDetails withMachineName(String machineName)

Set the machineName property: The name of the machine.

Overrides:

OnPremiseSqlResourceDetails.withMachineName(String machineName)

Parameters:

machineName

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.

withSourceComputerId

public OnPremiseSqlResourceDetails withSourceComputerId(String sourceComputerId)

Set the sourceComputerId property: The oms agent Id installed on the machine.

Overrides:

OnPremiseSqlResourceDetails.withSourceComputerId(String sourceComputerId)

Parameters:

sourceComputerId

withVmuuid

public OnPremiseSqlResourceDetails withVmuuid(String vmuuid)

Set the vmuuid property: The unique Id of the machine.

Overrides:

OnPremiseSqlResourceDetails.withVmuuid(String vmuuid)

Parameters:

vmuuid

withWorkspaceId

public OnPremiseSqlResourceDetails withWorkspaceId(String workspaceId)

Set the workspaceId property: Azure resource Id of the workspace the machine is attached to.

Overrides:

OnPremiseSqlResourceDetails.withWorkspaceId(String workspaceId)

Parameters:

workspaceId

Applies to