@Generated(value="software.amazon.awssdk:codegen") public final class ContainerServicePower extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ContainerServicePower.Builder,ContainerServicePower>
Describes the powers that can be specified for an Amazon Lightsail container service.
The power specifies the amount of RAM, the number of vCPUs, and the base price of the container service.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ContainerServicePower.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ContainerServicePower.Builder |
builder() |
Float |
cpuCount()
The number of vCPUs included in the power.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
isActive()
A Boolean value indicating whether the power is active and can be specified for container services.
|
String |
name()
The friendly name of the power (e.g.,
nano). |
String |
powerId()
The ID of the power (e.g.,
nano-1). |
Float |
price()
The monthly price of the power in USD.
|
Float |
ramSizeInGb()
The amount of RAM (in GB) of the power.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ContainerServicePower.Builder> |
serializableBuilderClass() |
ContainerServicePower.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String powerId()
The ID of the power (e.g., nano-1).
nano-1).public final Float price()
The monthly price of the power in USD.
public final Float cpuCount()
The number of vCPUs included in the power.
public final Float ramSizeInGb()
The amount of RAM (in GB) of the power.
public final String name()
The friendly name of the power (e.g., nano).
nano).public final Boolean isActive()
A Boolean value indicating whether the power is active and can be specified for container services.
public ContainerServicePower.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ContainerServicePower.Builder,ContainerServicePower>public static ContainerServicePower.Builder builder()
public static Class<? extends ContainerServicePower.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.