JobTarget Class
- java.
lang. Object - com.
microsoft. azure. management. sql. JobTarget
- com.
public class JobTarget
A job target, for example a specific database or a container of databases that is evaluated during job execution.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
databaseName()
Get the target database name. |
String |
elasticPoolName()
Get the target elastic pool name. |
Job |
membershipType()
Get whether the target is included or excluded from the group. Possible values include: 'Include', 'Exclude'. |
String |
refreshCredential()
Get the resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target. |
String |
serverName()
Get the target server name. |
String |
shardMapName()
Get the target shard map. |
Job |
type()
Get the target type. Possible values include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', 'SqlServer'. |
Job |
withDatabaseName(String databaseName)
Set the target database name. |
Job |
withElasticPoolName(String elasticPoolName)
Set the target elastic pool name. |
Job |
withMembershipType(JobTargetGroupMembershipType membershipType)
Set whether the target is included or excluded from the group. Possible values include: 'Include', 'Exclude'. |
Job |
withRefreshCredential(String refreshCredential)
Set the resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target. |
Job |
withServerName(String serverName)
Set the target server name. |
Job |
withShardMapName(String shardMapName)
Set the target shard map. |
Job |
withType(JobTargetType type)
Set the target type. Possible values include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', 'SqlServer'. |
Method Details
databaseName
public String databaseName()
Get the target database name.
Returns:
elasticPoolName
public String elasticPoolName()
Get the target elastic pool name.
Returns:
membershipType
public JobTargetGroupMembershipType membershipType()
Get whether the target is included or excluded from the group. Possible values include: 'Include', 'Exclude'.
Returns:
refreshCredential
public String refreshCredential()
Get the resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target.
Returns:
serverName
public String serverName()
Get the target server name.
Returns:
shardMapName
public String shardMapName()
Get the target shard map.
Returns:
type
public JobTargetType type()
Get the target type. Possible values include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', 'SqlServer'.
Returns:
withDatabaseName
public JobTarget withDatabaseName(String databaseName)
Set the target database name.
Parameters:
Returns:
withElasticPoolName
public JobTarget withElasticPoolName(String elasticPoolName)
Set the target elastic pool name.
Parameters:
Returns:
withMembershipType
public JobTarget withMembershipType(JobTargetGroupMembershipType membershipType)
Set whether the target is included or excluded from the group. Possible values include: 'Include', 'Exclude'.
Parameters:
Returns:
withRefreshCredential
public JobTarget withRefreshCredential(String refreshCredential)
Set the resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target.
Parameters:
Returns:
withServerName
public JobTarget withServerName(String serverName)
Set the target server name.
Parameters:
Returns:
withShardMapName
public JobTarget withShardMapName(String shardMapName)
Set the target shard map.
Parameters:
Returns:
withType
public JobTarget withType(JobTargetType type)
Set the target type. Possible values include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', 'SqlServer'.
Parameters:
Returns:
Applies to
Azure SDK for Java