@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides details about the market (purchasing) option for an Amazon EC2 instance.
Constructor and Description |
---|
AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails |
clone() |
boolean |
equals(Object obj) |
String |
getMarketType()
The market type.
|
AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails |
getSpotOptions()
The options for Spot Instances.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMarketType(String marketType)
The market type.
|
void |
setSpotOptions(AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails spotOptions)
The options for Spot Instances.
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails |
withMarketType(String marketType)
The market type.
|
AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails |
withSpotOptions(AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails spotOptions)
The options for Spot Instances.
|
public AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails()
public void setMarketType(String marketType)
The market type.
marketType
- The market type.public String getMarketType()
The market type.
public AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails withMarketType(String marketType)
The market type.
marketType
- The market type.public void setSpotOptions(AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails spotOptions)
The options for Spot Instances.
spotOptions
- The options for Spot Instances.public AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails getSpotOptions()
The options for Spot Instances.
public AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails withSpotOptions(AwsEc2LaunchTemplateDataInstanceMarketOptionsSpotOptionsDetails spotOptions)
The options for Spot Instances.
spotOptions
- The options for Spot Instances.public String toString()
toString
in class Object
Object.toString()
public AwsEc2LaunchTemplateDataInstanceMarketOptionsDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.