@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContainerServicePower extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
ContainerServicePower() |
Modifier and Type | Method and Description |
---|---|
ContainerServicePower |
clone() |
boolean |
equals(Object obj) |
Float |
getCpuCount()
The number of vCPUs included in the power.
|
Boolean |
getIsActive()
A Boolean value indicating whether the power is active and can be specified for container services.
|
String |
getName()
The friendly name of the power (
nano ). |
String |
getPowerId()
The ID of the power (
nano-1 ). |
Float |
getPrice()
The monthly price of the power in USD.
|
Float |
getRamSizeInGb()
The amount of RAM (in GB) of the power.
|
int |
hashCode() |
Boolean |
isActive()
A Boolean value indicating whether the power is active and can be specified for container services.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCpuCount(Float cpuCount)
The number of vCPUs included in the power.
|
void |
setIsActive(Boolean isActive)
A Boolean value indicating whether the power is active and can be specified for container services.
|
void |
setName(String name)
The friendly name of the power (
nano ). |
void |
setPowerId(String powerId)
The ID of the power (
nano-1 ). |
void |
setPrice(Float price)
The monthly price of the power in USD.
|
void |
setRamSizeInGb(Float ramSizeInGb)
The amount of RAM (in GB) of the power.
|
String |
toString()
Returns a string representation of this object.
|
ContainerServicePower |
withCpuCount(Float cpuCount)
The number of vCPUs included in the power.
|
ContainerServicePower |
withIsActive(Boolean isActive)
A Boolean value indicating whether the power is active and can be specified for container services.
|
ContainerServicePower |
withName(String name)
The friendly name of the power (
nano ). |
ContainerServicePower |
withPowerId(String powerId)
The ID of the power (
nano-1 ). |
ContainerServicePower |
withPrice(Float price)
The monthly price of the power in USD.
|
ContainerServicePower |
withRamSizeInGb(Float ramSizeInGb)
The amount of RAM (in GB) of the power.
|
public void setPowerId(String powerId)
The ID of the power (nano-1
).
powerId
- The ID of the power (nano-1
).public String getPowerId()
The ID of the power (nano-1
).
nano-1
).public ContainerServicePower withPowerId(String powerId)
The ID of the power (nano-1
).
powerId
- The ID of the power (nano-1
).public void setPrice(Float price)
The monthly price of the power in USD.
price
- The monthly price of the power in USD.public Float getPrice()
The monthly price of the power in USD.
public ContainerServicePower withPrice(Float price)
The monthly price of the power in USD.
price
- The monthly price of the power in USD.public void setCpuCount(Float cpuCount)
The number of vCPUs included in the power.
cpuCount
- The number of vCPUs included in the power.public Float getCpuCount()
The number of vCPUs included in the power.
public ContainerServicePower withCpuCount(Float cpuCount)
The number of vCPUs included in the power.
cpuCount
- The number of vCPUs included in the power.public void setRamSizeInGb(Float ramSizeInGb)
The amount of RAM (in GB) of the power.
ramSizeInGb
- The amount of RAM (in GB) of the power.public Float getRamSizeInGb()
The amount of RAM (in GB) of the power.
public ContainerServicePower withRamSizeInGb(Float ramSizeInGb)
The amount of RAM (in GB) of the power.
ramSizeInGb
- The amount of RAM (in GB) of the power.public void setName(String name)
The friendly name of the power (nano
).
name
- The friendly name of the power (nano
).public String getName()
The friendly name of the power (nano
).
nano
).public ContainerServicePower withName(String name)
The friendly name of the power (nano
).
name
- The friendly name of the power (nano
).public void setIsActive(Boolean isActive)
A Boolean value indicating whether the power is active and can be specified for container services.
isActive
- A Boolean value indicating whether the power is active and can be specified for container services.public Boolean getIsActive()
A Boolean value indicating whether the power is active and can be specified for container services.
public ContainerServicePower withIsActive(Boolean isActive)
A Boolean value indicating whether the power is active and can be specified for container services.
isActive
- A Boolean value indicating whether the power is active and can be specified for container services.public Boolean isActive()
A Boolean value indicating whether the power is active and can be specified for container services.
public String toString()
toString
in class Object
Object.toString()
public ContainerServicePower clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.