@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails extends Object implements Serializable, Cloneable, StructuredPojo
The minimum and maximum amount of memory, in MiB, for an Amazon EC2 instance.
Constructor and Description |
---|
AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails |
clone() |
boolean |
equals(Object obj) |
Integer |
getMax()
The maximum amount of memory, in MiB.
|
Integer |
getMin()
The minimum amount of memory, in MiB.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMax(Integer max)
The maximum amount of memory, in MiB.
|
void |
setMin(Integer min)
The minimum amount of memory, in MiB.
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails |
withMax(Integer max)
The maximum amount of memory, in MiB.
|
AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails |
withMin(Integer min)
The minimum amount of memory, in MiB.
|
public AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails()
public void setMax(Integer max)
The maximum amount of memory, in MiB.
max
- The maximum amount of memory, in MiB.public Integer getMax()
The maximum amount of memory, in MiB.
public AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails withMax(Integer max)
The maximum amount of memory, in MiB.
max
- The maximum amount of memory, in MiB.public void setMin(Integer min)
The minimum amount of memory, in MiB.
min
- The minimum amount of memory, in MiB.public Integer getMin()
The minimum amount of memory, in MiB.
public AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails withMin(Integer min)
The minimum amount of memory, in MiB.
min
- The minimum amount of memory, in MiB.public String toString()
toString
in class Object
Object.toString()
public AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.