StructuredPojo
, ToCopyableBuilder<Bundle.Builder,Bundle>
@Generated("software.amazon.awssdk:codegen") public class Bundle extends Object implements StructuredPojo, ToCopyableBuilder<Bundle.Builder,Bundle>
Describes a bundle, which is a set of specs describing your virtual private server (or instance).
Modifier and Type | Class | Description |
---|---|---|
static interface |
Bundle.Builder |
Modifier and Type | Method | 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) |
|
int |
hashCode() |
|
String |
instanceType() |
The Amazon EC2 instance type (e.g.,
t2.micro ). |
Boolean |
isActive() |
A Boolean value indicating whether the bundle is active.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name() |
A friendly name for the bundle (e.g.,
Micro ). |
Integer |
power() |
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 ). |
static Class<? extends Bundle.Builder> |
serializableBuilderClass() |
|
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 ). |
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()
The power of the bundle (e.g., 500
).
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 Bundle.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Bundle.Builder,Bundle>
public static Bundle.Builder builder()
public static Class<? extends Bundle.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.