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.
Constructor Summary
Constructor | Description | |
---|---|---|
JobTarget() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
databaseName()
Get the target database name. |
java.lang.String |
elasticPoolName()
Get the target elastic pool name. |
Job |
membershipType()
Get whether the target is included or excluded from the group. |
java.lang.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. |
java.lang.String |
serverName()
Get the target server name. |
java.lang.String |
shardMapName()
Get the target shard map. |
Job |
type()
Get the target type. |
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. |
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. |
Methods inherited from java.lang.Object
Constructor Details
JobTarget
public JobTarget()
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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기