@Generated(value="software.amazon.awssdk:codegen") public final class Bundle extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Bundle.Builder,Bundle>
Describes a bundle, which is a set of specs describing your virtual private server (or instance).
Modifier and Type | Class and Description |
---|---|
static interface |
Bundle.Builder |
Modifier and Type | Method and Description |
---|---|
static Bundle.Builder |
builder() |
String |
bundleId()
The bundle ID (e.g.,
micro_1_0 ). |
Integer |
cpuCount()
The number of vCPUs included in the bundle (e.g.,
2 ). |
Integer |
diskSizeInGb()
The size of the SSD (e.g.,
30 ). |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
instanceType()
The Amazon EC2 instance type (e.g.,
t2.micro ). |
Boolean |
isActive()
A Boolean value indicating whether the bundle is active.
|
String |
name()
A friendly name for the bundle (e.g.,
Micro ). |
Integer |
power()
A numeric value that represents the power of the bundle (e.g.,
500 ). |
Float |
price()
The price in US dollars (e.g.,
5.0 ). |
Float |
ramSizeInGb()
The amount of RAM in GB (e.g.,
2.0 ). |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Bundle.Builder> |
serializableBuilderClass() |
List<InstancePlatform> |
supportedPlatforms()
The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports.
|
List<String> |
supportedPlatformsAsStrings()
The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports.
|
Bundle.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Integer |
transferPerMonthInGb()
The data transfer rate per month in GB (e.g.,
2000 ). |
copy
public Float price()
The price in US dollars (e.g., 5.0
).
5.0
).public Integer cpuCount()
The number of vCPUs included in the bundle (e.g., 2
).
2
).public Integer diskSizeInGb()
The size of the SSD (e.g., 30
).
30
).public String bundleId()
The bundle ID (e.g., micro_1_0
).
micro_1_0
).public String instanceType()
The Amazon EC2 instance type (e.g., t2.micro
).
t2.micro
).public Boolean isActive()
A Boolean value indicating whether the bundle is active.
public String name()
A friendly name for the bundle (e.g., Micro
).
Micro
).public 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.
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 Float ramSizeInGb()
The amount of RAM in GB (e.g., 2.0
).
2.0
).public Integer transferPerMonthInGb()
The data transfer rate per month in GB (e.g., 2000
).
2000
).public List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
WINDOWS
bundle on a blueprint that supports the WINDOWS
platform. LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.public List<String> supportedPlatformsAsStrings()
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
WINDOWS
bundle on a blueprint that supports the WINDOWS
platform. LINUX_UNIX
blueprints require a LINUX_UNIX
bundle.public Bundle.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Bundle.Builder,Bundle>
public static Bundle.Builder builder()
public static Class<? extends Bundle.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.