com.aliyun.sdk.service.ecs20140526.models.DescribeReservedInstanceAutoRenewAttributeResponseBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-ecs20140526 Show documentation
Show all versions of alibabacloud-ecs20140526 Show documentation
Alibaba Cloud Ecs (20140526) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DescribeReservedInstanceAutoRenewAttributeResponseBody} extends {@link TeaModel}
*
* DescribeReservedInstanceAutoRenewAttributeResponseBody
*/
public class DescribeReservedInstanceAutoRenewAttributeResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("ReservedInstanceRenewAttributes")
private ReservedInstanceRenewAttributes reservedInstanceRenewAttributes;
private DescribeReservedInstanceAutoRenewAttributeResponseBody(Builder builder) {
this.requestId = builder.requestId;
this.reservedInstanceRenewAttributes = builder.reservedInstanceRenewAttributes;
}
public static Builder builder() {
return new Builder();
}
public static DescribeReservedInstanceAutoRenewAttributeResponseBody create() {
return builder().build();
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return reservedInstanceRenewAttributes
*/
public ReservedInstanceRenewAttributes getReservedInstanceRenewAttributes() {
return this.reservedInstanceRenewAttributes;
}
public static final class Builder {
private String requestId;
private ReservedInstanceRenewAttributes reservedInstanceRenewAttributes;
/**
* The request ID.
*
* example:
* 04F0F334-1335-436C-A1D7-6C044FE7****
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Details about the auto-renewal settings of the reserved instances.
*/
public Builder reservedInstanceRenewAttributes(ReservedInstanceRenewAttributes reservedInstanceRenewAttributes) {
this.reservedInstanceRenewAttributes = reservedInstanceRenewAttributes;
return this;
}
public DescribeReservedInstanceAutoRenewAttributeResponseBody build() {
return new DescribeReservedInstanceAutoRenewAttributeResponseBody(this);
}
}
/**
*
* {@link DescribeReservedInstanceAutoRenewAttributeResponseBody} extends {@link TeaModel}
*
* DescribeReservedInstanceAutoRenewAttributeResponseBody
*/
public static class ReservedInstanceRenewAttribute extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Duration")
private Integer duration;
@com.aliyun.core.annotation.NameInMap("PeriodUnit")
private String periodUnit;
@com.aliyun.core.annotation.NameInMap("RenewalStatus")
private String renewalStatus;
@com.aliyun.core.annotation.NameInMap("ReservedInstanceId")
private String reservedInstanceId;
private ReservedInstanceRenewAttribute(Builder builder) {
this.duration = builder.duration;
this.periodUnit = builder.periodUnit;
this.renewalStatus = builder.renewalStatus;
this.reservedInstanceId = builder.reservedInstanceId;
}
public static Builder builder() {
return new Builder();
}
public static ReservedInstanceRenewAttribute create() {
return builder().build();
}
/**
* @return duration
*/
public Integer getDuration() {
return this.duration;
}
/**
* @return periodUnit
*/
public String getPeriodUnit() {
return this.periodUnit;
}
/**
* @return renewalStatus
*/
public String getRenewalStatus() {
return this.renewalStatus;
}
/**
* @return reservedInstanceId
*/
public String getReservedInstanceId() {
return this.reservedInstanceId;
}
public static final class Builder {
private Integer duration;
private String periodUnit;
private String renewalStatus;
private String reservedInstanceId;
/**
* The auto-renewal duration.
*
* example:
* 1
*/
public Builder duration(Integer duration) {
this.duration = duration;
return this;
}
/**
* The unit of the auto-renewal duration.
* Valid values: Year and Month.
*
* example:
* Month
*/
public Builder periodUnit(String periodUnit) {
this.periodUnit = periodUnit;
return this;
}
/**
* The auto-renewal status of the reserved instance. Valid values:
*
* - AutoRenewal: The reserved instance is automatically renewed.
* - Normal: You must manually renew the reserved instance.
*
*
* example:
* AutoRenewal
*/
public Builder renewalStatus(String renewalStatus) {
this.renewalStatus = renewalStatus;
return this;
}
/**
* The ID of the reserved instance.
*
* example:
* ecsri-ajdfaj****
*/
public Builder reservedInstanceId(String reservedInstanceId) {
this.reservedInstanceId = reservedInstanceId;
return this;
}
public ReservedInstanceRenewAttribute build() {
return new ReservedInstanceRenewAttribute(this);
}
}
}
/**
*
* {@link DescribeReservedInstanceAutoRenewAttributeResponseBody} extends {@link TeaModel}
*
* DescribeReservedInstanceAutoRenewAttributeResponseBody
*/
public static class ReservedInstanceRenewAttributes extends TeaModel {
@com.aliyun.core.annotation.NameInMap("ReservedInstanceRenewAttribute")
private java.util.List reservedInstanceRenewAttribute;
private ReservedInstanceRenewAttributes(Builder builder) {
this.reservedInstanceRenewAttribute = builder.reservedInstanceRenewAttribute;
}
public static Builder builder() {
return new Builder();
}
public static ReservedInstanceRenewAttributes create() {
return builder().build();
}
/**
* @return reservedInstanceRenewAttribute
*/
public java.util.List getReservedInstanceRenewAttribute() {
return this.reservedInstanceRenewAttribute;
}
public static final class Builder {
private java.util.List reservedInstanceRenewAttribute;
/**
* ReservedInstanceRenewAttribute.
*/
public Builder reservedInstanceRenewAttribute(java.util.List reservedInstanceRenewAttribute) {
this.reservedInstanceRenewAttribute = reservedInstanceRenewAttribute;
return this;
}
public ReservedInstanceRenewAttributes build() {
return new ReservedInstanceRenewAttributes(this);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy