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

com.aliyun.sdk.service.polardb20170801.models.ModifyAutoRenewAttributeRequest Maven / Gradle / Ivy

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

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link ModifyAutoRenewAttributeRequest} extends {@link RequestModel}
 *
 * 

ModifyAutoRenewAttributeRequest

*/ public class ModifyAutoRenewAttributeRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DBClusterIds") @com.aliyun.core.annotation.Validation(required = true) private String DBClusterIds; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Duration") private String duration; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PeriodUnit") private String periodUnit; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RenewalStatus") private String renewalStatus; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private ModifyAutoRenewAttributeRequest(Builder builder) { super(builder); this.DBClusterIds = builder.DBClusterIds; this.duration = builder.duration; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.periodUnit = builder.periodUnit; this.regionId = builder.regionId; this.renewalStatus = builder.renewalStatus; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static ModifyAutoRenewAttributeRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return DBClusterIds */ public String getDBClusterIds() { return this.DBClusterIds; } /** * @return duration */ public String getDuration() { return this.duration; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return periodUnit */ public String getPeriodUnit() { return this.periodUnit; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return renewalStatus */ public String getRenewalStatus() { return this.renewalStatus; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder { private String DBClusterIds; private String duration; private String ownerAccount; private Long ownerId; private String periodUnit; private String regionId; private String renewalStatus; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(ModifyAutoRenewAttributeRequest request) { super(request); this.DBClusterIds = request.DBClusterIds; this.duration = request.duration; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.periodUnit = request.periodUnit; this.regionId = request.regionId; this.renewalStatus = request.renewalStatus; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * The cluster ID. If you need to specify multiple cluster IDs, separate the cluster IDs with commas (,). */ public Builder DBClusterIds(String DBClusterIds) { this.putQueryParameter("DBClusterIds", DBClusterIds); this.DBClusterIds = DBClusterIds; return this; } /** * The automatic renewal period. *

* * * Valid values when you set the **PeriodUnit** parameter to **Month**: `1, 2, 3, 6, and 12`. * * Valid values when you set the **PeriodUnit** parameter to **Year**: `1, 2, and 3`. * * Default value: **1**. */ public Builder duration(String duration) { this.putQueryParameter("Duration", duration); this.duration = duration; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * The unit of the renewal period. Valid values: *

* * * **Year** * * **Month** * * Default value: **Month**. */ public Builder periodUnit(String periodUnit) { this.putQueryParameter("PeriodUnit", periodUnit); this.periodUnit = periodUnit; return this; } /** * The ID of the region. The region ID can be up to 50 characters in length. *

* cn-hangzhou * * > You can call the [DescribeRegions](~~98041~~) operation to query the available regions. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * The auto-renewal status of the cluster. Valid values: *

* * * **AutoRenewal:** The cluster is automatically renewed. * * **Normal**: The cluster is manually renewed. * * **NotRenewal:** The cluster is not renewed after expiration. * * Default value: **AutoRenewal**. * * > If you set this parameter to **NotRenewal**, the system sends a notification that indicates the cluster is not renewed three days before the cluster expires. After the cluster expires, the system no longer sends a notification. */ public Builder renewalStatus(String renewalStatus) { this.putQueryParameter("RenewalStatus", renewalStatus); this.renewalStatus = renewalStatus; return this; } /** * The ID of the resource group. */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public ModifyAutoRenewAttributeRequest build() { return new ModifyAutoRenewAttributeRequest(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy