|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.opsworks.model.CreateDeploymentRequest
public class CreateDeploymentRequest
Container for the parameters to the 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 .
AWSOpsWorks.createDeployment(CreateDeploymentRequest)
,
Serialized FormConstructor Summary | |
---|---|
CreateDeploymentRequest()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateDeploymentRequest()
Method Detail |
---|
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()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |