Class PurchaseReservedInstancesOfferingRequest

    • Constructor Detail

      • PurchaseReservedInstancesOfferingRequest

        public PurchaseReservedInstancesOfferingRequest()
        Default constructor for PurchaseReservedInstancesOfferingRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
      • PurchaseReservedInstancesOfferingRequest

        public PurchaseReservedInstancesOfferingRequest​(String reservedInstancesOfferingId,
                                                        Integer instanceCount)
        Constructs a new PurchaseReservedInstancesOfferingRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
        Parameters:
        reservedInstancesOfferingId - The ID of the Reserved Instance offering to purchase.
        instanceCount - The number of Reserved Instances to purchase.
    • Method Detail

      • setReservedInstancesOfferingId

        public void setReservedInstancesOfferingId​(String reservedInstancesOfferingId)

        The ID of the Reserved Instance offering to purchase.

        Parameters:
        reservedInstancesOfferingId - The ID of the Reserved Instance offering to purchase.
      • getReservedInstancesOfferingId

        public String getReservedInstancesOfferingId()

        The ID of the Reserved Instance offering to purchase.

        Returns:
        The ID of the Reserved Instance offering to purchase.
      • withReservedInstancesOfferingId

        public PurchaseReservedInstancesOfferingRequest withReservedInstancesOfferingId​(String reservedInstancesOfferingId)

        The ID of the Reserved Instance offering to purchase.

        Parameters:
        reservedInstancesOfferingId - The ID of the Reserved Instance offering to purchase.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setInstanceCount

        public void setInstanceCount​(Integer instanceCount)

        The number of Reserved Instances to purchase.

        Parameters:
        instanceCount - The number of Reserved Instances to purchase.
      • getInstanceCount

        public Integer getInstanceCount()

        The number of Reserved Instances to purchase.

        Returns:
        The number of Reserved Instances to purchase.
      • withInstanceCount

        public PurchaseReservedInstancesOfferingRequest withInstanceCount​(Integer instanceCount)

        The number of Reserved Instances to purchase.

        Parameters:
        instanceCount - The number of Reserved Instances to purchase.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setLimitPrice

        public void setLimitPrice​(ReservedInstanceLimitPrice limitPrice)

        Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.

        Parameters:
        limitPrice - Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
      • getLimitPrice

        public ReservedInstanceLimitPrice getLimitPrice()

        Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.

        Returns:
        Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
      • withLimitPrice

        public PurchaseReservedInstancesOfferingRequest withLimitPrice​(ReservedInstanceLimitPrice limitPrice)

        Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.

        Parameters:
        limitPrice - Specified for Reserved Instance Marketplace offerings to limit the total order and ensure that the Reserved Instances are not purchased at unexpected prices.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object