@Generated(value="software.amazon.awssdk:codegen") public class CreateDeploymentConfigRequest extends CodeDeployRequest implements ToCopyableBuilder<CreateDeploymentConfigRequest.Builder,CreateDeploymentConfigRequest>
Represents the input of a CreateDeploymentConfig operation.
Modifier and Type | Class and Description |
---|---|
static interface |
CreateDeploymentConfigRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateDeploymentConfigRequest.Builder |
builder() |
String |
deploymentConfigName()
The name of the deployment configuration to create.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
MinimumHealthyHosts |
minimumHealthyHosts()
The minimum number of healthy instances that should be available at any time during the deployment.
|
static Class<? extends CreateDeploymentConfigRequest.Builder> |
serializableBuilderClass() |
CreateDeploymentConfigRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
requestOverrideConfig
copy
public String deploymentConfigName()
The name of the deployment configuration to create.
public MinimumHealthyHosts minimumHealthyHosts()
The minimum number of healthy instances that should be available at any time during the deployment. There are two parameters expected in the input: type and value.
The type parameter takes either of the following values:
HOST_COUNT: The value parameter represents the minimum number of healthy instances as an absolute value.
FLEET_PERCENT: The value parameter represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances.
The value parameter takes an integer.
For example, to set a minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of 95.
The type parameter takes either of the following values:
HOST_COUNT: The value parameter represents the minimum number of healthy instances as an absolute value.
FLEET_PERCENT: The value parameter represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances.
The value parameter takes an integer.
For example, to set a minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of 95.
public CreateDeploymentConfigRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateDeploymentConfigRequest.Builder,CreateDeploymentConfigRequest>
toBuilder
in class CodeDeployRequest
public static CreateDeploymentConfigRequest.Builder builder()
public static Class<? extends CreateDeploymentConfigRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.