@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 T2 or T3 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 are standard
and
unlimited
.
cpuCredits
- The credit option for CPU usage of the instance. Valid values are standard
and
unlimited
.public String getCpuCredits()
The credit option for CPU usage of the instance. Valid values are standard
and
unlimited
.
standard
and
unlimited
.public InstanceCreditSpecification withCpuCredits(String cpuCredits)
The credit option for CPU usage of the instance. Valid values are standard
and
unlimited
.
cpuCredits
- The credit option for CPU usage of the instance. Valid values are standard
and
unlimited
.public String toString()
toString
in class Object
Object.toString()
public InstanceCreditSpecification clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.