Class ReservedInstancesConfiguration
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ReservedInstancesConfiguration
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ReservedInstancesConfiguration extends Object implements Serializable, Cloneable
Describes the configuration settings for the modified Reserved Instances.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReservedInstancesConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReservedInstancesConfiguration
clone()
boolean
equals(Object obj)
String
getAvailabilityZone()
The Availability Zone for the modified Reserved Instances.Integer
getInstanceCount()
The number of modified Reserved Instances.String
getInstanceType()
The instance type for the modified Reserved Instances.String
getPlatform()
The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.int
hashCode()
void
setAvailabilityZone(String availabilityZone)
The Availability Zone for the modified Reserved Instances.void
setInstanceCount(Integer instanceCount)
The number of modified Reserved Instances.void
setInstanceType(InstanceType instanceType)
The instance type for the modified Reserved Instances.void
setInstanceType(String instanceType)
The instance type for the modified Reserved Instances.void
setPlatform(String platform)
The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.String
toString()
Returns a string representation of this object; useful for testing and debugging.ReservedInstancesConfiguration
withAvailabilityZone(String availabilityZone)
The Availability Zone for the modified Reserved Instances.ReservedInstancesConfiguration
withInstanceCount(Integer instanceCount)
The number of modified Reserved Instances.ReservedInstancesConfiguration
withInstanceType(InstanceType instanceType)
The instance type for the modified Reserved Instances.ReservedInstancesConfiguration
withInstanceType(String instanceType)
The instance type for the modified Reserved Instances.ReservedInstancesConfiguration
withPlatform(String platform)
The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.
-
-
-
Method Detail
-
setAvailabilityZone
public void setAvailabilityZone(String availabilityZone)
The Availability Zone for the modified Reserved Instances.
- Parameters:
availabilityZone
- The Availability Zone for the modified Reserved Instances.
-
getAvailabilityZone
public String getAvailabilityZone()
The Availability Zone for the modified Reserved Instances.
- Returns:
- The Availability Zone for the modified Reserved Instances.
-
withAvailabilityZone
public ReservedInstancesConfiguration withAvailabilityZone(String availabilityZone)
The Availability Zone for the modified Reserved Instances.
- Parameters:
availabilityZone
- The Availability Zone for the modified Reserved Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPlatform
public void setPlatform(String platform)
The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.
- Parameters:
platform
- The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.
-
getPlatform
public String getPlatform()
The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.
- Returns:
- The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.
-
withPlatform
public ReservedInstancesConfiguration withPlatform(String platform)
The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.
- Parameters:
platform
- The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceCount
public void setInstanceCount(Integer instanceCount)
The number of modified Reserved Instances.
- Parameters:
instanceCount
- The number of modified Reserved Instances.
-
getInstanceCount
public Integer getInstanceCount()
The number of modified Reserved Instances.
- Returns:
- The number of modified Reserved Instances.
-
withInstanceCount
public ReservedInstancesConfiguration withInstanceCount(Integer instanceCount)
The number of modified Reserved Instances.
- Parameters:
instanceCount
- The number of modified Reserved Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceType
public void setInstanceType(String instanceType)
The instance type for the modified Reserved Instances.
- Parameters:
instanceType
- The instance type for the modified Reserved Instances.- See Also:
InstanceType
-
getInstanceType
public String getInstanceType()
The instance type for the modified Reserved Instances.
- Returns:
- The instance type for the modified Reserved Instances.
- See Also:
InstanceType
-
withInstanceType
public ReservedInstancesConfiguration withInstanceType(String instanceType)
The instance type for the modified Reserved Instances.
- Parameters:
instanceType
- The instance type for the modified Reserved Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceType
-
setInstanceType
public void setInstanceType(InstanceType instanceType)
The instance type for the modified Reserved Instances.
- Parameters:
instanceType
- The instance type for the modified Reserved Instances.- See Also:
InstanceType
-
withInstanceType
public ReservedInstancesConfiguration withInstanceType(InstanceType instanceType)
The instance type for the modified Reserved Instances.
- Parameters:
instanceType
- The instance type for the modified Reserved Instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceType
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ReservedInstancesConfiguration clone()
-
-