com.amazonaws.services.ec2.model
Class SpotPrice

java.lang.Object
  extended by com.amazonaws.services.ec2.model.SpotPrice

public class SpotPrice
extends Object

Spot Price


Constructor Summary
SpotPrice()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAvailabilityZone()
          Returns the value of the AvailabilityZone property for this object.
 String getInstanceType()
          Returns the value of the InstanceType property for this object.
 String getProductDescription()
          Returns the value of the ProductDescription property for this object.
 String getSpotPrice()
          Returns the value of the SpotPrice property for this object.
 Date getTimestamp()
          Returns the value of the Timestamp property for this object.
 int hashCode()
           
 void setAvailabilityZone(String availabilityZone)
          Sets the value of the AvailabilityZone property for this object.
 void setInstanceType(InstanceType instanceType)
          Sets the value of the InstanceType property for this object.
 void setInstanceType(String instanceType)
          Sets the value of the InstanceType property for this object.
 void setProductDescription(String productDescription)
          Sets the value of the ProductDescription property for this object.
 void setSpotPrice(String spotPrice)
          Sets the value of the SpotPrice property for this object.
 void setTimestamp(Date timestamp)
          Sets the value of the Timestamp property for this object.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SpotPrice withAvailabilityZone(String availabilityZone)
          Sets the value of the AvailabilityZone property for this object.
 SpotPrice withInstanceType(InstanceType instanceType)
          Sets the value of the InstanceType property for this object.
 SpotPrice withInstanceType(String instanceType)
          Sets the value of the InstanceType property for this object.
 SpotPrice withProductDescription(String productDescription)
          Sets the value of the ProductDescription property for this object.
 SpotPrice withSpotPrice(String spotPrice)
          Sets the value of the SpotPrice property for this object.
 SpotPrice withTimestamp(Date timestamp)
          Sets the value of the Timestamp property for this object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpotPrice

public SpotPrice()
Method Detail

getInstanceType

public String getInstanceType()
Returns the value of the InstanceType property for this object.

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

Returns:
The value of the InstanceType property for this object.
See Also:
InstanceType

setInstanceType

public void setInstanceType(String instanceType)
Sets the value of the InstanceType property for this object.

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

Parameters:
instanceType - The new value for the InstanceType property for this object.
See Also:
InstanceType

withInstanceType

public SpotPrice withInstanceType(String instanceType)
Sets the value of the InstanceType property for this object.

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, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge

Parameters:
instanceType - The new value for the InstanceType property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceType

setInstanceType

public void setInstanceType(InstanceType instanceType)
Sets the value of the InstanceType property for this object.

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

Parameters:
instanceType - The new value for the InstanceType property for this object.
See Also:
InstanceType

withInstanceType

public SpotPrice withInstanceType(InstanceType instanceType)
Sets the value of the InstanceType property for this object.

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, c1.medium, c1.xlarge, hi1.4xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge

Parameters:
instanceType - The new value for the InstanceType property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceType

getProductDescription

public String getProductDescription()
Returns the value of the ProductDescription property for this object.

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

setProductDescription

public void setProductDescription(String productDescription)
Sets the value of the ProductDescription property for this object.

Parameters:
productDescription - The new value for the ProductDescription property for this object.

withProductDescription

public SpotPrice withProductDescription(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.

Parameters:
productDescription - The new value for the ProductDescription property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getSpotPrice

public String getSpotPrice()
Returns the value of the SpotPrice property for this object.

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

setSpotPrice

public void setSpotPrice(String spotPrice)
Sets the value of the SpotPrice property for this object.

Parameters:
spotPrice - The new value for the SpotPrice property for this object.

withSpotPrice

public SpotPrice withSpotPrice(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.

Parameters:
spotPrice - The new value for the SpotPrice property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getTimestamp

public Date getTimestamp()
Returns the value of the Timestamp property for this object.

Returns:
The value of the Timestamp property for this object.

setTimestamp

public void setTimestamp(Date timestamp)
Sets the value of the Timestamp property for this object.

Parameters:
timestamp - The new value for the Timestamp property for this object.

withTimestamp

public SpotPrice withTimestamp(Date timestamp)
Sets the value of the Timestamp property for this object.

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

Parameters:
timestamp - The new value for the Timestamp property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getAvailabilityZone

public String getAvailabilityZone()
Returns the value of the AvailabilityZone property for this object.

Returns:
The value of the AvailabilityZone property for this object.

setAvailabilityZone

public void setAvailabilityZone(String availabilityZone)
Sets the value of the AvailabilityZone property for this object.

Parameters:
availabilityZone - The new value for the AvailabilityZone property for this object.

withAvailabilityZone

public SpotPrice withAvailabilityZone(String availabilityZone)
Sets the value of the AvailabilityZone property for this object.

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

Parameters:
availabilityZone - The new value for the AvailabilityZone property for this object.
Returns:
A reference to this updated 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


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