Class JobTarget
java.lang.Object
com.microsoft.azure.management.sql.JobTarget
A job target, for example a specific database or a container of databases
that is evaluated during job execution.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the target database name.Get the target elastic pool name.Get whether the target is included or excluded from the group.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.Get the target server name.Get the target shard map.type()
Get the target type.withDatabaseName
(String databaseName) Set the target database name.withElasticPoolName
(String elasticPoolName) Set the target elastic pool name.withMembershipType
(JobTargetGroupMembershipType membershipType) Set whether the target is included or excluded from the group.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.withServerName
(String serverName) Set the target server name.withShardMapName
(String shardMapName) Set the target shard map.withType
(JobTargetType type) Set the target type.
-
Constructor Details
-
JobTarget
public JobTarget()
-
-
Method Details
-
membershipType
Get whether the target is included or excluded from the group. Possible values include: 'Include', 'Exclude'.- Returns:
- the membershipType value
-
withMembershipType
Set whether the target is included or excluded from the group. Possible values include: 'Include', 'Exclude'.- Parameters:
membershipType
- the membershipType value to set- Returns:
- the JobTarget object itself.
-
type
Get the target type. Possible values include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', 'SqlServer'.- Returns:
- the type value
-
withType
Set the target type. Possible values include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', 'SqlServer'.- Parameters:
type
- the type value to set- Returns:
- the JobTarget object itself.
-
serverName
Get the target server name.- Returns:
- the serverName value
-
withServerName
Set the target server name.- Parameters:
serverName
- the serverName value to set- Returns:
- the JobTarget object itself.
-
databaseName
Get the target database name.- Returns:
- the databaseName value
-
withDatabaseName
Set the target database name.- Parameters:
databaseName
- the databaseName value to set- Returns:
- the JobTarget object itself.
-
elasticPoolName
Get the target elastic pool name.- Returns:
- the elasticPoolName value
-
withElasticPoolName
Set the target elastic pool name.- Parameters:
elasticPoolName
- the elasticPoolName value to set- Returns:
- the JobTarget object itself.
-
shardMapName
Get the target shard map.- Returns:
- the shardMapName value
-
withShardMapName
Set the target shard map.- Parameters:
shardMapName
- the shardMapName value to set- Returns:
- the JobTarget object itself.
-
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:
- the refreshCredential value
-
withRefreshCredential
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:
refreshCredential
- the refreshCredential value to set- Returns:
- the JobTarget object itself.
-