@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServiceManagedEc2InstanceCapabilities extends Object implements Serializable, Cloneable, StructuredPojo
The Amazon EC2 instance capabilities.
| Constructor and Description |
|---|
ServiceManagedEc2InstanceCapabilities() |
| Modifier and Type | Method and Description |
|---|---|
ServiceManagedEc2InstanceCapabilities |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAllowedInstanceTypes()
The allowable Amazon EC2 instance types.
|
String |
getCpuArchitectureType()
The CPU architecture type.
|
List<FleetAmountCapability> |
getCustomAmounts()
The custom capability amounts to require for instances in this fleet.
|
List<FleetAttributeCapability> |
getCustomAttributes()
The custom capability attributes to require for instances in this fleet.
|
List<String> |
getExcludedInstanceTypes()
The instance types to exclude from the fleet.
|
MemoryMiBRange |
getMemoryMiB()
The memory, as MiB, for the Amazon EC2 instance type.
|
String |
getOsFamily()
The operating system (OS) family.
|
Ec2EbsVolume |
getRootEbsVolume()
The root EBS volume.
|
VCpuCountRange |
getVCpuCount()
The amount of vCPU to require for instances in this fleet.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAllowedInstanceTypes(Collection<String> allowedInstanceTypes)
The allowable Amazon EC2 instance types.
|
void |
setCpuArchitectureType(String cpuArchitectureType)
The CPU architecture type.
|
void |
setCustomAmounts(Collection<FleetAmountCapability> customAmounts)
The custom capability amounts to require for instances in this fleet.
|
void |
setCustomAttributes(Collection<FleetAttributeCapability> customAttributes)
The custom capability attributes to require for instances in this fleet.
|
void |
setExcludedInstanceTypes(Collection<String> excludedInstanceTypes)
The instance types to exclude from the fleet.
|
void |
setMemoryMiB(MemoryMiBRange memoryMiB)
The memory, as MiB, for the Amazon EC2 instance type.
|
void |
setOsFamily(String osFamily)
The operating system (OS) family.
|
void |
setRootEbsVolume(Ec2EbsVolume rootEbsVolume)
The root EBS volume.
|
void |
setVCpuCount(VCpuCountRange vCpuCount)
The amount of vCPU to require for instances in this fleet.
|
String |
toString()
Returns a string representation of this object.
|
ServiceManagedEc2InstanceCapabilities |
withAllowedInstanceTypes(Collection<String> allowedInstanceTypes)
The allowable Amazon EC2 instance types.
|
ServiceManagedEc2InstanceCapabilities |
withAllowedInstanceTypes(String... allowedInstanceTypes)
The allowable Amazon EC2 instance types.
|
ServiceManagedEc2InstanceCapabilities |
withCpuArchitectureType(CpuArchitectureType cpuArchitectureType)
The CPU architecture type.
|
ServiceManagedEc2InstanceCapabilities |
withCpuArchitectureType(String cpuArchitectureType)
The CPU architecture type.
|
ServiceManagedEc2InstanceCapabilities |
withCustomAmounts(Collection<FleetAmountCapability> customAmounts)
The custom capability amounts to require for instances in this fleet.
|
ServiceManagedEc2InstanceCapabilities |
withCustomAmounts(FleetAmountCapability... customAmounts)
The custom capability amounts to require for instances in this fleet.
|
ServiceManagedEc2InstanceCapabilities |
withCustomAttributes(Collection<FleetAttributeCapability> customAttributes)
The custom capability attributes to require for instances in this fleet.
|
ServiceManagedEc2InstanceCapabilities |
withCustomAttributes(FleetAttributeCapability... customAttributes)
The custom capability attributes to require for instances in this fleet.
|
ServiceManagedEc2InstanceCapabilities |
withExcludedInstanceTypes(Collection<String> excludedInstanceTypes)
The instance types to exclude from the fleet.
|
ServiceManagedEc2InstanceCapabilities |
withExcludedInstanceTypes(String... excludedInstanceTypes)
The instance types to exclude from the fleet.
|
ServiceManagedEc2InstanceCapabilities |
withMemoryMiB(MemoryMiBRange memoryMiB)
The memory, as MiB, for the Amazon EC2 instance type.
|
ServiceManagedEc2InstanceCapabilities |
withOsFamily(ServiceManagedFleetOperatingSystemFamily osFamily)
The operating system (OS) family.
|
ServiceManagedEc2InstanceCapabilities |
withOsFamily(String osFamily)
The operating system (OS) family.
|
ServiceManagedEc2InstanceCapabilities |
withRootEbsVolume(Ec2EbsVolume rootEbsVolume)
The root EBS volume.
|
ServiceManagedEc2InstanceCapabilities |
withVCpuCount(VCpuCountRange vCpuCount)
The amount of vCPU to require for instances in this fleet.
|
public ServiceManagedEc2InstanceCapabilities()
public List<String> getAllowedInstanceTypes()
The allowable Amazon EC2 instance types.
public void setAllowedInstanceTypes(Collection<String> allowedInstanceTypes)
The allowable Amazon EC2 instance types.
allowedInstanceTypes - The allowable Amazon EC2 instance types.public ServiceManagedEc2InstanceCapabilities withAllowedInstanceTypes(String... allowedInstanceTypes)
The allowable Amazon EC2 instance types.
NOTE: This method appends the values to the existing list (if any). Use
setAllowedInstanceTypes(java.util.Collection) or withAllowedInstanceTypes(java.util.Collection)
if you want to override the existing values.
allowedInstanceTypes - The allowable Amazon EC2 instance types.public ServiceManagedEc2InstanceCapabilities withAllowedInstanceTypes(Collection<String> allowedInstanceTypes)
The allowable Amazon EC2 instance types.
allowedInstanceTypes - The allowable Amazon EC2 instance types.public void setCpuArchitectureType(String cpuArchitectureType)
The CPU architecture type.
cpuArchitectureType - The CPU architecture type.CpuArchitectureTypepublic String getCpuArchitectureType()
The CPU architecture type.
CpuArchitectureTypepublic ServiceManagedEc2InstanceCapabilities withCpuArchitectureType(String cpuArchitectureType)
The CPU architecture type.
cpuArchitectureType - The CPU architecture type.CpuArchitectureTypepublic ServiceManagedEc2InstanceCapabilities withCpuArchitectureType(CpuArchitectureType cpuArchitectureType)
The CPU architecture type.
cpuArchitectureType - The CPU architecture type.CpuArchitectureTypepublic List<FleetAmountCapability> getCustomAmounts()
The custom capability amounts to require for instances in this fleet.
public void setCustomAmounts(Collection<FleetAmountCapability> customAmounts)
The custom capability amounts to require for instances in this fleet.
customAmounts - The custom capability amounts to require for instances in this fleet.public ServiceManagedEc2InstanceCapabilities withCustomAmounts(FleetAmountCapability... customAmounts)
The custom capability amounts to require for instances in this fleet.
NOTE: This method appends the values to the existing list (if any). Use
setCustomAmounts(java.util.Collection) or withCustomAmounts(java.util.Collection) if you want
to override the existing values.
customAmounts - The custom capability amounts to require for instances in this fleet.public ServiceManagedEc2InstanceCapabilities withCustomAmounts(Collection<FleetAmountCapability> customAmounts)
The custom capability amounts to require for instances in this fleet.
customAmounts - The custom capability amounts to require for instances in this fleet.public List<FleetAttributeCapability> getCustomAttributes()
The custom capability attributes to require for instances in this fleet.
public void setCustomAttributes(Collection<FleetAttributeCapability> customAttributes)
The custom capability attributes to require for instances in this fleet.
customAttributes - The custom capability attributes to require for instances in this fleet.public ServiceManagedEc2InstanceCapabilities withCustomAttributes(FleetAttributeCapability... customAttributes)
The custom capability attributes to require for instances in this fleet.
NOTE: This method appends the values to the existing list (if any). Use
setCustomAttributes(java.util.Collection) or withCustomAttributes(java.util.Collection) if you
want to override the existing values.
customAttributes - The custom capability attributes to require for instances in this fleet.public ServiceManagedEc2InstanceCapabilities withCustomAttributes(Collection<FleetAttributeCapability> customAttributes)
The custom capability attributes to require for instances in this fleet.
customAttributes - The custom capability attributes to require for instances in this fleet.public List<String> getExcludedInstanceTypes()
The instance types to exclude from the fleet.
public void setExcludedInstanceTypes(Collection<String> excludedInstanceTypes)
The instance types to exclude from the fleet.
excludedInstanceTypes - The instance types to exclude from the fleet.public ServiceManagedEc2InstanceCapabilities withExcludedInstanceTypes(String... excludedInstanceTypes)
The instance types to exclude from the fleet.
NOTE: This method appends the values to the existing list (if any). Use
setExcludedInstanceTypes(java.util.Collection) or
withExcludedInstanceTypes(java.util.Collection) if you want to override the existing values.
excludedInstanceTypes - The instance types to exclude from the fleet.public ServiceManagedEc2InstanceCapabilities withExcludedInstanceTypes(Collection<String> excludedInstanceTypes)
The instance types to exclude from the fleet.
excludedInstanceTypes - The instance types to exclude from the fleet.public void setMemoryMiB(MemoryMiBRange memoryMiB)
The memory, as MiB, for the Amazon EC2 instance type.
memoryMiB - The memory, as MiB, for the Amazon EC2 instance type.public MemoryMiBRange getMemoryMiB()
The memory, as MiB, for the Amazon EC2 instance type.
public ServiceManagedEc2InstanceCapabilities withMemoryMiB(MemoryMiBRange memoryMiB)
The memory, as MiB, for the Amazon EC2 instance type.
memoryMiB - The memory, as MiB, for the Amazon EC2 instance type.public void setOsFamily(String osFamily)
The operating system (OS) family.
osFamily - The operating system (OS) family.ServiceManagedFleetOperatingSystemFamilypublic String getOsFamily()
The operating system (OS) family.
ServiceManagedFleetOperatingSystemFamilypublic ServiceManagedEc2InstanceCapabilities withOsFamily(String osFamily)
The operating system (OS) family.
osFamily - The operating system (OS) family.ServiceManagedFleetOperatingSystemFamilypublic ServiceManagedEc2InstanceCapabilities withOsFamily(ServiceManagedFleetOperatingSystemFamily osFamily)
The operating system (OS) family.
osFamily - The operating system (OS) family.ServiceManagedFleetOperatingSystemFamilypublic void setRootEbsVolume(Ec2EbsVolume rootEbsVolume)
The root EBS volume.
rootEbsVolume - The root EBS volume.public Ec2EbsVolume getRootEbsVolume()
The root EBS volume.
public ServiceManagedEc2InstanceCapabilities withRootEbsVolume(Ec2EbsVolume rootEbsVolume)
The root EBS volume.
rootEbsVolume - The root EBS volume.public void setVCpuCount(VCpuCountRange vCpuCount)
The amount of vCPU to require for instances in this fleet.
vCpuCount - The amount of vCPU to require for instances in this fleet.public VCpuCountRange getVCpuCount()
The amount of vCPU to require for instances in this fleet.
public ServiceManagedEc2InstanceCapabilities withVCpuCount(VCpuCountRange vCpuCount)
The amount of vCPU to require for instances in this fleet.
vCpuCount - The amount of vCPU to require for instances in this fleet.public String toString()
toString in class ObjectObject.toString()public ServiceManagedEc2InstanceCapabilities clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.