@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 (
micro_x_x ). |
Integer |
getCpuCount()
The number of vCPUs included in the bundle (
2 ). |
Integer |
getDiskSizeInGb()
The size of the SSD (
30 ). |
String |
getInstanceType()
The instance type (
micro ). |
Boolean |
getIsActive()
A Boolean value indicating whether the bundle is active.
|
String |
getName()
A friendly name for the bundle (
Micro ). |
Integer |
getPower()
A numeric value that represents the power of the bundle (
500 ). |
Float |
getPrice()
The price in US dollars (
5.0 ) of the bundle. |
Integer |
getPublicIpv4AddressCount()
An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or 1.
|
Float |
getRamSizeInGb()
The amount of RAM in GB (
2.0 ). |
List<String> |
getSupportedAppCategories()
Virtual computer blueprints that are supported by a Lightsail for Research bundle.
|
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 (
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 (
micro_x_x ). |
void |
setCpuCount(Integer cpuCount)
The number of vCPUs included in the bundle (
2 ). |
void |
setDiskSizeInGb(Integer diskSizeInGb)
The size of the SSD (
30 ). |
void |
setInstanceType(String instanceType)
The instance type (
micro ). |
void |
setIsActive(Boolean isActive)
A Boolean value indicating whether the bundle is active.
|
void |
setName(String name)
A friendly name for the bundle (
Micro ). |
void |
setPower(Integer power)
A numeric value that represents the power of the bundle (
500 ). |
void |
setPrice(Float price)
The price in US dollars (
5.0 ) of the bundle. |
void |
setPublicIpv4AddressCount(Integer publicIpv4AddressCount)
An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or 1.
|
void |
setRamSizeInGb(Float ramSizeInGb)
The amount of RAM in GB (
2.0 ). |
void |
setSupportedAppCategories(Collection<String> supportedAppCategories)
Virtual computer blueprints that are supported by a Lightsail for Research bundle.
|
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 (
2000 ). |
String |
toString()
Returns a string representation of this object.
|
Bundle |
withBundleId(String bundleId)
The bundle ID (
micro_x_x ). |
Bundle |
withCpuCount(Integer cpuCount)
The number of vCPUs included in the bundle (
2 ). |
Bundle |
withDiskSizeInGb(Integer diskSizeInGb)
The size of the SSD (
30 ). |
Bundle |
withInstanceType(String instanceType)
The instance type (
micro ). |
Bundle |
withIsActive(Boolean isActive)
A Boolean value indicating whether the bundle is active.
|
Bundle |
withName(String name)
A friendly name for the bundle (
Micro ). |
Bundle |
withPower(Integer power)
A numeric value that represents the power of the bundle (
500 ). |
Bundle |
withPrice(Float price)
The price in US dollars (
5.0 ) of the bundle. |
Bundle |
withPublicIpv4AddressCount(Integer publicIpv4AddressCount)
An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or 1.
|
Bundle |
withRamSizeInGb(Float ramSizeInGb)
The amount of RAM in GB (
2.0 ). |
Bundle |
withSupportedAppCategories(AppCategory... supportedAppCategories)
Virtual computer blueprints that are supported by a Lightsail for Research bundle.
|
Bundle |
withSupportedAppCategories(Collection<String> supportedAppCategories)
Virtual computer blueprints that are supported by a Lightsail for Research bundle.
|
Bundle |
withSupportedAppCategories(String... supportedAppCategories)
Virtual computer blueprints that are supported by a Lightsail for Research bundle.
|
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 (
2000 ). |
public void setPrice(Float price)
The price in US dollars (5.0
) of the bundle.
price
- The price in US dollars (5.0
) of the bundle.public Float getPrice()
The price in US dollars (5.0
) of the bundle.
5.0
) of the bundle.public Bundle withPrice(Float price)
The price in US dollars (5.0
) of the bundle.
price
- The price in US dollars (5.0
) of the bundle.public void setCpuCount(Integer cpuCount)
The number of vCPUs included in the bundle (2
).
cpuCount
- The number of vCPUs included in the bundle (2
).public Integer getCpuCount()
The number of vCPUs included in the bundle (2
).
2
).public Bundle withCpuCount(Integer cpuCount)
The number of vCPUs included in the bundle (2
).
cpuCount
- The number of vCPUs included in the bundle (2
).public void setDiskSizeInGb(Integer diskSizeInGb)
The size of the SSD (30
).
diskSizeInGb
- The size of the SSD (30
).public Integer getDiskSizeInGb()
The size of the SSD (30
).
30
).public Bundle withDiskSizeInGb(Integer diskSizeInGb)
The size of the SSD (30
).
diskSizeInGb
- The size of the SSD (30
).public void setBundleId(String bundleId)
The bundle ID (micro_x_x
).
bundleId
- The bundle ID (micro_x_x
).public String getBundleId()
The bundle ID (micro_x_x
).
micro_x_x
).public Bundle withBundleId(String bundleId)
The bundle ID (micro_x_x
).
bundleId
- The bundle ID (micro_x_x
).public void setInstanceType(String instanceType)
The instance type (micro
).
instanceType
- The instance type (micro
).public String getInstanceType()
The instance type (micro
).
micro
).public Bundle withInstanceType(String instanceType)
The instance type (micro
).
instanceType
- The instance type (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 (Micro
).
name
- A friendly name for the bundle (Micro
).public String getName()
A friendly name for the bundle (Micro
).
Micro
).public Bundle withName(String name)
A friendly name for the bundle (Micro
).
name
- A friendly name for the bundle (Micro
).public void setPower(Integer power)
A numeric value that represents the power of the bundle (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 (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 (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 (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 (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 (2.0
).
ramSizeInGb
- The amount of RAM in GB (2.0
).public Float getRamSizeInGb()
The amount of RAM in GB (2.0
).
2.0
).public Bundle withRamSizeInGb(Float ramSizeInGb)
The amount of RAM in GB (2.0
).
ramSizeInGb
- The amount of RAM in GB (2.0
).public void setTransferPerMonthInGb(Integer transferPerMonthInGb)
The data transfer rate per month in GB (2000
).
transferPerMonthInGb
- The data transfer rate per month in GB (2000
).public Integer getTransferPerMonthInGb()
The data transfer rate per month in GB (2000
).
2000
).public Bundle withTransferPerMonthInGb(Integer transferPerMonthInGb)
The data transfer rate per month in GB (2000
).
transferPerMonthInGb
- The data transfer rate per month in GB (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 List<String> getSupportedAppCategories()
Virtual computer blueprints that are supported by a Lightsail for Research bundle.
This parameter only applies to Lightsail for Research resources.
This parameter only applies to Lightsail for Research resources.
AppCategory
public void setSupportedAppCategories(Collection<String> supportedAppCategories)
Virtual computer blueprints that are supported by a Lightsail for Research bundle.
This parameter only applies to Lightsail for Research resources.
supportedAppCategories
- Virtual computer blueprints that are supported by a Lightsail for Research bundle. This parameter only applies to Lightsail for Research resources.
AppCategory
public Bundle withSupportedAppCategories(String... supportedAppCategories)
Virtual computer blueprints that are supported by a Lightsail for Research bundle.
This parameter only applies to Lightsail for Research resources.
NOTE: This method appends the values to the existing list (if any). Use
setSupportedAppCategories(java.util.Collection)
or
withSupportedAppCategories(java.util.Collection)
if you want to override the existing values.
supportedAppCategories
- Virtual computer blueprints that are supported by a Lightsail for Research bundle. This parameter only applies to Lightsail for Research resources.
AppCategory
public Bundle withSupportedAppCategories(Collection<String> supportedAppCategories)
Virtual computer blueprints that are supported by a Lightsail for Research bundle.
This parameter only applies to Lightsail for Research resources.
supportedAppCategories
- Virtual computer blueprints that are supported by a Lightsail for Research bundle. This parameter only applies to Lightsail for Research resources.
AppCategory
public Bundle withSupportedAppCategories(AppCategory... supportedAppCategories)
Virtual computer blueprints that are supported by a Lightsail for Research bundle.
This parameter only applies to Lightsail for Research resources.
supportedAppCategories
- Virtual computer blueprints that are supported by a Lightsail for Research bundle. This parameter only applies to Lightsail for Research resources.
AppCategory
public void setPublicIpv4AddressCount(Integer publicIpv4AddressCount)
An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or 1.
publicIpv4AddressCount
- An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or
1.public Integer getPublicIpv4AddressCount()
An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or 1.
public Bundle withPublicIpv4AddressCount(Integer publicIpv4AddressCount)
An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or 1.
publicIpv4AddressCount
- An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or
1.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.