JobTarget Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. JobTarget
- com.
Implements
public final class JobTarget
implements JsonSerializable<JobTarget>
A job target, for example a specific database or a container of databases that is evaluated during job execution.
Constructor Summary
Constructor | Description |
---|---|
JobTarget() |
Creates an instance of Job |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
databaseName()
Get the database |
String |
elasticPoolName()
Get the elastic |
static
Job |
fromJson(JsonReader jsonReader)
Reads an instance of Job |
Job |
membershipType()
Get the membership |
String |
refreshCredential()
Get the refresh |
String |
serverName()
Get the server |
String |
shardMapName()
Get the shard |
Json |
toJson(JsonWriter jsonWriter) |
Job |
type()
Get the type property: The target type. |
void |
validate()
Validates the instance. |
Job |
withDatabaseName(String databaseName)
Set the database |
Job |
withElasticPoolName(String elasticPoolName)
Set the elastic |
Job |
withMembershipType(JobTargetGroupMembershipType membershipType)
Set the membership |
Job |
withRefreshCredential(String refreshCredential)
Set the refresh |
Job |
withServerName(String serverName)
Set the server |
Job |
withShardMapName(String shardMapName)
Set the shard |
Job |
withType(JobTargetType type)
Set the type property: The target type. |
Methods inherited from java.lang.Object
Constructor Details
JobTarget
public JobTarget()
Creates an instance of JobTarget class.
Method Details
databaseName
public String databaseName()
Get the databaseName property: The target database name.
Returns:
elasticPoolName
public String elasticPoolName()
Get the elasticPoolName property: The target elastic pool name.
Returns:
fromJson
public static JobTarget fromJson(JsonReader jsonReader)
Reads an instance of JobTarget from the JsonReader.
Parameters:
Returns:
Throws:
membershipType
public JobTargetGroupMembershipType membershipType()
Get the membershipType property: Whether the target is included or excluded from the group.
Returns:
refreshCredential
public 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.
Returns:
serverName
public String serverName()
Get the serverName property: The target server name.
Returns:
shardMapName
public String shardMapName()
Get the shardMapName property: The target shard map.
Returns:
toJson
type
public JobTargetType type()
Get the type property: The target type.
Returns:
validate
public void validate()
Validates the instance.
withDatabaseName
public JobTarget withDatabaseName(String databaseName)
Set the databaseName property: The target database name.
Parameters:
Returns:
withElasticPoolName
public JobTarget withElasticPoolName(String elasticPoolName)
Set the elasticPoolName property: The target elastic pool name.
Parameters:
Returns:
withMembershipType
public JobTarget withMembershipType(JobTargetGroupMembershipType membershipType)
Set the membershipType property: Whether the target is included or excluded from the group.
Parameters:
Returns:
withRefreshCredential
public 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.
Parameters:
Returns:
withServerName
public JobTarget withServerName(String serverName)
Set the serverName property: The target server name.
Parameters:
Returns:
withShardMapName
public JobTarget withShardMapName(String shardMapName)
Set the shardMapName property: The target shard map.
Parameters:
Returns:
withType
public JobTarget withType(JobTargetType type)
Set the type property: The target type.
Parameters:
Returns:
Applies to
Azure SDK for Java