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:
  • Constructor Details

    • ReservedInstancesConfiguration

      public ReservedInstancesConfiguration()
  • Method Details

    • 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:
    • getInstanceType

      public String getInstanceType()

      The instance type for the modified Reserved Instances.

      Returns:
      The instance type for the modified Reserved Instances.
      See Also:
    • 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:
    • 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:
    • 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:
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      Overrides:
      clone in class Object