com.amazonaws.services.ec2.model

## クラス RunInstancesRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.ec2.model.RunInstancesRequest

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

      public class RunInstancesRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `RunInstances operation`.

  The RunInstances operation launches a specified number of instances.

  If Amazon EC2 cannot launch the minimum number AMIs you request, no instances launch. If there is insufficient capacity to launch the maximum number of AMIs you request, Amazon EC2 launches as many as possible to satisfy the requested maximum values.

  Every instance is launched in a security group. If you do not specify a security group at launch, the instances start in your default security group. For more information on creating security groups, see CreateSecurityGroup.

  An optional instance type can be specified. For information about instance types, see Instance Types.

  You can provide an optional key pair ID for each image in the launch request (for more information, see CreateKeyPair). All instances that are created from images that use this key pair will have access to the associated public key at boot. You can use this key to provide secure access to an instance of an image on a per-instance basis. Amazon EC2 public images use this feature to provide secure access without passwords.

  IMPORTANT: Launching public images without a key pair ID will leave them inaccessible. The public key material is made available to the instance at boot time by placing it in the openssh_id.pub file on a logical device that is exposed to the instance as /dev/sda2 (the ephemeral store). The format of this file is suitable for use as an entry within ~/.ssh/authorized_keys (the OpenSSH format). This can be done at boot (e.g., as part of rc.local) allowing for secure access without passwords. Optional user data can be provided in the launch request. All instances that collectively comprise the launch request have access to this data For more information, see Instance Metadata.

  NOTE: If any of the AMIs have a product code attached for which the user has not subscribed, the RunInstances call will fail.

  IMPORTANT: We strongly recommend using the 2.6.18 Xen stock kernel with the c1.medium and c1.xlarge instances. Although the default Amazon EC2 kernels will work, the new kernels provide greater stability and performance for these instance types. For more information about kernels, see Kernels, RAM Disks, and Block Device Mappings.

  関連項目:
    `AmazonEC2.runInstances(RunInstancesRequest)`, 直列化された形式

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

    コンストラクタ
    コンストラクタと説明
    `RunInstancesRequest()` Default constructor for a new RunInstancesRequest object.
    `RunInstancesRequest(java.lang.String imageId, java.lang.Integer minCount, java.lang.Integer maxCount)` Constructs a new RunInstancesRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAdditionalInfo()` Do not use.
    `java.util.List<BlockDeviceMapping>` | `getBlockDeviceMappings()` Specifies how block devices are exposed to the instance.
    `java.lang.String` | `getClientToken()` Unique, case-sensitive identifier you provide to ensure idempotency of the request.
    `java.lang.Boolean` | `getDisableApiTermination()` Specifies whether the instance can be terminated using the APIs.
    `java.lang.Boolean` | `getEbsOptimized()` Returns the value of the EbsOptimized property for this object.
    `IamInstanceProfileSpecification` | `getIamInstanceProfile()` Returns the value of the IamInstanceProfile property for this object.
    `java.lang.String` | `getImageId()` Unique ID of a machine image, returned by a call to DescribeImages.
    `java.lang.String` | `getInstanceInitiatedShutdownBehavior()` Specifies whether the instance's Amazon EBS volumes are stopped or terminated when the instance is shut down.
    `java.lang.String` | `getInstanceType()` Specifies the instance type for the launched instances.
    `java.lang.String` | `getKernelId()` The ID of the kernel with which to launch the instance.
    `java.lang.String` | `getKeyName()` The name of the key pair.
    `InstanceLicenseSpecification` | `getLicense()` Specifies active licenses in use and attached to an Amazon EC2 instance.
    `java.lang.Integer` | `getMaxCount()` Maximum number of instances to launch.
    `java.lang.Integer` | `getMinCount()` Minimum number of instances to launch.
    `java.lang.Boolean` | `getMonitoring()` Enables monitoring for the instance.
    `java.util.List<InstanceNetworkInterfaceSpecification>` | `getNetworkInterfaces()` Returns the value of the NetworkInterfaces property for this object.
    `Placement` | `getPlacement()` Specifies the placement constraints (Availability Zones) for launching the instances.
    `java.lang.String` | `getPrivateIpAddress()` If you're using Amazon Virtual Private Cloud, you can optionally use this parameter to assign the instance a specific available IP address from the subnet.
    `java.lang.String` | `getRamdiskId()` The ID of the RAM disk with which to launch the instance.
    `java.util.List<java.lang.String>` | `getSecurityGroupIds()` Returns the value of the SecurityGroupIds property for this object.
    `java.util.List<java.lang.String>` | `getSecurityGroups()` The names of the security groups into which the instances will be launched.
    `java.lang.String` | `getSubnetId()` Specifies the subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud.
    `java.lang.String` | `getUserData()` Specifies additional information to make available to the instance(s).
    `int` | `hashCode()`
    `java.lang.Boolean` | `isDisableApiTermination()` Specifies whether the instance can be terminated using the APIs.
    `java.lang.Boolean` | `isEbsOptimized()` Returns the value of the EbsOptimized property for this object.
    `java.lang.Boolean` | `isMonitoring()` Enables monitoring for the instance.
    `void` | `setAdditionalInfo(java.lang.String additionalInfo)` Do not use.
    `void` | `setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)` Specifies how block devices are exposed to the instance.
    `void` | `setClientToken(java.lang.String clientToken)` Unique, case-sensitive identifier you provide to ensure idempotency of the request.
    `void` | `setDisableApiTermination(java.lang.Boolean disableApiTermination)` Specifies whether the instance can be terminated using the APIs.
    `void` | `setEbsOptimized(java.lang.Boolean ebsOptimized)` Sets the value of the EbsOptimized property for this object.
    `void` | `setIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)` Sets the value of the IamInstanceProfile property for this object.
    `void` | `setImageId(java.lang.String imageId)` Unique ID of a machine image, returned by a call to DescribeImages.
    `void` | `setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)` Specifies whether the instance's Amazon EBS volumes are stopped or terminated when the instance is shut down.
    `void` | `setInstanceType(InstanceType instanceType)` Specifies the instance type for the launched instances.
    `void` | `setInstanceType(java.lang.String instanceType)` Specifies the instance type for the launched instances.
    `void` | `setKernelId(java.lang.String kernelId)` The ID of the kernel with which to launch the instance.
    `void` | `setKeyName(java.lang.String keyName)` The name of the key pair.
    `void` | `setLicense(InstanceLicenseSpecification license)` Specifies active licenses in use and attached to an Amazon EC2 instance.
    `void` | `setMaxCount(java.lang.Integer maxCount)` Maximum number of instances to launch.
    `void` | `setMinCount(java.lang.Integer minCount)` Minimum number of instances to launch.
    `void` | `setMonitoring(java.lang.Boolean monitoring)` Enables monitoring for the instance.
    `void` | `setNetworkInterfaces(java.util.Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)` Sets the value of the NetworkInterfaces property for this object.
    `void` | `setPlacement(Placement placement)` Specifies the placement constraints (Availability Zones) for launching the instances.
    `void` | `setPrivateIpAddress(java.lang.String privateIpAddress)` If you're using Amazon Virtual Private Cloud, you can optionally use this parameter to assign the instance a specific available IP address from the subnet.
    `void` | `setRamdiskId(java.lang.String ramdiskId)` The ID of the RAM disk with which to launch the instance.
    `void` | `setSecurityGroupIds(java.util.Collection<java.lang.String> securityGroupIds)` Sets the value of the SecurityGroupIds property for this object.
    `void` | `setSecurityGroups(java.util.Collection<java.lang.String> securityGroups)` The names of the security groups into which the instances will be launched.
    `void` | `setSubnetId(java.lang.String subnetId)` Specifies the subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud.
    `void` | `setUserData(java.lang.String userData)` Specifies additional information to make available to the instance(s).
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `RunInstancesRequest` | `withAdditionalInfo(java.lang.String additionalInfo)` Do not use.
    `RunInstancesRequest` | `withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)` Specifies how block devices are exposed to the instance.
    `RunInstancesRequest` | `withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)` Specifies how block devices are exposed to the instance.
    `RunInstancesRequest` | `withClientToken(java.lang.String clientToken)` Unique, case-sensitive identifier you provide to ensure idempotency of the request.
    `RunInstancesRequest` | `withDisableApiTermination(java.lang.Boolean disableApiTermination)` Specifies whether the instance can be terminated using the APIs.
    `RunInstancesRequest` | `withEbsOptimized(java.lang.Boolean ebsOptimized)` Sets the value of the EbsOptimized property for this object.
    `RunInstancesRequest` | `withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)` Sets the value of the IamInstanceProfile property for this object.
    `RunInstancesRequest` | `withImageId(java.lang.String imageId)` Unique ID of a machine image, returned by a call to DescribeImages.
    `RunInstancesRequest` | `withInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)` Specifies whether the instance's Amazon EBS volumes are stopped or terminated when the instance is shut down.
    `RunInstancesRequest` | `withInstanceType(InstanceType instanceType)` Specifies the instance type for the launched instances.
    `RunInstancesRequest` | `withInstanceType(java.lang.String instanceType)` Specifies the instance type for the launched instances.
    `RunInstancesRequest` | `withKernelId(java.lang.String kernelId)` The ID of the kernel with which to launch the instance.
    `RunInstancesRequest` | `withKeyName(java.lang.String keyName)` The name of the key pair.
    `RunInstancesRequest` | `withLicense(InstanceLicenseSpecification license)` Specifies active licenses in use and attached to an Amazon EC2 instance.
    `RunInstancesRequest` | `withMaxCount(java.lang.Integer maxCount)` Maximum number of instances to launch.
    `RunInstancesRequest` | `withMinCount(java.lang.Integer minCount)` Minimum number of instances to launch.
    `RunInstancesRequest` | `withMonitoring(java.lang.Boolean monitoring)` Enables monitoring for the instance.
    `RunInstancesRequest` | `withNetworkInterfaces(java.util.Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)` Sets the value of the NetworkInterfaces property for this object.
    `RunInstancesRequest` | `withNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)` Sets the value of the NetworkInterfaces property for this object.
    `RunInstancesRequest` | `withPlacement(Placement placement)` Specifies the placement constraints (Availability Zones) for launching the instances.
    `RunInstancesRequest` | `withPrivateIpAddress(java.lang.String privateIpAddress)` If you're using Amazon Virtual Private Cloud, you can optionally use this parameter to assign the instance a specific available IP address from the subnet.
    `RunInstancesRequest` | `withRamdiskId(java.lang.String ramdiskId)` The ID of the RAM disk with which to launch the instance.
    `RunInstancesRequest` | `withSecurityGroupIds(java.util.Collection<java.lang.String> securityGroupIds)` Sets the value of the SecurityGroupIds property for this object.
    `RunInstancesRequest` | `withSecurityGroupIds(java.lang.String... securityGroupIds)` Sets the value of the SecurityGroupIds property for this object.
    `RunInstancesRequest` | `withSecurityGroups(java.util.Collection<java.lang.String> securityGroups)` The names of the security groups into which the instances will be launched.
    `RunInstancesRequest` | `withSecurityGroups(java.lang.String... securityGroups)` The names of the security groups into which the instances will be launched.
    `RunInstancesRequest` | `withSubnetId(java.lang.String subnetId)` Specifies the subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud.
    `RunInstancesRequest` | `withUserData(java.lang.String userData)` Specifies additional information to make available to the instance(s).

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

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

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

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

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

    - #### RunInstancesRequest

          public RunInstancesRequest()

      Default constructor for a new RunInstancesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

    - #### RunInstancesRequest

          public RunInstancesRequest(java.lang.String imageId,
                             java.lang.Integer minCount,
                             java.lang.Integer maxCount)

      Constructs a new RunInstancesRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `imageId` - Unique ID of a machine image, returned by a call to DescribeImages.
        `minCount` - Minimum number of instances to launch. If the value is more than Amazon EC2 can launch, no instances are launched at all.
        `maxCount` - Maximum number of instances to launch. If the value is more than Amazon EC2 can launch, the largest possible number above minCount will be launched instead.

        Between 1 and the maximum number allowed for your account (default: 20).

  - ### メソッドの詳細

    - #### getImageId

          public java.lang.String getImageId()

      Unique ID of a machine image, returned by a call to DescribeImages.
      戻り値:
        Unique ID of a machine image, returned by a call to DescribeImages.

    - #### setImageId

          public void setImageId(java.lang.String imageId)

      Unique ID of a machine image, returned by a call to DescribeImages.
      パラメータ:
        `imageId` - Unique ID of a machine image, returned by a call to DescribeImages.

    - #### withImageId

          public RunInstancesRequest withImageId(java.lang.String imageId)

      Unique ID of a machine image, returned by a call to DescribeImages.

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

      パラメータ:
        `imageId` - Unique ID of a machine image, returned by a call to DescribeImages.

    - #### getMinCount

          public java.lang.Integer getMinCount()

      Minimum number of instances to launch. If the value is more than Amazon EC2 can launch, no instances are launched at all.
      戻り値:
        Minimum number of instances to launch. If the value is more than Amazon EC2 can launch, no instances are launched at all.

    - #### setMinCount

          public void setMinCount(java.lang.Integer minCount)

      Minimum number of instances to launch. If the value is more than Amazon EC2 can launch, no instances are launched at all.
      パラメータ:
        `minCount` - Minimum number of instances to launch. If the value is more than Amazon EC2 can launch, no instances are launched at all.

    - #### withMinCount

          public RunInstancesRequest withMinCount(java.lang.Integer minCount)

      Minimum number of instances to launch. If the value is more than Amazon EC2 can launch, no instances are launched at all.

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

      パラメータ:
        `minCount` - Minimum number of instances to launch. If the value is more than Amazon EC2 can launch, no instances are launched at all.

    - #### getMaxCount

          public java.lang.Integer getMaxCount()

      Maximum number of instances to launch. If the value is more than Amazon EC2 can launch, the largest possible number above minCount will be launched instead.

      Between 1 and the maximum number allowed for your account (default: 20).

      戻り値:
        Maximum number of instances to launch. If the value is more than Amazon EC2 can launch, the largest possible number above minCount will be launched instead.

        Between 1 and the maximum number allowed for your account (default: 20).

    - #### setMaxCount

          public void setMaxCount(java.lang.Integer maxCount)

      Maximum number of instances to launch. If the value is more than Amazon EC2 can launch, the largest possible number above minCount will be launched instead.

      Between 1 and the maximum number allowed for your account (default: 20).

      パラメータ:
        `maxCount` - Maximum number of instances to launch. If the value is more than Amazon EC2 can launch, the largest possible number above minCount will be launched instead.

        Between 1 and the maximum number allowed for your account (default: 20).

    - #### withMaxCount

          public RunInstancesRequest withMaxCount(java.lang.Integer maxCount)

      Maximum number of instances to launch. If the value is more than Amazon EC2 can launch, the largest possible number above minCount will be launched instead.

      Between 1 and the maximum number allowed for your account (default: 20).

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

      パラメータ:
        `maxCount` - Maximum number of instances to launch. If the value is more than Amazon EC2 can launch, the largest possible number above minCount will be launched instead.

        Between 1 and the maximum number allowed for your account (default: 20).

    - #### getKeyName

          public java.lang.String getKeyName()

      The name of the key pair.
      戻り値:
        The name of the key pair.

    - #### setKeyName

          public void setKeyName(java.lang.String keyName)

      The name of the key pair.
      パラメータ:
        `keyName` - The name of the key pair.

    - #### withKeyName

          public RunInstancesRequest withKeyName(java.lang.String keyName)

      The name of the key pair.

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

      パラメータ:
        `keyName` - The name of the key pair.

    - #### getSecurityGroups

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

      The names of the security groups into which the instances will be launched.
      戻り値:
        The names of the security groups into which the instances will be launched.

    - #### setSecurityGroups

          public void setSecurityGroups(java.util.Collection<java.lang.String> securityGroups)

      The names of the security groups into which the instances will be launched.
      パラメータ:
        `securityGroups` - The names of the security groups into which the instances will be launched.

    - #### withSecurityGroups

          public RunInstancesRequest withSecurityGroups(java.lang.String... securityGroups)

      The names of the security groups into which the instances will be launched.

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

      パラメータ:
        `securityGroups` - The names of the security groups into which the instances will be launched.

    - #### withSecurityGroups

          public RunInstancesRequest withSecurityGroups(java.util.Collection<java.lang.String> securityGroups)

      The names of the security groups into which the instances will be launched.

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

      パラメータ:
        `securityGroups` - The names of the security groups into which the instances will be launched.

    - #### getSecurityGroupIds

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

      Returns the value of the SecurityGroupIds property for this object.
      戻り値:
        The value of the SecurityGroupIds property for this object.

    - #### setSecurityGroupIds

          public void setSecurityGroupIds(java.util.Collection<java.lang.String> securityGroupIds)

      Sets the value of the SecurityGroupIds property for this object.
      パラメータ:
        `securityGroupIds` - The new value for the SecurityGroupIds property for this object.

    - #### withSecurityGroupIds

          public RunInstancesRequest withSecurityGroupIds(java.lang.String... securityGroupIds)

      Sets the value of the SecurityGroupIds property for this object.

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

      パラメータ:
        `securityGroupIds` - The new value for the SecurityGroupIds property for this object.

    - #### withSecurityGroupIds

          public RunInstancesRequest withSecurityGroupIds(java.util.Collection<java.lang.String> securityGroupIds)

      Sets the value of the SecurityGroupIds property for this object.

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

      パラメータ:
        `securityGroupIds` - The new value for the SecurityGroupIds property for this object.

    - #### getUserData

          public java.lang.String getUserData()

      Specifies additional information to make available to the instance(s).
      戻り値:
        Specifies additional information to make available to the instance(s).

    - #### setUserData

          public void setUserData(java.lang.String userData)

      Specifies additional information to make available to the instance(s).
      パラメータ:
        `userData` - Specifies additional information to make available to the instance(s).

    - #### withUserData

          public RunInstancesRequest withUserData(java.lang.String userData)

      Specifies additional information to make available to the instance(s).

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

      パラメータ:
        `userData` - Specifies additional information to make available to the instance(s).

    - #### getInstanceType

          public java.lang.String getInstanceType()

      Specifies the instance type for the launched instances.

      Constraints:
      Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge

      戻り値:
        Specifies the instance type for the launched instances.
      関連項目:
        `InstanceType`

    - #### setInstanceType

          public void setInstanceType(java.lang.String instanceType)

      Specifies the instance type for the launched instances.

      Constraints:
      Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge

      パラメータ:
        `instanceType` - Specifies the instance type for the launched instances.
      関連項目:
        `InstanceType`

    - #### withInstanceType

          public RunInstancesRequest withInstanceType(java.lang.String instanceType)

      Specifies the instance type for the launched instances.

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

      Constraints:
      Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge

      パラメータ:
        `instanceType` - Specifies the instance type for the launched instances.
      関連項目:
        `InstanceType`

    - #### setInstanceType

          public void setInstanceType(InstanceType instanceType)

      Specifies the instance type for the launched instances.

      Constraints:
      Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge

      パラメータ:
        `instanceType` - Specifies the instance type for the launched instances.
      関連項目:
        `InstanceType`

    - #### withInstanceType

          public RunInstancesRequest withInstanceType(InstanceType instanceType)

      Specifies the instance type for the launched instances.

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

      Constraints:
      Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge

      パラメータ:
        `instanceType` - Specifies the instance type for the launched instances.
      関連項目:
        `InstanceType`

    - #### getPlacement

          public Placement getPlacement()

      Specifies the placement constraints (Availability Zones) for launching the instances.
      戻り値:
        Specifies the placement constraints (Availability Zones) for launching the instances.

    - #### setPlacement

          public void setPlacement(Placement placement)

      Specifies the placement constraints (Availability Zones) for launching the instances.
      パラメータ:
        `placement` - Specifies the placement constraints (Availability Zones) for launching the instances.

    - #### withPlacement

          public RunInstancesRequest withPlacement(Placement placement)

      Specifies the placement constraints (Availability Zones) for launching the instances.

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

      パラメータ:
        `placement` - Specifies the placement constraints (Availability Zones) for launching the instances.

    - #### getKernelId

          public java.lang.String getKernelId()

      The ID of the kernel with which to launch the instance.
      戻り値:
        The ID of the kernel with which to launch the instance.

    - #### setKernelId

          public void setKernelId(java.lang.String kernelId)

      The ID of the kernel with which to launch the instance.
      パラメータ:
        `kernelId` - The ID of the kernel with which to launch the instance.

    - #### withKernelId

          public RunInstancesRequest withKernelId(java.lang.String kernelId)

      The ID of the kernel with which to launch the instance.

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

      パラメータ:
        `kernelId` - The ID of the kernel with which to launch the instance.

    - #### getRamdiskId

          public java.lang.String getRamdiskId()

      The ID of the RAM disk with which to launch the instance. Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk. To find kernel requirements, go to the Resource Center and search for the kernel ID.
      戻り値:
        The ID of the RAM disk with which to launch the instance. Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk. To find kernel requirements, go to the Resource Center and search for the kernel ID.

    - #### setRamdiskId

          public void setRamdiskId(java.lang.String ramdiskId)

      The ID of the RAM disk with which to launch the instance. Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk. To find kernel requirements, go to the Resource Center and search for the kernel ID.
      パラメータ:
        `ramdiskId` - The ID of the RAM disk with which to launch the instance. Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk. To find kernel requirements, go to the Resource Center and search for the kernel ID.

    - #### withRamdiskId

          public RunInstancesRequest withRamdiskId(java.lang.String ramdiskId)

      The ID of the RAM disk with which to launch the instance. Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk. To find kernel requirements, go to the Resource Center and search for the kernel ID.

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

      パラメータ:
        `ramdiskId` - The ID of the RAM disk with which to launch the instance. Some kernels require additional drivers at launch. Check the kernel requirements for information on whether you need to specify a RAM disk. To find kernel requirements, go to the Resource Center and search for the kernel ID.

    - #### getBlockDeviceMappings

          public java.util.List<BlockDeviceMapping> getBlockDeviceMappings()

      Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.
      戻り値:
        Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.

    - #### setBlockDeviceMappings

          public void setBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)

      Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.
      パラメータ:
        `blockDeviceMappings` - Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.

    - #### withBlockDeviceMappings

          public RunInstancesRequest withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)

      Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.

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

      パラメータ:
        `blockDeviceMappings` - Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.

    - #### withBlockDeviceMappings

          public RunInstancesRequest withBlockDeviceMappings(java.util.Collection<BlockDeviceMapping> blockDeviceMappings)

      Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.

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

      パラメータ:
        `blockDeviceMappings` - Specifies how block devices are exposed to the instance. Each mapping is made up of a virtualName and a deviceName.

    - #### isMonitoring

          public java.lang.Boolean isMonitoring()

      Enables monitoring for the instance.
      戻り値:
        Enables monitoring for the instance.

    - #### setMonitoring

          public void setMonitoring(java.lang.Boolean monitoring)

      Enables monitoring for the instance.
      パラメータ:
        `monitoring` - Enables monitoring for the instance.

    - #### withMonitoring

          public RunInstancesRequest withMonitoring(java.lang.Boolean monitoring)

      Enables monitoring for the instance.

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

      パラメータ:
        `monitoring` - Enables monitoring for the instance.

    - #### getMonitoring

          public java.lang.Boolean getMonitoring()

      Enables monitoring for the instance.
      戻り値:
        Enables monitoring for the instance.

    - #### getSubnetId

          public java.lang.String getSubnetId()

      Specifies the subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud.
      戻り値:
        Specifies the subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud.

    - #### setSubnetId

          public void setSubnetId(java.lang.String subnetId)

      Specifies the subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud.
      パラメータ:
        `subnetId` - Specifies the subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud.

    - #### withSubnetId

          public RunInstancesRequest withSubnetId(java.lang.String subnetId)

      Specifies the subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud.

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

      パラメータ:
        `subnetId` - Specifies the subnet ID within which to launch the instance(s) for Amazon Virtual Private Cloud.

    - #### isDisableApiTermination

          public java.lang.Boolean isDisableApiTermination()

      Specifies whether the instance can be terminated using the APIs. You must modify this attribute before you can terminate any "locked" instances from the APIs.
      戻り値:
        Specifies whether the instance can be terminated using the APIs. You must modify this attribute before you can terminate any "locked" instances from the APIs.

    - #### setDisableApiTermination

          public void setDisableApiTermination(java.lang.Boolean disableApiTermination)

      Specifies whether the instance can be terminated using the APIs. You must modify this attribute before you can terminate any "locked" instances from the APIs.
      パラメータ:
        `disableApiTermination` - Specifies whether the instance can be terminated using the APIs. You must modify this attribute before you can terminate any "locked" instances from the APIs.

    - #### withDisableApiTermination

          public RunInstancesRequest withDisableApiTermination(java.lang.Boolean disableApiTermination)

      Specifies whether the instance can be terminated using the APIs. You must modify this attribute before you can terminate any "locked" instances from the APIs.

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

      パラメータ:
        `disableApiTermination` - Specifies whether the instance can be terminated using the APIs. You must modify this attribute before you can terminate any "locked" instances from the APIs.

    - #### getDisableApiTermination

          public java.lang.Boolean getDisableApiTermination()

      Specifies whether the instance can be terminated using the APIs. You must modify this attribute before you can terminate any "locked" instances from the APIs.
      戻り値:
        Specifies whether the instance can be terminated using the APIs. You must modify this attribute before you can terminate any "locked" instances from the APIs.

    - #### getInstanceInitiatedShutdownBehavior

          public java.lang.String getInstanceInitiatedShutdownBehavior()

      Specifies whether the instance's Amazon EBS volumes are stopped or terminated when the instance is shut down.
      戻り値:
        Specifies whether the instance's Amazon EBS volumes are stopped or terminated when the instance is shut down.

    - #### setInstanceInitiatedShutdownBehavior

          public void setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)

      Specifies whether the instance's Amazon EBS volumes are stopped or terminated when the instance is shut down.
      パラメータ:
        `instanceInitiatedShutdownBehavior` - Specifies whether the instance's Amazon EBS volumes are stopped or terminated when the instance is shut down.

    - #### withInstanceInitiatedShutdownBehavior

          public RunInstancesRequest withInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)

      Specifies whether the instance's Amazon EBS volumes are stopped or terminated when the instance is shut down.

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

      パラメータ:
        `instanceInitiatedShutdownBehavior` - Specifies whether the instance's Amazon EBS volumes are stopped or terminated when the instance is shut down.

    - #### getLicense

          public InstanceLicenseSpecification getLicense()

      Specifies active licenses in use and attached to an Amazon EC2 instance.
      戻り値:
        Specifies active licenses in use and attached to an Amazon EC2 instance.

    - #### setLicense

          public void setLicense(InstanceLicenseSpecification license)

      Specifies active licenses in use and attached to an Amazon EC2 instance.
      パラメータ:
        `license` - Specifies active licenses in use and attached to an Amazon EC2 instance.

    - #### withLicense

          public RunInstancesRequest withLicense(InstanceLicenseSpecification license)

      Specifies active licenses in use and attached to an Amazon EC2 instance.

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

      パラメータ:
        `license` - Specifies active licenses in use and attached to an Amazon EC2 instance.

    - #### getPrivateIpAddress

          public java.lang.String getPrivateIpAddress()

      If you're using Amazon Virtual Private Cloud, you can optionally use this parameter to assign the instance a specific available IP address from the subnet.
      戻り値:
        If you're using Amazon Virtual Private Cloud, you can optionally use this parameter to assign the instance a specific available IP address from the subnet.

    - #### setPrivateIpAddress

          public void setPrivateIpAddress(java.lang.String privateIpAddress)

      If you're using Amazon Virtual Private Cloud, you can optionally use this parameter to assign the instance a specific available IP address from the subnet.
      パラメータ:
        `privateIpAddress` - If you're using Amazon Virtual Private Cloud, you can optionally use this parameter to assign the instance a specific available IP address from the subnet.

    - #### withPrivateIpAddress

          public RunInstancesRequest withPrivateIpAddress(java.lang.String privateIpAddress)

      If you're using Amazon Virtual Private Cloud, you can optionally use this parameter to assign the instance a specific available IP address from the subnet.

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

      パラメータ:
        `privateIpAddress` - If you're using Amazon Virtual Private Cloud, you can optionally use this parameter to assign the instance a specific available IP address from the subnet.

    - #### getClientToken

          public java.lang.String getClientToken()

      Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, go to How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.
      戻り値:
        Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, go to How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

    - #### setClientToken

          public void setClientToken(java.lang.String clientToken)

      Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, go to How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.
      パラメータ:
        `clientToken` - Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, go to How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

    - #### withClientToken

          public RunInstancesRequest withClientToken(java.lang.String clientToken)

      Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, go to How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

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

      パラメータ:
        `clientToken` - Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, go to How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

    - #### getAdditionalInfo

          public java.lang.String getAdditionalInfo()

      Do not use. Reserved for internal use.
      戻り値:
        Do not use. Reserved for internal use.

    - #### setAdditionalInfo

          public void setAdditionalInfo(java.lang.String additionalInfo)

      Do not use. Reserved for internal use.
      パラメータ:
        `additionalInfo` - Do not use. Reserved for internal use.

    - #### withAdditionalInfo

          public RunInstancesRequest withAdditionalInfo(java.lang.String additionalInfo)

      Do not use. Reserved for internal use.

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

      パラメータ:
        `additionalInfo` - Do not use. Reserved for internal use.

    - #### getNetworkInterfaces

          public java.util.List<InstanceNetworkInterfaceSpecification> getNetworkInterfaces()

      Returns the value of the NetworkInterfaces property for this object.
      戻り値:
        The value of the NetworkInterfaces property for this object.

    - #### setNetworkInterfaces

          public void setNetworkInterfaces(java.util.Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)

      Sets the value of the NetworkInterfaces property for this object.
      パラメータ:
        `networkInterfaces` - The new value for the NetworkInterfaces property for this object.

    - #### withNetworkInterfaces

          public RunInstancesRequest withNetworkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)

      Sets the value of the NetworkInterfaces property for this object.

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

      パラメータ:
        `networkInterfaces` - The new value for the NetworkInterfaces property for this object.

    - #### withNetworkInterfaces

          public RunInstancesRequest withNetworkInterfaces(java.util.Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)

      Sets the value of the NetworkInterfaces property for this object.

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

      パラメータ:
        `networkInterfaces` - The new value for the NetworkInterfaces property for this object.

    - #### getIamInstanceProfile

          public IamInstanceProfileSpecification getIamInstanceProfile()

      Returns the value of the IamInstanceProfile property for this object.
      戻り値:
        The value of the IamInstanceProfile property for this object.

    - #### setIamInstanceProfile

          public void setIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)

      Sets the value of the IamInstanceProfile property for this object.
      パラメータ:
        `iamInstanceProfile` - The new value for the IamInstanceProfile property for this object.

    - #### withIamInstanceProfile

          public RunInstancesRequest withIamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)

      Sets the value of the IamInstanceProfile property for this object.

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

      パラメータ:
        `iamInstanceProfile` - The new value for the IamInstanceProfile property for this object.

    - #### isEbsOptimized

          public java.lang.Boolean isEbsOptimized()

      Returns the value of the EbsOptimized property for this object.
      戻り値:
        The value of the EbsOptimized property for this object.

    - #### setEbsOptimized

          public void setEbsOptimized(java.lang.Boolean ebsOptimized)

      Sets the value of the EbsOptimized property for this object.
      パラメータ:
        `ebsOptimized` - The new value for the EbsOptimized property for this object.

    - #### withEbsOptimized

          public RunInstancesRequest withEbsOptimized(java.lang.Boolean ebsOptimized)

      Sets the value of the EbsOptimized property for this object.

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

      パラメータ:
        `ebsOptimized` - The new value for the EbsOptimized property for this object.

    - #### getEbsOptimized

          public java.lang.Boolean getEbsOptimized()

      Returns the value of the EbsOptimized property for this object.
      戻り値:
        The value of the EbsOptimized property for this object.

    - #### 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`