@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides details about the market (purchasing) options for Spot Instances.
Constructor and Description |
---|
AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails |
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.
|
String |
getValidUntil()
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ), for persistent requests.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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(String validUntil)
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ), for persistent requests.
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails |
withBlockDurationMinutes(Integer blockDurationMinutes)
Deprecated.
|
AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails |
withInstanceInterruptionBehavior(String instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted.
|
AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails |
withMaxPrice(String maxPrice)
The maximum hourly price you're willing to pay for the Spot Instances.
|
AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails |
withSpotInstanceType(String spotInstanceType)
The Spot Instance request type.
|
AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails |
withValidUntil(String validUntil)
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ), for persistent requests.
|
public AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails()
public void setBlockDurationMinutes(Integer blockDurationMinutes)
Deprecated.
blockDurationMinutes
- Deprecated.public Integer getBlockDurationMinutes()
Deprecated.
public AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails withBlockDurationMinutes(Integer blockDurationMinutes)
Deprecated.
blockDurationMinutes
- Deprecated.public void setInstanceInterruptionBehavior(String instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted.
instanceInterruptionBehavior
- The behavior when a Spot Instance is interrupted.public String getInstanceInterruptionBehavior()
The behavior when a Spot Instance is interrupted.
public AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails withInstanceInterruptionBehavior(String instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted.
instanceInterruptionBehavior
- The behavior when a Spot Instance is interrupted.public void setMaxPrice(String maxPrice)
The maximum hourly price you're willing to pay for the Spot Instances.
maxPrice
- The maximum hourly price you're willing to pay for the Spot Instances.public String getMaxPrice()
The maximum hourly price you're willing to pay for the Spot Instances.
public AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails withMaxPrice(String maxPrice)
The maximum hourly price you're willing to pay for the Spot Instances.
maxPrice
- The maximum hourly price you're willing to pay for the Spot Instances.public void setSpotInstanceType(String spotInstanceType)
The Spot Instance request type.
spotInstanceType
- The Spot Instance request type.public String getSpotInstanceType()
The Spot Instance request type.
public AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails withSpotInstanceType(String spotInstanceType)
The Spot Instance request type.
spotInstanceType
- The Spot Instance request type.public void setValidUntil(String validUntil)
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ), for persistent requests.
validUntil
- The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ), for persistent requests.public String getValidUntil()
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ), for persistent requests.
public AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails withValidUntil(String validUntil)
The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ), for persistent requests.
validUntil
- The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ), for persistent requests.public String toString()
toString
in class Object
Object.toString()
public AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.