@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Bundle extends Object implements Serializable, Cloneable, StructuredPojo
Describes a bundle, which is a set of specs describing your virtual private server (or instance).
Constructor and Description |
---|
Bundle() |
Modifier and Type | Method and Description |
---|---|
Bundle |
clone() |
boolean |
equals(Object obj) |
String |
getBundleId()
The bundle ID (e.g.,
micro_1_0 ). |
Integer |
getCpuCount()
The number of vCPUs included in the bundle (e.g.,
2 ). |
Integer |
getDiskSizeInGb()
The size of the SSD (e.g.,
30 ). |
String |
getInstanceType()
The Amazon EC2 instance type (e.g.,
t2.micro ). |
Boolean |
getIsActive()
A Boolean value indicating whether the bundle is active.
|
String |
getName()
A friendly name for the bundle (e.g.,
Micro ). |
Integer |
getPower()
A numeric value that represents the power of the bundle (e.g.,
500 ). |
Float |
getPrice()
The price in US dollars (e.g.,
5.0 ). |
Float |
getRamSizeInGb()
The amount of RAM in GB (e.g.,
2.0 ). |
List<String> |
getSupportedPlatforms()
The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports.
|
Integer |
getTransferPerMonthInGb()
The data transfer rate per month in GB (e.g.,
2000 ). |
int |
hashCode() |
Boolean |
isActive()
A Boolean value indicating whether the bundle is active.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBundleId(String bundleId)
The bundle ID (e.g.,
micro_1_0 ). |
void |
setCpuCount(Integer cpuCount)
The number of vCPUs included in the bundle (e.g.,
2 ). |
void |
setDiskSizeInGb(Integer diskSizeInGb)
The size of the SSD (e.g.,
30 ). |
void |
setInstanceType(String instanceType)
The Amazon EC2 instance type (e.g.,
t2.micro ). |
void |
setIsActive(Boolean isActive)
A Boolean value indicating whether the bundle is active.
|
void |
setName(String name)
A friendly name for the bundle (e.g.,
Micro ). |
void |
setPower(Integer power)
A numeric value that represents the power of the bundle (e.g.,
500 ). |
void |
setPrice(Float price)
The price in US dollars (e.g.,
5.0 ). |
void |
setRamSizeInGb(Float ramSizeInGb)
The amount of RAM in GB (e.g.,
2.0 ). |
void |
setSupportedPlatforms(Collection<String> supportedPlatforms)
The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports.
|
void |
setTransferPerMonthInGb(Integer transferPerMonthInGb)
The data transfer rate per month in GB (e.g.,
2000 ). |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Bundle |
withBundleId(String bundleId)
The bundle ID (e.g.,
micro_1_0 ). |
Bundle |
withCpuCount(Integer cpuCount)
The number of vCPUs included in the bundle (e.g.,
2 ). |
Bundle |
withDiskSizeInGb(Integer diskSizeInGb)
The size of the SSD (e.g.,
30 ). |
Bundle |
withInstanceType(String instanceType)
The Amazon EC2 instance type (e.g.,
t2.micro ). |
Bundle |
withIsActive(Boolean isActive)
A Boolean value indicating whether the bundle is active.
|
Bundle |
withName(String name)
A friendly name for the bundle (e.g.,
Micro ). |
Bundle |
withPower(Integer power)
A numeric value that represents the power of the bundle (e.g.,
500 ). |
Bundle |
withPrice(Float price)
The price in US dollars (e.g.,
5.0 ). |
Bundle |
withRamSizeInGb(Float ramSizeInGb)
The amount of RAM in GB (e.g.,
2.0 ). |
Bundle |
withSupportedPlatforms(Collection<String> supportedPlatforms)
The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports.
|
Bundle |
withSupportedPlatforms(InstancePlatform... supportedPlatforms)
The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports.
|
Bundle |
withSupportedPlatforms(String... supportedPlatforms)
The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports.
|
Bundle |
withTransferPerMonthInGb(Integer transferPerMonthInGb)
The data transfer rate per month in GB (e.g.,
2000 ). |
public void setPrice(Float price)
The price in US dollars (e.g., 5.0
).
price
- The price in US dollars (e.g., 5.0
).public Float getPrice()
The price in US dollars (e.g., 5.0
).
5.0
).public Bundle withPrice(Float price)
The price in US dollars (e.g., 5.0
).
price
- The price in US dollars (e.g., 5.0
).public void setCpuCount(Integer cpuCount)
The number of vCPUs included in the bundle (e.g., 2
).
cpuCount
- The number of vCPUs included in the bundle (e.g., 2
).public Integer getCpuCount()
The number of vCPUs included in the bundle (e.g., 2
).
2
).public Bundle withCpuCount(Integer cpuCount)
The number of vCPUs included in the bundle (e.g., 2
).
cpuCount
- The number of vCPUs included in the bundle (e.g., 2
).public void setDiskSizeInGb(Integer diskSizeInGb)
The size of the SSD (e.g., 30
).
diskSizeInGb
- The size of the SSD (e.g., 30
).public Integer getDiskSizeInGb()
The size of the SSD (e.g., 30
).
30
).public Bundle withDiskSizeInGb(Integer diskSizeInGb)
The size of the SSD (e.g., 30
).
diskSizeInGb
- The size of the SSD (e.g., 30
).public void setBundleId(String bundleId)
The bundle ID (e.g., micro_1_0
).
bundleId
- The bundle ID (e.g., micro_1_0
).public String getBundleId()
The bundle ID (e.g., micro_1_0
).
micro_1_0
).public Bundle withBundleId(String bundleId)
The bundle ID (e.g., micro_1_0
).
bundleId
- The bundle ID (e.g., micro_1_0
).public void setInstanceType(String instanceType)
The Amazon EC2 instance type (e.g., t2.micro
).
instanceType
- The Amazon EC2 instance type (e.g., t2.micro
).public String getInstanceType()
The Amazon EC2 instance type (e.g., t2.micro
).
t2.micro
).public Bundle withInstanceType(String instanceType)
The Amazon EC2 instance type (e.g., t2.micro
).
instanceType
- The Amazon EC2 instance type (e.g., t2.micro
).public void setIsActive(Boolean isActive)
A Boolean value indicating whether the bundle is active.
isActive
- A Boolean value indicating whether the bundle is active.public Boolean getIsActive()
A Boolean value indicating whether the bundle is active.
public Bundle withIsActive(Boolean isActive)
A Boolean value indicating whether the bundle is active.
isActive
- A Boolean value indicating whether the bundle is active.public Boolean isActive()
A Boolean value indicating whether the bundle is active.
public void setName(String name)
A friendly name for the bundle (e.g., Micro
).
name
- A friendly name for the bundle (e.g., Micro
).public String getName()
A friendly name for the bundle (e.g., Micro
).
Micro
).public Bundle withName(String name)
A friendly name for the bundle (e.g., Micro
).
name
- A friendly name for the bundle (e.g., Micro
).public void setPower(Integer power)
A numeric value that represents the power of the bundle (e.g., 500
). You can use the bundle's power
value in conjunction with a blueprint's minimum power value to determine whether the blueprint will run on the
bundle. For example, you need a bundle with a power value of 500 or more to create an instance that uses a
blueprint with a minimum power value of 500.
power
- A numeric value that represents the power of the bundle (e.g., 500
). You can use the bundle's
power value in conjunction with a blueprint's minimum power value to determine whether the blueprint will
run on the bundle. For example, you need a bundle with a power value of 500 or more to create an instance
that uses a blueprint with a minimum power value of 500.public Integer getPower()
A numeric value that represents the power of the bundle (e.g., 500
). You can use the bundle's power
value in conjunction with a blueprint's minimum power value to determine whether the blueprint will run on the
bundle. For example, you need a bundle with a power value of 500 or more to create an instance that uses a
blueprint with a minimum power value of 500.
500
). You can use the
bundle's power value in conjunction with a blueprint's minimum power value to determine whether the
blueprint will run on the bundle. For example, you need a bundle with a power value of 500 or more to
create an instance that uses a blueprint with a minimum power value of 500.public Bundle withPower(Integer power)
A numeric value that represents the power of the bundle (e.g., 500
). You can use the bundle's power
value in conjunction with a blueprint's minimum power value to determine whether the blueprint will run on the
bundle. For example, you need a bundle with a power value of 500 or more to create an instance that uses a
blueprint with a minimum power value of 500.
power
- A numeric value that represents the power of the bundle (e.g., 500
). You can use the bundle's
power value in conjunction with a blueprint's minimum power value to determine whether the blueprint will
run on the bundle. For example, you need a bundle with a power value of 500 or more to create an instance
that uses a blueprint with a minimum power value of 500.public void setRamSizeInGb(Float ramSizeInGb)
The amount of RAM in GB (e.g., 2.0
).
ramSizeInGb
- The amount of RAM in GB (e.g., 2.0
).public Float getRamSizeInGb()
The amount of RAM in GB (e.g., 2.0
).
2.0
).public Bundle withRamSizeInGb(Float ramSizeInGb)
The amount of RAM in GB (e.g., 2.0
).
ramSizeInGb
- The amount of RAM in GB (e.g., 2.0
).public void setTransferPerMonthInGb(Integer transferPerMonthInGb)
The data transfer rate per month in GB (e.g., 2000
).
transferPerMonthInGb
- The data transfer rate per month in GB (e.g., 2000
).public Integer getTransferPerMonthInGb()
The data transfer rate per month in GB (e.g., 2000
).
2000
).public Bundle withTransferPerMonthInGb(Integer transferPerMonthInGb)
The data transfer rate per month in GB (e.g., 2000
).
transferPerMonthInGb
- The data transfer rate per month in GB (e.g., 2000
).public List<String> getSupportedPlatforms()
The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only
launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
WINDOWS
bundle on a blueprint that supports the WINDOWS
platform. LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.InstancePlatform
public void setSupportedPlatforms(Collection<String> supportedPlatforms)
The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only
launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
supportedPlatforms
- The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can
only launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.InstancePlatform
public Bundle withSupportedPlatforms(String... supportedPlatforms)
The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only
launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
NOTE: This method appends the values to the existing list (if any). Use
setSupportedPlatforms(java.util.Collection)
or withSupportedPlatforms(java.util.Collection)
if
you want to override the existing values.
supportedPlatforms
- The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can
only launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.InstancePlatform
public Bundle withSupportedPlatforms(Collection<String> supportedPlatforms)
The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only
launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
supportedPlatforms
- The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can
only launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.InstancePlatform
public Bundle withSupportedPlatforms(InstancePlatform... supportedPlatforms)
The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only
launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.
supportedPlatforms
- The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can
only launch a WINDOWS
bundle on a blueprint that supports the WINDOWS
platform.
LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.InstancePlatform
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.