public final class JobTarget extends Object
| Constructor and Description |
|---|
JobTarget() |
| Modifier and Type | Method and Description |
|---|---|
String |
databaseName()
Get the databaseName property: The target database name.
|
String |
elasticPoolName()
Get the elasticPoolName property: The target elastic pool name.
|
JobTargetGroupMembershipType |
membershipType()
Get the membershipType property: Whether the target is included or excluded from the group.
|
String |
refreshCredential()
Get the refreshCredential property: 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 serverName property: The target server name.
|
String |
shardMapName()
Get the shardMapName property: The target shard map.
|
JobTargetType |
type()
Get the type property: The target type.
|
void |
validate()
Validates the instance.
|
JobTarget |
withDatabaseName(String databaseName)
Set the databaseName property: The target database name.
|
JobTarget |
withElasticPoolName(String elasticPoolName)
Set the elasticPoolName property: The target elastic pool name.
|
JobTarget |
withMembershipType(JobTargetGroupMembershipType membershipType)
Set the membershipType property: Whether the target is included or excluded from the group.
|
JobTarget |
withRefreshCredential(String refreshCredential)
Set the refreshCredential property: 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.
|
JobTarget |
withServerName(String serverName)
Set the serverName property: The target server name.
|
JobTarget |
withShardMapName(String shardMapName)
Set the shardMapName property: The target shard map.
|
JobTarget |
withType(JobTargetType type)
Set the type property: The target type.
|
public JobTargetGroupMembershipType membershipType()
public JobTarget withMembershipType(JobTargetGroupMembershipType membershipType)
membershipType - the membershipType value to set.public JobTargetType type()
public JobTarget withType(JobTargetType type)
type - the type value to set.public String serverName()
public JobTarget withServerName(String serverName)
serverName - the serverName value to set.public String databaseName()
public JobTarget withDatabaseName(String databaseName)
databaseName - the databaseName value to set.public String elasticPoolName()
public JobTarget withElasticPoolName(String elasticPoolName)
elasticPoolName - the elasticPoolName value to set.public String shardMapName()
public JobTarget withShardMapName(String shardMapName)
shardMapName - the shardMapName value to set.public String refreshCredential()
public JobTarget withRefreshCredential(String refreshCredential)
refreshCredential - the refreshCredential value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.