/* * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.ec2.model; import java.io.Serializable; /** *
* Describes a Reserved Instance. *
*/ public class ReservedInstances implements Serializable { /** * The ID of the Reserved Instance. */ private String reservedInstancesId; /** * The instance type on which the Reserved Instance can be used. *
* Constraints:
* Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, 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, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
*/
private String instanceType;
/**
* The Availability Zone in which the Reserved Instance can be used.
*/
private String availabilityZone;
/**
* The date and time the Reserved Instance started.
*/
private java.util.Date start;
/**
* The time when the Reserved Instance expires.
*/
private java.util.Date end;
/**
* The duration of the Reserved Instance, in seconds.
*/
private Long duration;
/**
* The usage price of the Reserved Instance, per hour.
*/
private Float usagePrice;
/**
* The purchase price of the Reserved Instance.
*/
private Float fixedPrice;
/**
* The number of reservations purchased.
*/
private Integer instanceCount;
/**
* The Reserved Instance product platform description.
*
* Constraints:
* Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
*/
private String productDescription;
/**
* The state of the Reserved Instance purchase.
*
* Constraints:
* Constraints:
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* @param reservedInstancesId The ID of the Reserved Instance.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ReservedInstances withReservedInstancesId(String reservedInstancesId) {
this.reservedInstancesId = reservedInstancesId;
return this;
}
/**
* The instance type on which the Reserved Instance can be used.
*
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* @param availabilityZone The Availability Zone in which the Reserved Instance can be used.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ReservedInstances withAvailabilityZone(String availabilityZone) {
this.availabilityZone = availabilityZone;
return this;
}
/**
* The date and time the Reserved Instance started.
*
* @return The date and time the Reserved Instance started.
*/
public java.util.Date getStart() {
return start;
}
/**
* The date and time the Reserved Instance started.
*
* @param start The date and time the Reserved Instance started.
*/
public void setStart(java.util.Date start) {
this.start = start;
}
/**
* The date and time the Reserved Instance started.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param start The date and time the Reserved Instance started.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ReservedInstances withStart(java.util.Date start) {
this.start = start;
return this;
}
/**
* The time when the Reserved Instance expires.
*
* @return The time when the Reserved Instance expires.
*/
public java.util.Date getEnd() {
return end;
}
/**
* The time when the Reserved Instance expires.
*
* @param end The time when the Reserved Instance expires.
*/
public void setEnd(java.util.Date end) {
this.end = end;
}
/**
* The time when the Reserved Instance expires.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param end The time when the Reserved Instance expires.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ReservedInstances withEnd(java.util.Date end) {
this.end = end;
return this;
}
/**
* The duration of the Reserved Instance, in seconds.
*
* @return The duration of the Reserved Instance, in seconds.
*/
public Long getDuration() {
return duration;
}
/**
* The duration of the Reserved Instance, in seconds.
*
* @param duration The duration of the Reserved Instance, in seconds.
*/
public void setDuration(Long duration) {
this.duration = duration;
}
/**
* The duration of the Reserved Instance, in seconds.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param duration The duration of the Reserved Instance, in seconds.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ReservedInstances withDuration(Long duration) {
this.duration = duration;
return this;
}
/**
* The usage price of the Reserved Instance, per hour.
*
* @return The usage price of the Reserved Instance, per hour.
*/
public Float getUsagePrice() {
return usagePrice;
}
/**
* The usage price of the Reserved Instance, per hour.
*
* @param usagePrice The usage price of the Reserved Instance, per hour.
*/
public void setUsagePrice(Float usagePrice) {
this.usagePrice = usagePrice;
}
/**
* The usage price of the Reserved Instance, per hour.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param usagePrice The usage price of the Reserved Instance, per hour.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ReservedInstances withUsagePrice(Float usagePrice) {
this.usagePrice = usagePrice;
return this;
}
/**
* The purchase price of the Reserved Instance.
*
* @return The purchase price of the Reserved Instance.
*/
public Float getFixedPrice() {
return fixedPrice;
}
/**
* The purchase price of the Reserved Instance.
*
* @param fixedPrice The purchase price of the Reserved Instance.
*/
public void setFixedPrice(Float fixedPrice) {
this.fixedPrice = fixedPrice;
}
/**
* The purchase price of the Reserved Instance.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param fixedPrice The purchase price of the Reserved Instance.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ReservedInstances withFixedPrice(Float fixedPrice) {
this.fixedPrice = fixedPrice;
return this;
}
/**
* The number of reservations purchased.
*
* @return The number of reservations purchased.
*/
public Integer getInstanceCount() {
return instanceCount;
}
/**
* The number of reservations purchased.
*
* @param instanceCount The number of reservations purchased.
*/
public void setInstanceCount(Integer instanceCount) {
this.instanceCount = instanceCount;
}
/**
* The number of reservations purchased.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param instanceCount The number of reservations purchased.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ReservedInstances withInstanceCount(Integer instanceCount) {
this.instanceCount = instanceCount;
return this;
}
/**
* The Reserved Instance product platform description.
*
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* @param tags Any tags assigned to the resource.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ReservedInstances withTags(Tag... tags) {
if (getTags() == null) setTags(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param tags Any tags assigned to the resource.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ReservedInstances withTags(java.util.Collection
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* Constraints:
* Returns a reference to this object so that method calls can be chained together.
*
* @param recurringCharges The recurring charge tag assigned to the resource.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ReservedInstances withRecurringCharges(RecurringCharge... recurringCharges) {
if (getRecurringCharges() == null) setRecurringCharges(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param recurringCharges The recurring charge tag assigned to the resource.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ReservedInstances withRecurringCharges(java.util.Collection
* Allowed Values: payment-pending, active, payment-failed, retired
*/
private String state;
/**
* Any tags assigned to the resource.
*/
private com.amazonaws.internal.ListWithAutoConstructFlag
* Allowed Values: default, dedicated, host
*/
private String instanceTenancy;
/**
* The currency of the Reserved Instance. It's specified using ISO 4217
* standard currency codes. At this time, the only supported currency is
* USD
.
*
* Allowed Values: USD
*/
private String currencyCode;
/**
* The Reserved Instance offering type.
*
* Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
*/
private String offeringType;
/**
* The recurring charge tag assigned to the resource.
*/
private com.amazonaws.internal.ListWithAutoConstructFlag
* Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, 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, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
*
* @return The instance type on which the Reserved Instance can be used.
*
* @see InstanceType
*/
public String getInstanceType() {
return instanceType;
}
/**
* The instance type on which the Reserved Instance can be used.
*
* Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, 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, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
*
* @param instanceType The instance type on which the Reserved Instance can be used.
*
* @see InstanceType
*/
public void setInstanceType(String instanceType) {
this.instanceType = instanceType;
}
/**
* The instance type on which the Reserved Instance can be used.
*
* Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, 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, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
*
* @param instanceType The instance type on which the Reserved Instance can be used.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see InstanceType
*/
public ReservedInstances withInstanceType(String instanceType) {
this.instanceType = instanceType;
return this;
}
/**
* The instance type on which the Reserved Instance can be used.
*
* Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, 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, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
*
* @param instanceType The instance type on which the Reserved Instance can be used.
*
* @see InstanceType
*/
public void setInstanceType(InstanceType instanceType) {
this.instanceType = instanceType.toString();
}
/**
* The instance type on which the Reserved Instance can be used.
*
* Allowed Values: t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, x1.4xlarge, x1.8xlarge, x1.16xlarge, x1.32xlarge, 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, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge
*
* @param instanceType The instance type on which the Reserved Instance can be used.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see InstanceType
*/
public ReservedInstances withInstanceType(InstanceType instanceType) {
this.instanceType = instanceType.toString();
return this;
}
/**
* The Availability Zone in which the Reserved Instance can be used.
*
* @return The Availability Zone in which the Reserved Instance can be used.
*/
public String getAvailabilityZone() {
return availabilityZone;
}
/**
* The Availability Zone in which the Reserved Instance can be used.
*
* @param availabilityZone The Availability Zone in which the Reserved Instance can be used.
*/
public void setAvailabilityZone(String availabilityZone) {
this.availabilityZone = availabilityZone;
}
/**
* The Availability Zone in which the Reserved Instance can be used.
*
* Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
*
* @return The Reserved Instance product platform description.
*
* @see RIProductDescription
*/
public String getProductDescription() {
return productDescription;
}
/**
* The Reserved Instance product platform description.
*
* Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
*
* @param productDescription The Reserved Instance product platform description.
*
* @see RIProductDescription
*/
public void setProductDescription(String productDescription) {
this.productDescription = productDescription;
}
/**
* The Reserved Instance product platform description.
*
* Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
*
* @param productDescription The Reserved Instance product platform description.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see RIProductDescription
*/
public ReservedInstances withProductDescription(String productDescription) {
this.productDescription = productDescription;
return this;
}
/**
* The Reserved Instance product platform description.
*
* Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
*
* @param productDescription The Reserved Instance product platform description.
*
* @see RIProductDescription
*/
public void setProductDescription(RIProductDescription productDescription) {
this.productDescription = productDescription.toString();
}
/**
* The Reserved Instance product platform description.
*
* Allowed Values: Linux/UNIX, Linux/UNIX (Amazon VPC), Windows, Windows (Amazon VPC)
*
* @param productDescription The Reserved Instance product platform description.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see RIProductDescription
*/
public ReservedInstances withProductDescription(RIProductDescription productDescription) {
this.productDescription = productDescription.toString();
return this;
}
/**
* The state of the Reserved Instance purchase.
*
* Allowed Values: payment-pending, active, payment-failed, retired
*
* @return The state of the Reserved Instance purchase.
*
* @see ReservedInstanceState
*/
public String getState() {
return state;
}
/**
* The state of the Reserved Instance purchase.
*
* Allowed Values: payment-pending, active, payment-failed, retired
*
* @param state The state of the Reserved Instance purchase.
*
* @see ReservedInstanceState
*/
public void setState(String state) {
this.state = state;
}
/**
* The state of the Reserved Instance purchase.
*
* Allowed Values: payment-pending, active, payment-failed, retired
*
* @param state The state of the Reserved Instance purchase.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see ReservedInstanceState
*/
public ReservedInstances withState(String state) {
this.state = state;
return this;
}
/**
* The state of the Reserved Instance purchase.
*
* Allowed Values: payment-pending, active, payment-failed, retired
*
* @param state The state of the Reserved Instance purchase.
*
* @see ReservedInstanceState
*/
public void setState(ReservedInstanceState state) {
this.state = state.toString();
}
/**
* The state of the Reserved Instance purchase.
*
* Allowed Values: payment-pending, active, payment-failed, retired
*
* @param state The state of the Reserved Instance purchase.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see ReservedInstanceState
*/
public ReservedInstances withState(ReservedInstanceState state) {
this.state = state.toString();
return this;
}
/**
* Any tags assigned to the resource.
*
* @return Any tags assigned to the resource.
*/
public java.util.List
* Allowed Values: default, dedicated, host
*
* @return The tenancy of the instance.
*
* @see Tenancy
*/
public String getInstanceTenancy() {
return instanceTenancy;
}
/**
* The tenancy of the instance.
*
* Allowed Values: default, dedicated, host
*
* @param instanceTenancy The tenancy of the instance.
*
* @see Tenancy
*/
public void setInstanceTenancy(String instanceTenancy) {
this.instanceTenancy = instanceTenancy;
}
/**
* The tenancy of the instance.
*
* Allowed Values: default, dedicated, host
*
* @param instanceTenancy The tenancy of the instance.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see Tenancy
*/
public ReservedInstances withInstanceTenancy(String instanceTenancy) {
this.instanceTenancy = instanceTenancy;
return this;
}
/**
* The tenancy of the instance.
*
* Allowed Values: default, dedicated, host
*
* @param instanceTenancy The tenancy of the instance.
*
* @see Tenancy
*/
public void setInstanceTenancy(Tenancy instanceTenancy) {
this.instanceTenancy = instanceTenancy.toString();
}
/**
* The tenancy of the instance.
*
* Allowed Values: default, dedicated, host
*
* @param instanceTenancy The tenancy of the instance.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see Tenancy
*/
public ReservedInstances withInstanceTenancy(Tenancy instanceTenancy) {
this.instanceTenancy = instanceTenancy.toString();
return this;
}
/**
* The currency of the Reserved Instance. It's specified using ISO 4217
* standard currency codes. At this time, the only supported currency is
* USD
.
*
* Allowed Values: USD
*
* @return The currency of the Reserved Instance. It's specified using ISO 4217
* standard currency codes. At this time, the only supported currency is
* USD
.
*
* @see CurrencyCodeValues
*/
public String getCurrencyCode() {
return currencyCode;
}
/**
* The currency of the Reserved Instance. It's specified using ISO 4217
* standard currency codes. At this time, the only supported currency is
* USD
.
*
* Allowed Values: USD
*
* @param currencyCode The currency of the Reserved Instance. It's specified using ISO 4217
* standard currency codes. At this time, the only supported currency is
* USD
.
*
* @see CurrencyCodeValues
*/
public void setCurrencyCode(String currencyCode) {
this.currencyCode = currencyCode;
}
/**
* The currency of the Reserved Instance. It's specified using ISO 4217
* standard currency codes. At this time, the only supported currency is
* USD
.
*
* Allowed Values: USD
*
* @param currencyCode The currency of the Reserved Instance. It's specified using ISO 4217
* standard currency codes. At this time, the only supported currency is
* USD
.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see CurrencyCodeValues
*/
public ReservedInstances withCurrencyCode(String currencyCode) {
this.currencyCode = currencyCode;
return this;
}
/**
* The currency of the Reserved Instance. It's specified using ISO 4217
* standard currency codes. At this time, the only supported currency is
* USD
.
*
* Allowed Values: USD
*
* @param currencyCode The currency of the Reserved Instance. It's specified using ISO 4217
* standard currency codes. At this time, the only supported currency is
* USD
.
*
* @see CurrencyCodeValues
*/
public void setCurrencyCode(CurrencyCodeValues currencyCode) {
this.currencyCode = currencyCode.toString();
}
/**
* The currency of the Reserved Instance. It's specified using ISO 4217
* standard currency codes. At this time, the only supported currency is
* USD
.
*
* Allowed Values: USD
*
* @param currencyCode The currency of the Reserved Instance. It's specified using ISO 4217
* standard currency codes. At this time, the only supported currency is
* USD
.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see CurrencyCodeValues
*/
public ReservedInstances withCurrencyCode(CurrencyCodeValues currencyCode) {
this.currencyCode = currencyCode.toString();
return this;
}
/**
* The Reserved Instance offering type.
*
* Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
*
* @return The Reserved Instance offering type.
*
* @see OfferingTypeValues
*/
public String getOfferingType() {
return offeringType;
}
/**
* The Reserved Instance offering type.
*
* Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
*
* @param offeringType The Reserved Instance offering type.
*
* @see OfferingTypeValues
*/
public void setOfferingType(String offeringType) {
this.offeringType = offeringType;
}
/**
* The Reserved Instance offering type.
*
* Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
*
* @param offeringType The Reserved Instance offering type.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see OfferingTypeValues
*/
public ReservedInstances withOfferingType(String offeringType) {
this.offeringType = offeringType;
return this;
}
/**
* The Reserved Instance offering type.
*
* Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
*
* @param offeringType The Reserved Instance offering type.
*
* @see OfferingTypeValues
*/
public void setOfferingType(OfferingTypeValues offeringType) {
this.offeringType = offeringType.toString();
}
/**
* The Reserved Instance offering type.
*
* Allowed Values: Heavy Utilization, Medium Utilization, Light Utilization, No Upfront, Partial Upfront, All Upfront
*
* @param offeringType The Reserved Instance offering type.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*
* @see OfferingTypeValues
*/
public ReservedInstances withOfferingType(OfferingTypeValues offeringType) {
this.offeringType = offeringType.toString();
return this;
}
/**
* The recurring charge tag assigned to the resource.
*
* @return The recurring charge tag assigned to the resource.
*/
public java.util.List