@Generated(value="software.amazon.awssdk:codegen") public final class CreateDeploymentRequest extends OpsWorksRequest implements ToCopyableBuilder<CreateDeploymentRequest.Builder,CreateDeploymentRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateDeploymentRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
appId()
The app ID.
|
static CreateDeploymentRequest.Builder |
builder() |
DeploymentCommand |
command()
A
DeploymentCommand object that specifies the deployment command and any associated arguments. |
String |
comment()
A user-defined comment.
|
String |
customJson()
A string that contains user-defined, custom JSON.
|
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() |
List<String> |
instanceIds()
The instance IDs for the deployment targets.
|
List<String> |
layerIds()
The layer IDs for the deployment targets.
|
static Class<? extends CreateDeploymentRequest.Builder> |
serializableBuilderClass() |
String |
stackId()
The stack ID.
|
CreateDeploymentRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String stackId()
The stack ID.
public String appId()
The app ID. This parameter is required for app deployments, but not for other deployment commands.
public List<String> instanceIds()
The instance IDs for the deployment targets.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> layerIds()
The layer IDs for the deployment targets.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public DeploymentCommand command()
A DeploymentCommand
object that specifies the deployment command and any associated arguments.
DeploymentCommand
object that specifies the deployment command and any associated
arguments.public String comment()
A user-defined comment.
public String customJson()
A string that contains user-defined, custom JSON. It is used to override the corresponding default stack configuration JSON values. The string should be in the following format:
"{\"key1\": \"value1\", \"key2\": \"value2\",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes.
"{\"key1\": \"value1\", \"key2\": \"value2\",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes.
public CreateDeploymentRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateDeploymentRequest.Builder,CreateDeploymentRequest>
toBuilder
in class OpsWorksRequest
public static CreateDeploymentRequest.Builder builder()
public static Class<? extends CreateDeploymentRequest.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.