@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceCreditSpecification extends Object implements Serializable, Cloneable
Describes the credit option for CPU usage of a burstable performance instance.
Constructor and Description |
---|
InstanceCreditSpecification() |
Modifier and Type | Method and Description |
---|---|
InstanceCreditSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getCpuCredits()
The credit option for CPU usage of the instance.
|
String |
getInstanceId()
The ID of the instance.
|
int |
hashCode() |
void |
setCpuCredits(String cpuCredits)
The credit option for CPU usage of the instance.
|
void |
setInstanceId(String instanceId)
The ID of the instance.
|
String |
toString()
Returns a string representation of this object.
|
InstanceCreditSpecification |
withCpuCredits(String cpuCredits)
The credit option for CPU usage of the instance.
|
InstanceCreditSpecification |
withInstanceId(String instanceId)
The ID of the instance.
|
public void setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public InstanceCreditSpecification withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setCpuCredits(String cpuCredits)
The credit option for CPU usage of the instance.
Valid values: standard
| unlimited
cpuCredits
- The credit option for CPU usage of the instance.
Valid values: standard
| unlimited
public String getCpuCredits()
The credit option for CPU usage of the instance.
Valid values: standard
| unlimited
Valid values: standard
| unlimited
public InstanceCreditSpecification withCpuCredits(String cpuCredits)
The credit option for CPU usage of the instance.
Valid values: standard
| unlimited
cpuCredits
- The credit option for CPU usage of the instance.
Valid values: standard
| unlimited
public String toString()
toString
in class Object
Object.toString()
public InstanceCreditSpecification clone()