public class ReservedInstancesConfiguration
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the configuration settings for the modified Reserved Instances.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
availabilityZone
The Availability Zone for the modified Reserved Instances.
|
private java.lang.Integer |
instanceCount
The number of modified Reserved Instances.
|
private java.lang.String |
instanceType
The instance type for the modified Reserved Instances.
|
private java.lang.String |
platform
The network platform of the modified Reserved Instances, which is either
EC2-Classic or EC2-VPC.
|
Constructor and Description |
---|
ReservedInstancesConfiguration() |
Modifier and Type | Method and Description |
---|---|
ReservedInstancesConfiguration |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAvailabilityZone()
The Availability Zone for the modified Reserved Instances.
|
java.lang.Integer |
getInstanceCount()
The number of modified Reserved Instances.
|
java.lang.String |
getInstanceType()
The instance type for the modified Reserved Instances.
|
java.lang.String |
getPlatform()
The network platform of the modified Reserved Instances, which is either
EC2-Classic or EC2-VPC.
|
int |
hashCode() |
void |
setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the modified Reserved Instances.
|
void |
setInstanceCount(java.lang.Integer instanceCount)
The number of modified Reserved Instances.
|
void |
setInstanceType(InstanceType instanceType)
The instance type for the modified Reserved Instances.
|
void |
setInstanceType(java.lang.String instanceType)
The instance type for the modified Reserved Instances.
|
void |
setPlatform(java.lang.String platform)
The network platform of the modified Reserved Instances, which is either
EC2-Classic or EC2-VPC.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReservedInstancesConfiguration |
withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the modified Reserved Instances.
|
ReservedInstancesConfiguration |
withInstanceCount(java.lang.Integer instanceCount)
The number of modified Reserved Instances.
|
ReservedInstancesConfiguration |
withInstanceType(InstanceType instanceType)
The instance type for the modified Reserved Instances.
|
ReservedInstancesConfiguration |
withInstanceType(java.lang.String instanceType)
The instance type for the modified Reserved Instances.
|
ReservedInstancesConfiguration |
withPlatform(java.lang.String platform)
The network platform of the modified Reserved Instances, which is either
EC2-Classic or EC2-VPC.
|
private java.lang.String availabilityZone
The Availability Zone for the modified Reserved Instances.
private java.lang.String platform
The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.
private java.lang.Integer instanceCount
The number of modified Reserved Instances.
private java.lang.String instanceType
The instance type for the modified Reserved Instances.
public void setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the modified Reserved Instances.
availabilityZone
- The Availability Zone for the modified Reserved Instances.public java.lang.String getAvailabilityZone()
The Availability Zone for the modified Reserved Instances.
public ReservedInstancesConfiguration withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the modified Reserved Instances.
availabilityZone
- The Availability Zone for the modified Reserved Instances.public void setPlatform(java.lang.String platform)
The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.
platform
- The network platform of the modified Reserved Instances, which is
either EC2-Classic or EC2-VPC.public java.lang.String getPlatform()
The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.
public ReservedInstancesConfiguration withPlatform(java.lang.String platform)
The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.
platform
- The network platform of the modified Reserved Instances, which is
either EC2-Classic or EC2-VPC.public void setInstanceCount(java.lang.Integer instanceCount)
The number of modified Reserved Instances.
instanceCount
- The number of modified Reserved Instances.public java.lang.Integer getInstanceCount()
The number of modified Reserved Instances.
public ReservedInstancesConfiguration withInstanceCount(java.lang.Integer instanceCount)
The number of modified Reserved Instances.
instanceCount
- The number of modified Reserved Instances.public void setInstanceType(java.lang.String instanceType)
The instance type for the modified Reserved Instances.
instanceType
- The instance type for the modified Reserved Instances.InstanceType
public java.lang.String getInstanceType()
The instance type for the modified Reserved Instances.
InstanceType
public ReservedInstancesConfiguration withInstanceType(java.lang.String instanceType)
The instance type for the modified Reserved Instances.
instanceType
- The instance type for the modified Reserved Instances.InstanceType
public void setInstanceType(InstanceType instanceType)
The instance type for the modified Reserved Instances.
instanceType
- The instance type for the modified Reserved Instances.InstanceType
public ReservedInstancesConfiguration withInstanceType(InstanceType instanceType)
The instance type for the modified Reserved Instances.
instanceType
- The instance type for the modified Reserved Instances.InstanceType
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ReservedInstancesConfiguration clone()
clone
in class java.lang.Object