|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.RequestSpotInstancesRequest
public class RequestSpotInstancesRequest
Container for the parameters to the RequestSpotInstances operation
.
Creates a Spot Instance request.
Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current spot instance requests.
For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide.
AmazonEC2.requestSpotInstances(RequestSpotInstancesRequest)
Constructor Summary | |
---|---|
RequestSpotInstancesRequest()
Default constructor for a new RequestSpotInstancesRequest object. |
|
RequestSpotInstancesRequest(String spotPrice)
Constructs a new RequestSpotInstancesRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAvailabilityZoneGroup()
Specifies the Availability Zone group. |
Integer |
getInstanceCount()
Specifies the maximum number of Spot Instances to launch. |
String |
getLaunchGroup()
Specifies the instance launch group. |
LaunchSpecification |
getLaunchSpecification()
Specifies additional launch instance information. |
String |
getSpotPrice()
Specifies the maximum hourly price for any Spot Instance launched to fulfill the request. |
String |
getType()
Specifies the Spot Instance type. |
Date |
getValidFrom()
Defines the start date of the request. |
Date |
getValidUntil()
End date of the request. |
int |
hashCode()
|
void |
setAvailabilityZoneGroup(String availabilityZoneGroup)
Specifies the Availability Zone group. |
void |
setInstanceCount(Integer instanceCount)
Specifies the maximum number of Spot Instances to launch. |
void |
setLaunchGroup(String launchGroup)
Specifies the instance launch group. |
void |
setLaunchSpecification(LaunchSpecification launchSpecification)
Specifies additional launch instance information. |
void |
setSpotPrice(String spotPrice)
Specifies the maximum hourly price for any Spot Instance launched to fulfill the request. |
void |
setType(SpotInstanceType type)
Specifies the Spot Instance type. |
void |
setType(String type)
Specifies the Spot Instance type. |
void |
setValidFrom(Date validFrom)
Defines the start date of the request. |
void |
setValidUntil(Date validUntil)
End date of the request. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
RequestSpotInstancesRequest |
withAvailabilityZoneGroup(String availabilityZoneGroup)
Specifies the Availability Zone group. |
RequestSpotInstancesRequest |
withInstanceCount(Integer instanceCount)
Specifies the maximum number of Spot Instances to launch. |
RequestSpotInstancesRequest |
withLaunchGroup(String launchGroup)
Specifies the instance launch group. |
RequestSpotInstancesRequest |
withLaunchSpecification(LaunchSpecification launchSpecification)
Specifies additional launch instance information. |
RequestSpotInstancesRequest |
withSpotPrice(String spotPrice)
Specifies the maximum hourly price for any Spot Instance launched to fulfill the request. |
RequestSpotInstancesRequest |
withType(SpotInstanceType type)
Specifies the Spot Instance type. |
RequestSpotInstancesRequest |
withType(String type)
Specifies the Spot Instance type. |
RequestSpotInstancesRequest |
withValidFrom(Date validFrom)
Defines the start date of the request. |
RequestSpotInstancesRequest |
withValidUntil(Date validUntil)
End date of the request. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RequestSpotInstancesRequest()
public RequestSpotInstancesRequest(String spotPrice)
spotPrice
- Specifies the maximum hourly price for any Spot
Instance launched to fulfill the request.Method Detail |
---|
public String getSpotPrice()
public void setSpotPrice(String spotPrice)
spotPrice
- Specifies the maximum hourly price for any Spot Instance launched to
fulfill the request.public RequestSpotInstancesRequest withSpotPrice(String spotPrice)
Returns a reference to this object so that method calls can be chained together.
spotPrice
- Specifies the maximum hourly price for any Spot Instance launched to
fulfill the request.
public Integer getInstanceCount()
public void setInstanceCount(Integer instanceCount)
instanceCount
- Specifies the maximum number of Spot Instances to launch.public RequestSpotInstancesRequest withInstanceCount(Integer instanceCount)
Returns a reference to this object so that method calls can be chained together.
instanceCount
- Specifies the maximum number of Spot Instances to launch.
public String getType()
Constraints:
Allowed Values: one-time, persistent
SpotInstanceType
public void setType(String type)
Constraints:
Allowed Values: one-time, persistent
type
- Specifies the Spot Instance type.SpotInstanceType
public RequestSpotInstancesRequest withType(String type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: one-time, persistent
type
- Specifies the Spot Instance type.
SpotInstanceType
public void setType(SpotInstanceType type)
Constraints:
Allowed Values: one-time, persistent
type
- Specifies the Spot Instance type.SpotInstanceType
public RequestSpotInstancesRequest withType(SpotInstanceType type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: one-time, persistent
type
- Specifies the Spot Instance type.
SpotInstanceType
public Date getValidFrom()
If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled.
If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled.
public void setValidFrom(Date validFrom)
If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled.
validFrom
- Defines the start date of the request. If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled.
public RequestSpotInstancesRequest withValidFrom(Date validFrom)
If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled.
Returns a reference to this object so that method calls can be chained together.
validFrom
- Defines the start date of the request. If this is a one-time request, the request becomes active at this date and time and remains active until all instances launch, the request expires, or the request is canceled. If the request is persistent, the request becomes active at this date and time and remains active until it expires or is canceled.
public Date getValidUntil()
If this is a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date and time is reached.
If this is a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date and time is reached.
public void setValidUntil(Date validUntil)
If this is a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date and time is reached.
validUntil
- End date of the request. If this is a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date and time is reached.
public RequestSpotInstancesRequest withValidUntil(Date validUntil)
If this is a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date and time is reached.
Returns a reference to this object so that method calls can be chained together.
validUntil
- End date of the request. If this is a one-time request, the request remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date and time is reached.
public String getLaunchGroup()
public void setLaunchGroup(String launchGroup)
launchGroup
- Specifies the instance launch group. Launch groups are Spot Instances
that launch and terminate together.public RequestSpotInstancesRequest withLaunchGroup(String launchGroup)
Returns a reference to this object so that method calls can be chained together.
launchGroup
- Specifies the instance launch group. Launch groups are Spot Instances
that launch and terminate together.
public String getAvailabilityZoneGroup()
When specifying the same Availability Zone group for all Spot Instance requests, all Spot Instances are launched in the same Availability Zone.
When specifying the same Availability Zone group for all Spot Instance requests, all Spot Instances are launched in the same Availability Zone.
public void setAvailabilityZoneGroup(String availabilityZoneGroup)
When specifying the same Availability Zone group for all Spot Instance requests, all Spot Instances are launched in the same Availability Zone.
availabilityZoneGroup
- Specifies the Availability Zone group. When specifying the same Availability Zone group for all Spot Instance requests, all Spot Instances are launched in the same Availability Zone.
public RequestSpotInstancesRequest withAvailabilityZoneGroup(String availabilityZoneGroup)
When specifying the same Availability Zone group for all Spot Instance requests, all Spot Instances are launched in the same Availability Zone.
Returns a reference to this object so that method calls can be chained together.
availabilityZoneGroup
- Specifies the Availability Zone group. When specifying the same Availability Zone group for all Spot Instance requests, all Spot Instances are launched in the same Availability Zone.
public LaunchSpecification getLaunchSpecification()
public void setLaunchSpecification(LaunchSpecification launchSpecification)
launchSpecification
- Specifies additional launch instance information.public RequestSpotInstancesRequest withLaunchSpecification(LaunchSpecification launchSpecification)
Returns a reference to this object so that method calls can be chained together.
launchSpecification
- Specifies additional launch instance information.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |