com.amazonaws.services.ec2.model

## クラス SpotInstanceRequest

- java.lang.Object
- - com.amazonaws.services.ec2.model.SpotInstanceRequest

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

      public class SpotInstanceRequest
      extends java.lang.Object
      implements java.io.Serializable

  Spot Instance Request
  関連項目:
    直列化された形式

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

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

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getAvailabilityZoneGroup()` Returns the value of the AvailabilityZoneGroup property for this object.
    `java.util.Date` | `getCreateTime()` Returns the value of the CreateTime property for this object.
    `SpotInstanceStateFault` | `getFault()` Returns the value of the Fault property for this object.
    `java.lang.String` | `getInstanceId()` Returns the value of the InstanceId property for this object.
    `java.lang.String` | `getLaunchedAvailabilityZone()` The Availability Zone in which the bid is launched.
    `java.lang.String` | `getLaunchGroup()` Returns the value of the LaunchGroup property for this object.
    `LaunchSpecification` | `getLaunchSpecification()` The LaunchSpecificationType data type.
    `java.lang.String` | `getProductDescription()` Returns the value of the ProductDescription property for this object.
    `java.lang.String` | `getSpotInstanceRequestId()` Returns the value of the SpotInstanceRequestId property for this object.
    `java.lang.String` | `getSpotPrice()` Returns the value of the SpotPrice property for this object.
    `java.lang.String` | `getState()` Returns the value of the State property for this object.
    `SpotInstanceStatus` | `getStatus()` Returns the value of the Status property for this object.
    `java.util.List<Tag>` | `getTags()` A list of tags for this spot instance request.
    `java.lang.String` | `getType()` Returns the value of the Type property for this object.
    `java.util.Date` | `getValidFrom()` Returns the value of the ValidFrom property for this object.
    `java.util.Date` | `getValidUntil()` Returns the value of the ValidUntil property for this object.
    `int` | `hashCode()`
    `void` | `setAvailabilityZoneGroup(java.lang.String availabilityZoneGroup)` Sets the value of the AvailabilityZoneGroup property for this object.
    `void` | `setCreateTime(java.util.Date createTime)` Sets the value of the CreateTime property for this object.
    `void` | `setFault(SpotInstanceStateFault fault)` Sets the value of the Fault property for this object.
    `void` | `setInstanceId(java.lang.String instanceId)` Sets the value of the InstanceId property for this object.
    `void` | `setLaunchedAvailabilityZone(java.lang.String launchedAvailabilityZone)` The Availability Zone in which the bid is launched.
    `void` | `setLaunchGroup(java.lang.String launchGroup)` Sets the value of the LaunchGroup property for this object.
    `void` | `setLaunchSpecification(LaunchSpecification launchSpecification)` The LaunchSpecificationType data type.
    `void` | `setProductDescription(java.lang.String productDescription)` Sets the value of the ProductDescription property for this object.
    `void` | `setSpotInstanceRequestId(java.lang.String spotInstanceRequestId)` Sets the value of the SpotInstanceRequestId property for this object.
    `void` | `setSpotPrice(java.lang.String spotPrice)` Sets the value of the SpotPrice property for this object.
    `void` | `setState(java.lang.String state)` Sets the value of the State property for this object.
    `void` | `setStatus(SpotInstanceStatus status)` Sets the value of the Status property for this object.
    `void` | `setTags(java.util.Collection<Tag> tags)` A list of tags for this spot instance request.
    `void` | `setType(SpotInstanceType type)` Sets the value of the Type property for this object.
    `void` | `setType(java.lang.String type)` Sets the value of the Type property for this object.
    `void` | `setValidFrom(java.util.Date validFrom)` Sets the value of the ValidFrom property for this object.
    `void` | `setValidUntil(java.util.Date validUntil)` Sets the value of the ValidUntil property for this object.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `SpotInstanceRequest` | `withAvailabilityZoneGroup(java.lang.String availabilityZoneGroup)` Sets the value of the AvailabilityZoneGroup property for this object.
    `SpotInstanceRequest` | `withCreateTime(java.util.Date createTime)` Sets the value of the CreateTime property for this object.
    `SpotInstanceRequest` | `withFault(SpotInstanceStateFault fault)` Sets the value of the Fault property for this object.
    `SpotInstanceRequest` | `withInstanceId(java.lang.String instanceId)` Sets the value of the InstanceId property for this object.
    `SpotInstanceRequest` | `withLaunchedAvailabilityZone(java.lang.String launchedAvailabilityZone)` The Availability Zone in which the bid is launched.
    `SpotInstanceRequest` | `withLaunchGroup(java.lang.String launchGroup)` Sets the value of the LaunchGroup property for this object.
    `SpotInstanceRequest` | `withLaunchSpecification(LaunchSpecification launchSpecification)` The LaunchSpecificationType data type.
    `SpotInstanceRequest` | `withProductDescription(java.lang.String productDescription)` Sets the value of the ProductDescription property for this object.
    `SpotInstanceRequest` | `withSpotInstanceRequestId(java.lang.String spotInstanceRequestId)` Sets the value of the SpotInstanceRequestId property for this object.
    `SpotInstanceRequest` | `withSpotPrice(java.lang.String spotPrice)` Sets the value of the SpotPrice property for this object.
    `SpotInstanceRequest` | `withState(java.lang.String state)` Sets the value of the State property for this object.
    `SpotInstanceRequest` | `withStatus(SpotInstanceStatus status)` Sets the value of the Status property for this object.
    `SpotInstanceRequest` | `withTags(java.util.Collection<Tag> tags)` A list of tags for this spot instance request.
    `SpotInstanceRequest` | `withTags(Tag... tags)` A list of tags for this spot instance request.
    `SpotInstanceRequest` | `withType(SpotInstanceType type)` Sets the value of the Type property for this object.
    `SpotInstanceRequest` | `withType(java.lang.String type)` Sets the value of the Type property for this object.
    `SpotInstanceRequest` | `withValidFrom(java.util.Date validFrom)` Sets the value of the ValidFrom property for this object.
    `SpotInstanceRequest` | `withValidUntil(java.util.Date validUntil)` Sets the value of the ValidUntil property for this object.

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

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

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

    - #### SpotInstanceRequest

          public SpotInstanceRequest()

  - ### メソッドの詳細

    - #### getSpotInstanceRequestId

          public java.lang.String getSpotInstanceRequestId()

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

    - #### setSpotInstanceRequestId

          public void setSpotInstanceRequestId(java.lang.String spotInstanceRequestId)

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

    - #### withSpotInstanceRequestId

          public SpotInstanceRequest withSpotInstanceRequestId(java.lang.String spotInstanceRequestId)

      Sets the value of the SpotInstanceRequestId property for this object.

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

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

    - #### getSpotPrice

          public java.lang.String getSpotPrice()

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

    - #### setSpotPrice

          public void setSpotPrice(java.lang.String spotPrice)

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

    - #### withSpotPrice

          public SpotInstanceRequest withSpotPrice(java.lang.String spotPrice)

      Sets the value of the SpotPrice property for this object.

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

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

    - #### getType

          public java.lang.String getType()

      Returns the value of the Type property for this object.

      Constraints:
      Allowed Values: one-time, persistent

      戻り値:
        The value of the Type property for this object.
      関連項目:
        `SpotInstanceType`

    - #### setType

          public void setType(java.lang.String type)

      Sets the value of the Type property for this object.

      Constraints:
      Allowed Values: one-time, persistent

      パラメータ:
        `type` - The new value for the Type property for this object.
      関連項目:
        `SpotInstanceType`

    - #### withType

          public SpotInstanceRequest withType(java.lang.String type)

      Sets the value of the Type property for this object.

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

      Constraints:
      Allowed Values: one-time, persistent

      パラメータ:
        `type` - The new value for the Type property for this object.
      関連項目:
        `SpotInstanceType`

    - #### setType

          public void setType(SpotInstanceType type)

      Sets the value of the Type property for this object.

      Constraints:
      Allowed Values: one-time, persistent

      パラメータ:
        `type` - The new value for the Type property for this object.
      関連項目:
        `SpotInstanceType`

    - #### withType

          public SpotInstanceRequest withType(SpotInstanceType type)

      Sets the value of the Type property for this object.

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

      Constraints:
      Allowed Values: one-time, persistent

      パラメータ:
        `type` - The new value for the Type property for this object.
      関連項目:
        `SpotInstanceType`

    - #### getState

          public java.lang.String getState()

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

    - #### setState

          public void setState(java.lang.String state)

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

    - #### withState

          public SpotInstanceRequest withState(java.lang.String state)

      Sets the value of the State property for this object.

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

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

    - #### getFault

          public SpotInstanceStateFault getFault()

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

    - #### setFault

          public void setFault(SpotInstanceStateFault fault)

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

    - #### withFault

          public SpotInstanceRequest withFault(SpotInstanceStateFault fault)

      Sets the value of the Fault property for this object.

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

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

    - #### getStatus

          public SpotInstanceStatus getStatus()

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

    - #### setStatus

          public void setStatus(SpotInstanceStatus status)

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

    - #### withStatus

          public SpotInstanceRequest withStatus(SpotInstanceStatus status)

      Sets the value of the Status property for this object.

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

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

    - #### getValidFrom

          public java.util.Date getValidFrom()

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

    - #### setValidFrom

          public void setValidFrom(java.util.Date validFrom)

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

    - #### withValidFrom

          public SpotInstanceRequest withValidFrom(java.util.Date validFrom)

      Sets the value of the ValidFrom property for this object.

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

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

    - #### getValidUntil

          public java.util.Date getValidUntil()

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

    - #### setValidUntil

          public void setValidUntil(java.util.Date validUntil)

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

    - #### withValidUntil

          public SpotInstanceRequest withValidUntil(java.util.Date validUntil)

      Sets the value of the ValidUntil property for this object.

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

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

    - #### getLaunchGroup

          public java.lang.String getLaunchGroup()

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

    - #### setLaunchGroup

          public void setLaunchGroup(java.lang.String launchGroup)

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

    - #### withLaunchGroup

          public SpotInstanceRequest withLaunchGroup(java.lang.String launchGroup)

      Sets the value of the LaunchGroup property for this object.

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

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

    - #### getAvailabilityZoneGroup

          public java.lang.String getAvailabilityZoneGroup()

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

    - #### setAvailabilityZoneGroup

          public void setAvailabilityZoneGroup(java.lang.String availabilityZoneGroup)

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

    - #### withAvailabilityZoneGroup

          public SpotInstanceRequest withAvailabilityZoneGroup(java.lang.String availabilityZoneGroup)

      Sets the value of the AvailabilityZoneGroup property for this object.

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

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

    - #### getLaunchSpecification

          public LaunchSpecification getLaunchSpecification()

      The LaunchSpecificationType data type.
      戻り値:
        The LaunchSpecificationType data type.

    - #### setLaunchSpecification

          public void setLaunchSpecification(LaunchSpecification launchSpecification)

      The LaunchSpecificationType data type.
      パラメータ:
        `launchSpecification` - The LaunchSpecificationType data type.

    - #### withLaunchSpecification

          public SpotInstanceRequest withLaunchSpecification(LaunchSpecification launchSpecification)

      The LaunchSpecificationType data type.

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

      パラメータ:
        `launchSpecification` - The LaunchSpecificationType data type.

    - #### getInstanceId

          public java.lang.String getInstanceId()

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

    - #### setInstanceId

          public void setInstanceId(java.lang.String instanceId)

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

    - #### withInstanceId

          public SpotInstanceRequest withInstanceId(java.lang.String instanceId)

      Sets the value of the InstanceId property for this object.

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

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

    - #### getCreateTime

          public java.util.Date getCreateTime()

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

    - #### setCreateTime

          public void setCreateTime(java.util.Date createTime)

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

    - #### withCreateTime

          public SpotInstanceRequest withCreateTime(java.util.Date createTime)

      Sets the value of the CreateTime property for this object.

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

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

    - #### getProductDescription

          public java.lang.String getProductDescription()

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

    - #### setProductDescription

          public void setProductDescription(java.lang.String productDescription)

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

    - #### withProductDescription

          public SpotInstanceRequest withProductDescription(java.lang.String productDescription)

      Sets the value of the ProductDescription property for this object.

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

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

    - #### getTags

          public java.util.List<Tag> getTags()

      A list of tags for this spot instance request.
      戻り値:
        A list of tags for this spot instance request.

    - #### setTags

          public void setTags(java.util.Collection<Tag> tags)

      A list of tags for this spot instance request.
      パラメータ:
        `tags` - A list of tags for this spot instance request.

    - #### withTags

          public SpotInstanceRequest withTags(Tag... tags)

      A list of tags for this spot instance request.

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

      パラメータ:
        `tags` - A list of tags for this spot instance request.

    - #### withTags

          public SpotInstanceRequest withTags(java.util.Collection<Tag> tags)

      A list of tags for this spot instance request.

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

      パラメータ:
        `tags` - A list of tags for this spot instance request.

    - #### getLaunchedAvailabilityZone

          public java.lang.String getLaunchedAvailabilityZone()

      The Availability Zone in which the bid is launched.
      戻り値:
        The Availability Zone in which the bid is launched.

    - #### setLaunchedAvailabilityZone

          public void setLaunchedAvailabilityZone(java.lang.String launchedAvailabilityZone)

      The Availability Zone in which the bid is launched.
      パラメータ:
        `launchedAvailabilityZone` - The Availability Zone in which the bid is launched.

    - #### withLaunchedAvailabilityZone

          public SpotInstanceRequest withLaunchedAvailabilityZone(java.lang.String launchedAvailabilityZone)

      The Availability Zone in which the bid is launched.

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

      パラメータ:
        `launchedAvailabilityZone` - The Availability Zone in which the bid is launched.

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