@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()
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 ). |
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)
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 |
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)
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 |
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)
The power of the bundle (e.g., 500
).
power
- The power of the bundle (e.g., 500
).public Integer getPower()
The power of the bundle (e.g., 500
).
500
).public Bundle withPower(Integer power)
The power of the bundle (e.g., 500
).
power
- The power of the bundle (e.g., 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 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.