@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplateSpotMarketOptionsRequest extends Object implements Serializable, Cloneable
The options for Spot Instances.
Constructor and Description |
---|
LaunchTemplateSpotMarketOptionsRequest() |
Modifier and Type | Method and Description |
---|---|
LaunchTemplateSpotMarketOptionsRequest |
clone() |
boolean |
equals(Object obj) |
Integer |
getBlockDurationMinutes()
Deprecated.
|
String |
getInstanceInterruptionBehavior()
The behavior when a Spot Instance is interrupted.
|
String |
getMaxPrice()
The maximum hourly price you're willing to pay for the Spot Instances.
|
String |
getSpotInstanceType()
The Spot Instance request type.
|
Date |
getValidUntil()
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ).
|
int |
hashCode() |
void |
setBlockDurationMinutes(Integer blockDurationMinutes)
Deprecated.
|
void |
setInstanceInterruptionBehavior(String instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted.
|
void |
setMaxPrice(String maxPrice)
The maximum hourly price you're willing to pay for the Spot Instances.
|
void |
setSpotInstanceType(String spotInstanceType)
The Spot Instance request type.
|
void |
setValidUntil(Date validUntil)
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ).
|
String |
toString()
Returns a string representation of this object.
|
LaunchTemplateSpotMarketOptionsRequest |
withBlockDurationMinutes(Integer blockDurationMinutes)
Deprecated.
|
LaunchTemplateSpotMarketOptionsRequest |
withInstanceInterruptionBehavior(InstanceInterruptionBehavior instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted.
|
LaunchTemplateSpotMarketOptionsRequest |
withInstanceInterruptionBehavior(String instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted.
|
LaunchTemplateSpotMarketOptionsRequest |
withMaxPrice(String maxPrice)
The maximum hourly price you're willing to pay for the Spot Instances.
|
LaunchTemplateSpotMarketOptionsRequest |
withSpotInstanceType(SpotInstanceType spotInstanceType)
The Spot Instance request type.
|
LaunchTemplateSpotMarketOptionsRequest |
withSpotInstanceType(String spotInstanceType)
The Spot Instance request type.
|
LaunchTemplateSpotMarketOptionsRequest |
withValidUntil(Date validUntil)
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ).
|
public LaunchTemplateSpotMarketOptionsRequest()
public void setMaxPrice(String maxPrice)
The maximum hourly price you're willing to pay for the Spot Instances. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.
maxPrice
- The maximum hourly price you're willing to pay for the Spot Instances. We do not recommend using this
parameter because it can lead to increased interruptions. If you do not specify this parameter, you will
pay the current Spot price. If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.
public String getMaxPrice()
The maximum hourly price you're willing to pay for the Spot Instances. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.
If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.
public LaunchTemplateSpotMarketOptionsRequest withMaxPrice(String maxPrice)
The maximum hourly price you're willing to pay for the Spot Instances. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.
maxPrice
- The maximum hourly price you're willing to pay for the Spot Instances. We do not recommend using this
parameter because it can lead to increased interruptions. If you do not specify this parameter, you will
pay the current Spot price. If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.
public void setSpotInstanceType(String spotInstanceType)
The Spot Instance request type.
spotInstanceType
- The Spot Instance request type.SpotInstanceType
public String getSpotInstanceType()
The Spot Instance request type.
SpotInstanceType
public LaunchTemplateSpotMarketOptionsRequest withSpotInstanceType(String spotInstanceType)
The Spot Instance request type.
spotInstanceType
- The Spot Instance request type.SpotInstanceType
public LaunchTemplateSpotMarketOptionsRequest withSpotInstanceType(SpotInstanceType spotInstanceType)
The Spot Instance request type.
spotInstanceType
- The Spot Instance request type.SpotInstanceType
public void setBlockDurationMinutes(Integer blockDurationMinutes)
Deprecated.
blockDurationMinutes
- Deprecated.public Integer getBlockDurationMinutes()
Deprecated.
public LaunchTemplateSpotMarketOptionsRequest withBlockDurationMinutes(Integer blockDurationMinutes)
Deprecated.
blockDurationMinutes
- Deprecated.public void setValidUntil(Date validUntil)
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.
For a persistent request, the request remains active until the ValidUntil
date and time is reached.
Otherwise, the request remains active until you cancel it.
For a one-time request, ValidUntil
is not supported. The request remains active until all instances
launch or you cancel the request.
Default: 7 days from the current date
validUntil
- The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for
persistent requests.
For a persistent request, the request remains active until the ValidUntil
date and time is
reached. Otherwise, the request remains active until you cancel it.
For a one-time request, ValidUntil
is not supported. The request remains active until all
instances launch or you cancel the request.
Default: 7 days from the current date
public Date getValidUntil()
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.
For a persistent request, the request remains active until the ValidUntil
date and time is reached.
Otherwise, the request remains active until you cancel it.
For a one-time request, ValidUntil
is not supported. The request remains active until all instances
launch or you cancel the request.
Default: 7 days from the current date
For a persistent request, the request remains active until the ValidUntil
date and time is
reached. Otherwise, the request remains active until you cancel it.
For a one-time request, ValidUntil
is not supported. The request remains active until all
instances launch or you cancel the request.
Default: 7 days from the current date
public LaunchTemplateSpotMarketOptionsRequest withValidUntil(Date validUntil)
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for persistent requests.
For a persistent request, the request remains active until the ValidUntil
date and time is reached.
Otherwise, the request remains active until you cancel it.
For a one-time request, ValidUntil
is not supported. The request remains active until all instances
launch or you cancel the request.
Default: 7 days from the current date
validUntil
- The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported only for
persistent requests.
For a persistent request, the request remains active until the ValidUntil
date and time is
reached. Otherwise, the request remains active until you cancel it.
For a one-time request, ValidUntil
is not supported. The request remains active until all
instances launch or you cancel the request.
Default: 7 days from the current date
public void setInstanceInterruptionBehavior(String instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted. The default is terminate
.
instanceInterruptionBehavior
- The behavior when a Spot Instance is interrupted. The default is terminate
.InstanceInterruptionBehavior
public String getInstanceInterruptionBehavior()
The behavior when a Spot Instance is interrupted. The default is terminate
.
terminate
.InstanceInterruptionBehavior
public LaunchTemplateSpotMarketOptionsRequest withInstanceInterruptionBehavior(String instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted. The default is terminate
.
instanceInterruptionBehavior
- The behavior when a Spot Instance is interrupted. The default is terminate
.InstanceInterruptionBehavior
public LaunchTemplateSpotMarketOptionsRequest withInstanceInterruptionBehavior(InstanceInterruptionBehavior instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted. The default is terminate
.
instanceInterruptionBehavior
- The behavior when a Spot Instance is interrupted. The default is terminate
.InstanceInterruptionBehavior
public String toString()
toString
in class Object
Object.toString()
public LaunchTemplateSpotMarketOptionsRequest clone()