Class CreateReservedInstancesListingRequest

    • Constructor Detail

      • CreateReservedInstancesListingRequest

        public CreateReservedInstancesListingRequest()
    • Method Detail

      • setReservedInstancesId

        public void setReservedInstancesId​(String reservedInstancesId)

        The ID of the active Reserved Instance.

        Parameters:
        reservedInstancesId - The ID of the active Reserved Instance.
      • getReservedInstancesId

        public String getReservedInstancesId()

        The ID of the active Reserved Instance.

        Returns:
        The ID of the active Reserved Instance.
      • withReservedInstancesId

        public CreateReservedInstancesListingRequest withReservedInstancesId​(String reservedInstancesId)

        The ID of the active Reserved Instance.

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

        public void setInstanceCount​(Integer instanceCount)

        The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.

        Parameters:
        instanceCount - The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.
      • getInstanceCount

        public Integer getInstanceCount()

        The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.

        Returns:
        The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.
      • withInstanceCount

        public CreateReservedInstancesListingRequest withInstanceCount​(Integer instanceCount)

        The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.

        Parameters:
        instanceCount - The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getPriceSchedules

        public List<PriceScheduleSpecification> getPriceSchedules()

        A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.

        Returns:
        A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.
      • setPriceSchedules

        public void setPriceSchedules​(Collection<PriceScheduleSpecification> priceSchedules)

        A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.

        Parameters:
        priceSchedules - A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.
      • withPriceSchedules

        public CreateReservedInstancesListingRequest withPriceSchedules​(Collection<PriceScheduleSpecification> priceSchedules)

        A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.

        Parameters:
        priceSchedules - A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setClientToken

        public void setClientToken​(String clientToken)

        Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.

        Parameters:
        clientToken - Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.
      • getClientToken

        public String getClientToken()

        Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.

        Returns:
        Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.
      • withClientToken

        public CreateReservedInstancesListingRequest withClientToken​(String clientToken)

        Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.

        Parameters:
        clientToken - Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.
        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