public class CreateDeploymentRequest extends AmazonWebServiceRequest implements Serializable
CreateDeployment operation
.
Deploys a stack or app.
deploy
event, which runs
the associated recipes and passes them a JSON stack configuration
object that includes information about the app. deploy
recipes but does
not raise an event.For more information, see Deploying Apps and Run Stack Commands .
Required Permissions : To use this action, an IAM user must have a Deploy or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .
NOOP
Constructor and Description |
---|
CreateDeploymentRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAppId()
The app ID.
|
DeploymentCommand |
getCommand()
A
DeploymentCommand object that specifies the deployment
command and any associated arguments. |
String |
getComment()
A user-defined comment.
|
String |
getCustomJson()
A string that contains user-defined, custom JSON.
|
List<String> |
getInstanceIds()
The instance IDs for the deployment targets.
|
String |
getStackId()
The stack ID.
|
int |
hashCode() |
void |
setAppId(String appId)
The app ID.
|
void |
setCommand(DeploymentCommand command)
A
DeploymentCommand object that specifies the deployment
command and any associated arguments. |
void |
setComment(String comment)
A user-defined comment.
|
void |
setCustomJson(String customJson)
A string that contains user-defined, custom JSON.
|
void |
setInstanceIds(Collection<String> instanceIds)
The instance IDs for the deployment targets.
|
void |
setStackId(String stackId)
The stack ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateDeploymentRequest |
withAppId(String appId)
The app ID.
|
CreateDeploymentRequest |
withCommand(DeploymentCommand command)
A
DeploymentCommand object that specifies the deployment
command and any associated arguments. |
CreateDeploymentRequest |
withComment(String comment)
A user-defined comment.
|
CreateDeploymentRequest |
withCustomJson(String customJson)
A string that contains user-defined, custom JSON.
|
CreateDeploymentRequest |
withInstanceIds(Collection<String> instanceIds)
The instance IDs for the deployment targets.
|
CreateDeploymentRequest |
withInstanceIds(String... instanceIds)
The instance IDs for the deployment targets.
|
CreateDeploymentRequest |
withStackId(String stackId)
The stack ID.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getStackId()
public void setStackId(String stackId)
stackId
- The stack ID.public CreateDeploymentRequest withStackId(String stackId)
Returns a reference to this object so that method calls can be chained together.
stackId
- The stack ID.public String getAppId()
public void setAppId(String appId)
appId
- The app ID. This parameter is required for app deployments, but not
for other deployment commands.public CreateDeploymentRequest withAppId(String appId)
Returns a reference to this object so that method calls can be chained together.
appId
- The app ID. This parameter is required for app deployments, but not
for other deployment commands.public List<String> getInstanceIds()
public void setInstanceIds(Collection<String> instanceIds)
instanceIds
- The instance IDs for the deployment targets.public CreateDeploymentRequest withInstanceIds(String... instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds
- The instance IDs for the deployment targets.public CreateDeploymentRequest withInstanceIds(Collection<String> instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds
- The instance IDs for the deployment targets.public DeploymentCommand getCommand()
DeploymentCommand
object that specifies the deployment
command and any associated arguments.DeploymentCommand
object that specifies the deployment
command and any associated arguments.public void setCommand(DeploymentCommand command)
DeploymentCommand
object that specifies the deployment
command and any associated arguments.command
- A DeploymentCommand
object that specifies the deployment
command and any associated arguments.public CreateDeploymentRequest withCommand(DeploymentCommand command)
DeploymentCommand
object that specifies the deployment
command and any associated arguments.
Returns a reference to this object so that method calls can be chained together.
command
- A DeploymentCommand
object that specifies the deployment
command and any associated arguments.public String getComment()
public void setComment(String comment)
comment
- A user-defined comment.public CreateDeploymentRequest withComment(String comment)
Returns a reference to this object so that method calls can be chained together.
comment
- A user-defined comment.public String getCustomJson()
"{\"key1\": \"value1\", \"key2\":
\"value2\",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration JSON.
"{\"key1\": \"value1\", \"key2\":
\"value2\",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration JSON.
public void setCustomJson(String customJson)
"{\"key1\": \"value1\", \"key2\":
\"value2\",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration JSON.
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 and must escape
characters such as '"'.: "{\"key1\": \"value1\", \"key2\":
\"value2\",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration JSON.
public CreateDeploymentRequest withCustomJson(String customJson)
"{\"key1\": \"value1\", \"key2\":
\"value2\",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration JSON.
Returns a reference to this object so that method calls can be chained together.
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 and must escape
characters such as '"'.: "{\"key1\": \"value1\", \"key2\":
\"value2\",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration JSON.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.