com.amazonaws.services.ec2.model
Class SpotPrice

java.lang.Object
  extended by com.amazonaws.services.ec2.model.SpotPrice
All Implemented Interfaces:
java.io.Serializable

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

Describes the Spot Price.

See Also:
Serialized Form

Constructor Summary
SpotPrice()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAvailabilityZone()
          The Availability Zone.
 java.lang.String getInstanceType()
          The instance type.
 java.lang.String getProductDescription()
          A general description of the AMI.
 java.lang.String getSpotPrice()
          The maximum price you will pay to launch one or more Spot Instances.
 java.util.Date getTimestamp()
          The date and time the request was created.
 int hashCode()
           
 void setAvailabilityZone(java.lang.String availabilityZone)
          The Availability Zone.
 void setInstanceType(InstanceType instanceType)
          The instance type.
 void setInstanceType(java.lang.String instanceType)
          The instance type.
 void setProductDescription(RIProductDescription productDescription)
          A general description of the AMI.
 void setProductDescription(java.lang.String productDescription)
          A general description of the AMI.
 void setSpotPrice(java.lang.String spotPrice)
          The maximum price you will pay to launch one or more Spot Instances.
 void setTimestamp(java.util.Date timestamp)
          The date and time the request was created.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SpotPrice withAvailabilityZone(java.lang.String availabilityZone)
          The Availability Zone.
 SpotPrice withInstanceType(InstanceType instanceType)
          The instance type.
 SpotPrice withInstanceType(java.lang.String instanceType)
          The instance type.
 SpotPrice withProductDescription(RIProductDescription productDescription)
          A general description of the AMI.
 SpotPrice withProductDescription(java.lang.String productDescription)
          A general description of the AMI.
 SpotPrice withSpotPrice(java.lang.String spotPrice)
          The maximum price you will pay to launch one or more Spot Instances.
 SpotPrice withTimestamp(java.util.Date timestamp)
          The date and time the request was created.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpotPrice

public SpotPrice()
Method Detail

getInstanceType

public java.lang.String getInstanceType()
The instance type.

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

Returns:
The instance type.
See Also:
InstanceType

setInstanceType

public void setInstanceType(java.lang.String instanceType)
The instance type.

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

Parameters:
instanceType - The instance type.
See Also:
InstanceType

withInstanceType

public SpotPrice withInstanceType(java.lang.String instanceType)
The instance type.

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, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

Parameters:
instanceType - The instance type.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceType

setInstanceType

public void setInstanceType(InstanceType instanceType)
The instance type.

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

Parameters:
instanceType - The instance type.
See Also:
InstanceType

withInstanceType

public SpotPrice withInstanceType(InstanceType instanceType)
The instance type.

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, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

Parameters:
instanceType - The instance type.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceType

getProductDescription

public java.lang.String getProductDescription()
A general description of the AMI.

Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)

Returns:
A general description of the AMI.
See Also:
RIProductDescription

setProductDescription

public void setProductDescription(java.lang.String productDescription)
A general description of the AMI.

Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)

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

withProductDescription

public SpotPrice withProductDescription(java.lang.String productDescription)
A general description of the AMI.

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

Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)

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

setProductDescription

public void setProductDescription(RIProductDescription productDescription)
A general description of the AMI.

Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)

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

withProductDescription

public SpotPrice withProductDescription(RIProductDescription productDescription)
A general description of the AMI.

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

Constraints:
Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)

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

getSpotPrice

public java.lang.String getSpotPrice()
The maximum price you will pay to launch one or more Spot Instances.

Returns:
The maximum price you will pay to launch one or more Spot Instances.

setSpotPrice

public void setSpotPrice(java.lang.String spotPrice)
The maximum price you will pay to launch one or more Spot Instances.

Parameters:
spotPrice - The maximum price you will pay to launch one or more Spot Instances.

withSpotPrice

public SpotPrice withSpotPrice(java.lang.String spotPrice)
The maximum price you will pay to launch one or more Spot Instances.

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

Parameters:
spotPrice - The maximum price you will pay to launch one or more Spot Instances.
Returns:
A reference to this updated object so that method calls can be chained together.

getTimestamp

public java.util.Date getTimestamp()
The date and time the request was created.

Returns:
The date and time the request was created.

setTimestamp

public void setTimestamp(java.util.Date timestamp)
The date and time the request was created.

Parameters:
timestamp - The date and time the request was created.

withTimestamp

public SpotPrice withTimestamp(java.util.Date timestamp)
The date and time the request was created.

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

Parameters:
timestamp - The date and time the request was created.
Returns:
A reference to this updated object so that method calls can be chained together.

getAvailabilityZone

public java.lang.String getAvailabilityZone()
The Availability Zone.

Returns:
The Availability Zone.

setAvailabilityZone

public void setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone.

Parameters:
availabilityZone - The Availability Zone.

withAvailabilityZone

public SpotPrice withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone.

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

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

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.