All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.ens20171110.models.ModifyInstanceAutoRenewAttributeRequest Maven / Gradle / Ivy

There is a newer version: 7.7.0
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ens20171110.models;

import com.aliyun.tea.*;

public class ModifyInstanceAutoRenewAttributeRequest extends TeaModel {
    /**
     * 

Specifies whether to enable the auto-renewal feature. Valid values: True and False. Default value: False.

*

This parameter is required.

* * example: *

false

*/ @NameInMap("AutoRenew") public String autoRenew; /** *

The auto-renewal period of the instance. Unit: months. Valid values: 1 to 9 and 12. This parameter is required if the AutoRenew parameter is set to true.

* * example: *

12

*/ @NameInMap("Duration") public String duration; /** *

The IDs of the instances. Separate IDs with semicolons (;).

*

This parameter is required.

* * example: *

instance-test

*/ @NameInMap("InstanceIds") public String instanceIds; @NameInMap("OwnerId") public String ownerId; /** *

Specifies whether to renew the instance. The RenewalStatus parameter has a higher priority than the AutoRenew parameter. If you do not specify RenewalStatus, the AutoRenew parameter is used by default.

*
    *
  • AutoRenewal: Auto-renewal is enabled for the instance.
  • *
  • Normal: Auto-renewal is disabled for the instance.
  • *
  • NotRenewal: The instance is not renewed.
  • *
*

The system no longer sends an expiration notification but sends only a renewal notification three days before the instance expires. To renew the instance, you can change the value of this parameter from NotRenewal to Normal and then manually renew the instance, or change the value of this parameter from NotRenewal to AutoRenewal.

* * example: *

Normal

*/ @NameInMap("RenewalStatus") public String renewalStatus; public static ModifyInstanceAutoRenewAttributeRequest build(java.util.Map map) throws Exception { ModifyInstanceAutoRenewAttributeRequest self = new ModifyInstanceAutoRenewAttributeRequest(); return TeaModel.build(map, self); } public ModifyInstanceAutoRenewAttributeRequest setAutoRenew(String autoRenew) { this.autoRenew = autoRenew; return this; } public String getAutoRenew() { return this.autoRenew; } public ModifyInstanceAutoRenewAttributeRequest setDuration(String duration) { this.duration = duration; return this; } public String getDuration() { return this.duration; } public ModifyInstanceAutoRenewAttributeRequest setInstanceIds(String instanceIds) { this.instanceIds = instanceIds; return this; } public String getInstanceIds() { return this.instanceIds; } public ModifyInstanceAutoRenewAttributeRequest setOwnerId(String ownerId) { this.ownerId = ownerId; return this; } public String getOwnerId() { return this.ownerId; } public ModifyInstanceAutoRenewAttributeRequest setRenewalStatus(String renewalStatus) { this.renewalStatus = renewalStatus; return this; } public String getRenewalStatus() { return this.renewalStatus; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy