com.amazonaws.services.opsworks.model

## クラス CreateDeploymentRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.opsworks.model.CreateDeploymentRequest

- すべての実装されたインタフェース:
    java.io.Serializable

      public class CreateDeploymentRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `CreateDeployment operation`.

  Deploys a stack or app.

  - App deployment generates a `deploy` event, which runs the associated recipes and passes them a JSON stack configuration object that includes information about the app.
  - Stack deployment runs the `deploy` recipes but does not raise an event.

  For more information, see Deploying Apps and Run Stack Commands .

  関連項目:
    `AWSOpsWorks.createDeployment(CreateDeploymentRequest)`, 直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `CreateDeploymentRequest()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAppId()` The app ID.
    `DeploymentCommand` | `getCommand()` A `DeploymentCommand` object that specifies the deployment command and any associated arguments.
    `java.lang.String` | `getComment()` A user-defined comment.
    `java.lang.String` | `getCustomJson()` A string that contains user-defined, custom JSON.
    `java.util.List<java.lang.String>` | `getInstanceIds()` The instance IDs for the deployment targets.
    `java.lang.String` | `getStackId()` The stack ID.
    `int` | `hashCode()`
    `void` | `setAppId(java.lang.String appId)` The app ID.
    `void` | `setCommand(DeploymentCommand command)` A `DeploymentCommand` object that specifies the deployment command and any associated arguments.
    `void` | `setComment(java.lang.String comment)` A user-defined comment.
    `void` | `setCustomJson(java.lang.String customJson)` A string that contains user-defined, custom JSON.
    `void` | `setInstanceIds(java.util.Collection<java.lang.String> instanceIds)` The instance IDs for the deployment targets.
    `void` | `setStackId(java.lang.String stackId)` The stack ID.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `CreateDeploymentRequest` | `withAppId(java.lang.String appId)` The app ID.
    `CreateDeploymentRequest` | `withCommand(DeploymentCommand command)` A `DeploymentCommand` object that specifies the deployment command and any associated arguments.
    `CreateDeploymentRequest` | `withComment(java.lang.String comment)` A user-defined comment.
    `CreateDeploymentRequest` | `withCustomJson(java.lang.String customJson)` A string that contains user-defined, custom JSON.
    `CreateDeploymentRequest` | `withInstanceIds(java.util.Collection<java.lang.String> instanceIds)` The instance IDs for the deployment targets.
    `CreateDeploymentRequest` | `withInstanceIds(java.lang.String... instanceIds)` The instance IDs for the deployment targets.
    `CreateDeploymentRequest` | `withStackId(java.lang.String stackId)` The stack ID.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### CreateDeploymentRequest

          public CreateDeploymentRequest()

  - ### メソッドの詳細

    - #### getStackId

          public java.lang.String getStackId()

      The stack ID.
      戻り値:
        The stack ID.

    - #### setStackId

          public void setStackId(java.lang.String stackId)

      The stack ID.
      パラメータ:
        `stackId` - The stack ID.

    - #### withStackId

          public CreateDeploymentRequest withStackId(java.lang.String stackId)

      The stack ID.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `stackId` - The stack ID.

    - #### getAppId

          public java.lang.String getAppId()

      The app ID. This parameter is required for app deployments, but not for other deployment commands.
      戻り値:
        The app ID. This parameter is required for app deployments, but not for other deployment commands.

    - #### setAppId

          public void setAppId(java.lang.String appId)

      The app ID. This parameter is required for app deployments, but not for other deployment commands.
      パラメータ:
        `appId` - The app ID. This parameter is required for app deployments, but not for other deployment commands.

    - #### withAppId

          public CreateDeploymentRequest withAppId(java.lang.String appId)

      The app ID. This parameter is required for app deployments, but not for other deployment commands.

      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.

    - #### getInstanceIds

          public java.util.List<java.lang.String> getInstanceIds()

      The instance IDs for the deployment targets.
      戻り値:
        The instance IDs for the deployment targets.

    - #### setInstanceIds

          public void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)

      The instance IDs for the deployment targets.
      パラメータ:
        `instanceIds` - The instance IDs for the deployment targets.

    - #### withInstanceIds

          public CreateDeploymentRequest withInstanceIds(java.lang.String... instanceIds)

      The instance IDs for the deployment targets.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `instanceIds` - The instance IDs for the deployment targets.

    - #### withInstanceIds

          public CreateDeploymentRequest withInstanceIds(java.util.Collection<java.lang.String> instanceIds)

      The instance IDs for the deployment targets.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `instanceIds` - The instance IDs for the deployment targets.

    - #### getCommand

          public DeploymentCommand getCommand()

      A `DeploymentCommand` object that specifies the deployment command and any associated arguments.
      戻り値:
        A `DeploymentCommand` object that specifies the deployment command and any associated arguments.

    - #### setCommand

          public void setCommand(DeploymentCommand command)

      A `DeploymentCommand` object that specifies the deployment command and any associated arguments.
      パラメータ:
        `command` - A `DeploymentCommand` object that specifies the deployment command and any associated arguments.

    - #### withCommand

          public CreateDeploymentRequest withCommand(DeploymentCommand command)

      A `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.

    - #### getComment

          public java.lang.String getComment()

      A user-defined comment.
      戻り値:
        A user-defined comment.

    - #### setComment

          public void setComment(java.lang.String comment)

      A user-defined comment.
      パラメータ:
        `comment` - A user-defined comment.

    - #### withComment

          public CreateDeploymentRequest withComment(java.lang.String comment)

      A user-defined comment.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `comment` - A user-defined comment.

    - #### getCustomJson

          public java.lang.String getCustomJson()

      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.

      戻り値:
        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.

    - #### setCustomJson

          public void setCustomJson(java.lang.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 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.

      パラメータ:
        `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.

    - #### withCustomJson

          public CreateDeploymentRequest withCustomJson(java.lang.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 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.

      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.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`