com.amazonaws.services.ec2.model
Class ReservedInstancesConfiguration

java.lang.Object
  extended by com.amazonaws.services.ec2.model.ReservedInstancesConfiguration
All Implemented Interfaces:
java.io.Serializable

public class ReservedInstancesConfiguration
extends java.lang.Object
implements java.io.Serializable

Describes the configuration settings for the modified Reserved Instances.

See Also:
Serialized Form

Constructor Summary
ReservedInstancesConfiguration()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReservedInstancesConfiguration

public ReservedInstancesConfiguration()
Method Detail

getAvailabilityZone

public java.lang.String getAvailabilityZone()
The Availability Zone for the modified Reserved Instances.

Returns:
The Availability Zone for the modified Reserved Instances.

setAvailabilityZone

public void setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the modified Reserved Instances.

Parameters:
availabilityZone - The Availability Zone for the modified Reserved Instances.

withAvailabilityZone

public ReservedInstancesConfiguration withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone for the modified Reserved Instances.

Returns a reference to this object so that method calls can be chained together.

Parameters:
availabilityZone - The Availability Zone for the modified Reserved Instances.
Returns:
A reference to this updated object so that method calls can be chained together.

getPlatform

public java.lang.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.

setPlatform

public void setPlatform(java.lang.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.

withPlatform

public ReservedInstancesConfiguration withPlatform(java.lang.String platform)
The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.

Returns a reference to this object so that method calls can be chained together.

Parameters:
platform - The network platform of the modified Reserved Instances, which is either EC2-Classic or EC2-VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceCount

public java.lang.Integer getInstanceCount()
The number of modified Reserved Instances.

Returns:
The number of modified Reserved Instances.

setInstanceCount

public void setInstanceCount(java.lang.Integer instanceCount)
The number of modified Reserved Instances.

Parameters:
instanceCount - The number of modified Reserved Instances.

withInstanceCount

public ReservedInstancesConfiguration withInstanceCount(java.lang.Integer instanceCount)
The number of modified Reserved Instances.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceCount - The number of modified Reserved Instances.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceType

public java.lang.String getInstanceType()
The instance type for the modified Reserved Instances.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

Returns:
The instance type for the modified Reserved Instances.
See Also:
InstanceType

setInstanceType

public void setInstanceType(java.lang.String instanceType)
The instance type for the modified Reserved Instances.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

Parameters:
instanceType - The instance type for the modified Reserved Instances.
See Also:
InstanceType

withInstanceType

public ReservedInstancesConfiguration withInstanceType(java.lang.String instanceType)
The instance type for the modified Reserved Instances.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

Parameters:
instanceType - The instance type for the modified Reserved Instances.
Returns:
A reference to this updated 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.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, cg1.4xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge

Parameters:
instanceType - The instance type for the modified Reserved Instances.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceType

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.