com.amazonaws.services.ec2.model
Class SpotInstanceRequest

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

public class SpotInstanceRequest
extends Object

Spot Instance Request


Constructor Summary
SpotInstanceRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAvailabilityZoneGroup()
          Returns the value of the AvailabilityZoneGroup property for this object.
 Date getCreateTime()
          Returns the value of the CreateTime property for this object.
 SpotInstanceStateFault getFault()
          Returns the value of the Fault property for this object.
 String getInstanceId()
          Returns the value of the InstanceId property for this object.
 String getLaunchedAvailabilityZone()
          The Availability Zone in which the bid is launched.
 String getLaunchGroup()
          Returns the value of the LaunchGroup property for this object.
 LaunchSpecification getLaunchSpecification()
          The LaunchSpecificationType data type.
 String getProductDescription()
          Returns the value of the ProductDescription property for this object.
 String getSpotInstanceRequestId()
          Returns the value of the SpotInstanceRequestId property for this object.
 String getSpotPrice()
          Returns the value of the SpotPrice property for this object.
 String getState()
          Returns the value of the State property for this object.
 List<Tag> getTags()
          A list of tags for this spot instance request.
 String getType()
          Returns the value of the Type property for this object.
 Date getValidFrom()
          Returns the value of the ValidFrom property for this object.
 Date getValidUntil()
          Returns the value of the ValidUntil property for this object.
 int hashCode()
           
 void setAvailabilityZoneGroup(String availabilityZoneGroup)
          Sets the value of the AvailabilityZoneGroup property for this object.
 void setCreateTime(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(String instanceId)
          Sets the value of the InstanceId property for this object.
 void setLaunchedAvailabilityZone(String launchedAvailabilityZone)
          The Availability Zone in which the bid is launched.
 void setLaunchGroup(String launchGroup)
          Sets the value of the LaunchGroup property for this object.
 void setLaunchSpecification(LaunchSpecification launchSpecification)
          The LaunchSpecificationType data type.
 void setProductDescription(String productDescription)
          Sets the value of the ProductDescription property for this object.
 void setSpotInstanceRequestId(String spotInstanceRequestId)
          Sets the value of the SpotInstanceRequestId property for this object.
 void setSpotPrice(String spotPrice)
          Sets the value of the SpotPrice property for this object.
 void setState(String state)
          Sets the value of the State property for this object.
 void setTags(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(String type)
          Sets the value of the Type property for this object.
 void setValidFrom(Date validFrom)
          Sets the value of the ValidFrom property for this object.
 void setValidUntil(Date validUntil)
          Sets the value of the ValidUntil property for this object.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SpotInstanceRequest withAvailabilityZoneGroup(String availabilityZoneGroup)
          Sets the value of the AvailabilityZoneGroup property for this object.
 SpotInstanceRequest withCreateTime(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(String instanceId)
          Sets the value of the InstanceId property for this object.
 SpotInstanceRequest withLaunchedAvailabilityZone(String launchedAvailabilityZone)
          The Availability Zone in which the bid is launched.
 SpotInstanceRequest withLaunchGroup(String launchGroup)
          Sets the value of the LaunchGroup property for this object.
 SpotInstanceRequest withLaunchSpecification(LaunchSpecification launchSpecification)
          The LaunchSpecificationType data type.
 SpotInstanceRequest withProductDescription(String productDescription)
          Sets the value of the ProductDescription property for this object.
 SpotInstanceRequest withSpotInstanceRequestId(String spotInstanceRequestId)
          Sets the value of the SpotInstanceRequestId property for this object.
 SpotInstanceRequest withSpotPrice(String spotPrice)
          Sets the value of the SpotPrice property for this object.
 SpotInstanceRequest withState(String state)
          Sets the value of the State property for this object.
 SpotInstanceRequest withTags(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(String type)
          Sets the value of the Type property for this object.
 SpotInstanceRequest withValidFrom(Date validFrom)
          Sets the value of the ValidFrom property for this object.
 SpotInstanceRequest withValidUntil(Date validUntil)
          Sets the value of the ValidUntil property for this object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpotInstanceRequest

public SpotInstanceRequest()
Method Detail

getSpotInstanceRequestId

public String getSpotInstanceRequestId()
Returns the value of the SpotInstanceRequestId property for this object.

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

setSpotInstanceRequestId

public void setSpotInstanceRequestId(String spotInstanceRequestId)
Sets the value of the SpotInstanceRequestId property for this object.

Parameters:
spotInstanceRequestId - The new value for the SpotInstanceRequestId property for this object.

withSpotInstanceRequestId

public SpotInstanceRequest withSpotInstanceRequestId(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.

Parameters:
spotInstanceRequestId - The new value for the SpotInstanceRequestId 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 SpotInstanceRequest 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.

getType

public String getType()
Returns the value of the Type property for this object.

Constraints:
Allowed Values: one-time, persistent

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

setType

public void setType(String type)
Sets the value of the Type property for this object.

Constraints:
Allowed Values: one-time, persistent

Parameters:
type - The new value for the Type property for this object.
See Also:
SpotInstanceType

withType

public SpotInstanceRequest withType(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

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

setType

public void setType(SpotInstanceType type)
Sets the value of the Type property for this object.

Constraints:
Allowed Values: one-time, persistent

Parameters:
type - The new value for the Type property for this object.
See Also:
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

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

getState

public String getState()
Returns the value of the State property for this object.

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

setState

public void setState(String state)
Sets the value of the State property for this object.

Parameters:
state - The new value for the State property for this object.

withState

public SpotInstanceRequest withState(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.

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

getFault

public SpotInstanceStateFault getFault()
Returns the value of the Fault property for this object.

Returns:
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.

Parameters:
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.

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

getValidFrom

public Date getValidFrom()
Returns the value of the ValidFrom property for this object.

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

setValidFrom

public void setValidFrom(Date validFrom)
Sets the value of the ValidFrom property for this object.

Parameters:
validFrom - The new value for the ValidFrom property for this object.

withValidFrom

public SpotInstanceRequest withValidFrom(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.

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

getValidUntil

public Date getValidUntil()
Returns the value of the ValidUntil property for this object.

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

setValidUntil

public void setValidUntil(Date validUntil)
Sets the value of the ValidUntil property for this object.

Parameters:
validUntil - The new value for the ValidUntil property for this object.

withValidUntil

public SpotInstanceRequest withValidUntil(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.

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

getLaunchGroup

public String getLaunchGroup()
Returns the value of the LaunchGroup property for this object.

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

setLaunchGroup

public void setLaunchGroup(String launchGroup)
Sets the value of the LaunchGroup property for this object.

Parameters:
launchGroup - The new value for the LaunchGroup property for this object.

withLaunchGroup

public SpotInstanceRequest withLaunchGroup(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.

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

getAvailabilityZoneGroup

public String getAvailabilityZoneGroup()
Returns the value of the AvailabilityZoneGroup property for this object.

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

setAvailabilityZoneGroup

public void setAvailabilityZoneGroup(String availabilityZoneGroup)
Sets the value of the AvailabilityZoneGroup property for this object.

Parameters:
availabilityZoneGroup - The new value for the AvailabilityZoneGroup property for this object.

withAvailabilityZoneGroup

public SpotInstanceRequest withAvailabilityZoneGroup(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.

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

getLaunchSpecification

public LaunchSpecification getLaunchSpecification()
The LaunchSpecificationType data type.

Returns:
The LaunchSpecificationType data type.

setLaunchSpecification

public void setLaunchSpecification(LaunchSpecification launchSpecification)
The LaunchSpecificationType data type.

Parameters:
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.

Parameters:
launchSpecification - The LaunchSpecificationType data type.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceId

public String getInstanceId()
Returns the value of the InstanceId property for this object.

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

setInstanceId

public void setInstanceId(String instanceId)
Sets the value of the InstanceId property for this object.

Parameters:
instanceId - The new value for the InstanceId property for this object.

withInstanceId

public SpotInstanceRequest withInstanceId(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.

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

getCreateTime

public Date getCreateTime()
Returns the value of the CreateTime property for this object.

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

setCreateTime

public void setCreateTime(Date createTime)
Sets the value of the CreateTime property for this object.

Parameters:
createTime - The new value for the CreateTime property for this object.

withCreateTime

public SpotInstanceRequest withCreateTime(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.

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

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 SpotInstanceRequest 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.

getTags

public List<Tag> getTags()
A list of tags for this spot instance request.

Returns:
A list of tags for this spot instance request.

setTags

public void setTags(Collection<Tag> tags)
A list of tags for this spot instance request.

Parameters:
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.

Parameters:
tags - A list of tags for this spot instance request.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public SpotInstanceRequest withTags(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.

Parameters:
tags - A list of tags for this spot instance request.
Returns:
A reference to this updated object so that method calls can be chained together.

getLaunchedAvailabilityZone

public String getLaunchedAvailabilityZone()
The Availability Zone in which the bid is launched.

Returns:
The Availability Zone in which the bid is launched.

setLaunchedAvailabilityZone

public void setLaunchedAvailabilityZone(String launchedAvailabilityZone)
The Availability Zone in which the bid is launched.

Parameters:
launchedAvailabilityZone - The Availability Zone in which the bid is launched.

withLaunchedAvailabilityZone

public SpotInstanceRequest withLaunchedAvailabilityZone(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.

Parameters:
launchedAvailabilityZone - The Availability Zone in which the bid is launched.
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.