public class JobTarget extends Object
| Constructor and Description |
|---|
JobTarget() |
| Modifier and Type | Method and Description |
|---|---|
String |
databaseName()
Get the target database name.
|
String |
elasticPoolName()
Get the target elastic pool name.
|
JobTargetGroupMembershipType |
membershipType()
Get whether the target is included or excluded from the group.
|
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.
|
JobTargetType |
type()
Get the target type.
|
JobTarget |
withDatabaseName(String databaseName)
Set the target database name.
|
JobTarget |
withElasticPoolName(String elasticPoolName)
Set the target elastic pool name.
|
JobTarget |
withMembershipType(JobTargetGroupMembershipType membershipType)
Set whether the target is included or excluded from the group.
|
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.
|
JobTarget |
withServerName(String serverName)
Set the target server name.
|
JobTarget |
withShardMapName(String shardMapName)
Set the target shard map.
|
JobTarget |
withType(JobTargetType type)
Set the target type.
|
public JobTargetGroupMembershipType membershipType()
public JobTarget withMembershipType(JobTargetGroupMembershipType membershipType)
membershipType - the membershipType value to setpublic JobTargetType type()
public JobTarget withType(JobTargetType type)
type - the type value to setpublic String serverName()
public JobTarget withServerName(String serverName)
serverName - the serverName value to setpublic String databaseName()
public JobTarget withDatabaseName(String databaseName)
databaseName - the databaseName value to setpublic String elasticPoolName()
public JobTarget withElasticPoolName(String elasticPoolName)
elasticPoolName - the elasticPoolName value to setpublic String shardMapName()
public JobTarget withShardMapName(String shardMapName)
shardMapName - the shardMapName value to setpublic String refreshCredential()
public JobTarget withRefreshCredential(String refreshCredential)
refreshCredential - the refreshCredential value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/