public class CreateDeploymentSetRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
deploymentSetName
The name of the deployment set.
|
String |
description
The description of the deployment set.
|
String |
domain
The deployment domain.
|
String |
granularity
The deployment granularity.
|
Long |
groupCount
The number of deployment set groups in the deployment set.
|
String |
onUnableToRedeployFailedInstance
The emergency solution to use in the situation where instances in the deployment set cannot be evenly distributed to different zones due to resource insufficiency after the instances failover.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The region ID of the deployment set.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
strategy
The deployment strategy.
|
构造器和说明 |
---|
CreateDeploymentSetRequest() |
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request. You can use the client to generate a client token. Make sure that a unique client token is used for each request. The **ClientToken** value can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [How to ensure idempotence](~~25693~~).
@NameInMap(value="DeploymentSetName") public String deploymentSetName
The name of the deployment set. The name must be 2 to 128 characters in length, It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-).
@NameInMap(value="Description") public String description
The description of the deployment set. The description must be 2 to 256 characters in length and cannot start with `http://` or `https://`.
@NameInMap(value="Domain") public String domain
The deployment domain. Set the value to Default.
Default: Instances in the deployment set are distributed only within the current zone.
@NameInMap(value="Granularity") public String granularity
The deployment granularity. Set the value to host.
host: Instances in the deployment set are dispersed at the granularity of hosts.
@NameInMap(value="GroupCount") public Long groupCount
The number of deployment set groups in the deployment set. Valid values: 1 to 7.
Default value: 3.
> This parameter takes effect only when `Strategy` is set to AvailabilityGroup.
@NameInMap(value="OnUnableToRedeployFailedInstance") public String onUnableToRedeployFailedInstance
The emergency solution to use in the situation where instances in the deployment set cannot be evenly distributed to different zones due to resource insufficiency after the instances failover. Valid values:
* CancelMembershipAndStart: removes the instances from the deployment set and starts the instances immediately after they are failed over.
* KeepStopped: leaves the instances in the Stopped state and starts them after resources are replenished.
Default value: CancelMembershipAndStart.
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID of the deployment set. You can call the [DescribeRegions](~~25609~~) operation to query the most recent list of regions.
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Strategy") public String strategy
The deployment strategy. Valid values:
* Availability: high availability strategy.
* AvailabilityGroup: high availability group strategy.
Default value: Availability.
public static CreateDeploymentSetRequest build(Map<String,?> map) throws Exception
Exception
public CreateDeploymentSetRequest setClientToken(String clientToken)
public String getClientToken()
public CreateDeploymentSetRequest setDeploymentSetName(String deploymentSetName)
public String getDeploymentSetName()
public CreateDeploymentSetRequest setDescription(String description)
public String getDescription()
public CreateDeploymentSetRequest setDomain(String domain)
public String getDomain()
public CreateDeploymentSetRequest setGranularity(String granularity)
public String getGranularity()
public CreateDeploymentSetRequest setGroupCount(Long groupCount)
public Long getGroupCount()
public CreateDeploymentSetRequest setOnUnableToRedeployFailedInstance(String onUnableToRedeployFailedInstance)
public String getOnUnableToRedeployFailedInstance()
public CreateDeploymentSetRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateDeploymentSetRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateDeploymentSetRequest setRegionId(String regionId)
public String getRegionId()
public CreateDeploymentSetRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateDeploymentSetRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateDeploymentSetRequest setStrategy(String strategy)
public String getStrategy()
Copyright © 2023. All rights reserved.