Class SpotPrice

java.lang.Object
com.amazonaws.services.ec2.model.SpotPrice
All Implemented Interfaces:
Serializable, Cloneable

public class SpotPrice extends Object implements Serializable, Cloneable

Describes the maximum hourly price (bid) for any Spot instance launched to fulfill the request.

See Also:
  • Constructor Details

    • SpotPrice

      public SpotPrice()
  • Method Details

    • setInstanceType

      public void setInstanceType(String instanceType)

      The instance type.

      Parameters:
      instanceType - The instance type.
      See Also:
    • getInstanceType

      public String getInstanceType()

      The instance type.

      Returns:
      The instance type.
      See Also:
    • withInstanceType

      public SpotPrice withInstanceType(String instanceType)

      The instance type.

      Parameters:
      instanceType - The instance type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setInstanceType

      public void setInstanceType(InstanceType instanceType)

      The instance type.

      Parameters:
      instanceType - The instance type.
      See Also:
    • withInstanceType

      public SpotPrice withInstanceType(InstanceType instanceType)

      The instance type.

      Parameters:
      instanceType - The instance type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setProductDescription

      public void setProductDescription(String productDescription)

      A general description of the AMI.

      Parameters:
      productDescription - A general description of the AMI.
      See Also:
    • getProductDescription

      public String getProductDescription()

      A general description of the AMI.

      Returns:
      A general description of the AMI.
      See Also:
    • withProductDescription

      public SpotPrice withProductDescription(String productDescription)

      A general description of the AMI.

      Parameters:
      productDescription - A general description of the AMI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setProductDescription

      public void setProductDescription(RIProductDescription productDescription)

      A general description of the AMI.

      Parameters:
      productDescription - A general description of the AMI.
      See Also:
    • withProductDescription

      public SpotPrice withProductDescription(RIProductDescription productDescription)

      A general description of the AMI.

      Parameters:
      productDescription - A general description of the AMI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setSpotPrice

      public void setSpotPrice(String spotPrice)

      The maximum price (bid) that you are willing to pay for a Spot instance.

      Parameters:
      spotPrice - The maximum price (bid) that you are willing to pay for a Spot instance.
    • getSpotPrice

      public String getSpotPrice()

      The maximum price (bid) that you are willing to pay for a Spot instance.

      Returns:
      The maximum price (bid) that you are willing to pay for a Spot instance.
    • withSpotPrice

      public SpotPrice withSpotPrice(String spotPrice)

      The maximum price (bid) that you are willing to pay for a Spot instance.

      Parameters:
      spotPrice - The maximum price (bid) that you are willing to pay for a Spot instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setTimestamp

      public void setTimestamp(Date timestamp)

      The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

      Parameters:
      timestamp - The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
    • getTimestamp

      public Date getTimestamp()

      The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

      Returns:
      The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
    • withTimestamp

      public SpotPrice withTimestamp(Date timestamp)

      The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

      Parameters:
      timestamp - The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAvailabilityZone

      public void setAvailabilityZone(String availabilityZone)

      The Availability Zone.

      Parameters:
      availabilityZone - The Availability Zone.
    • getAvailabilityZone

      public String getAvailabilityZone()

      The Availability Zone.

      Returns:
      The Availability Zone.
    • withAvailabilityZone

      public SpotPrice withAvailabilityZone(String availabilityZone)

      The Availability Zone.

      Parameters:
      availabilityZone - The Availability Zone.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public SpotPrice clone()
      Overrides:
      clone in class Object