com.aliyun.sdk.service.ecs20140526.models.CancelAutoSnapshotPolicyRequest 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
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CancelAutoSnapshotPolicyRequest} extends {@link RequestModel}
*
* CancelAutoSnapshotPolicyRequest
*/
public class CancelAutoSnapshotPolicyRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("SourceRegionId")
private String sourceRegionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OwnerId")
private Long ownerId;
@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;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("diskIds")
@com.aliyun.core.annotation.Validation(required = true)
private String diskIds;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("regionId")
@com.aliyun.core.annotation.Validation(required = true)
private String regionId;
private CancelAutoSnapshotPolicyRequest(Builder builder) {
super(builder);
this.sourceRegionId = builder.sourceRegionId;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.diskIds = builder.diskIds;
this.regionId = builder.regionId;
}
public static Builder builder() {
return new Builder();
}
public static CancelAutoSnapshotPolicyRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return sourceRegionId
*/
public String getSourceRegionId() {
return this.sourceRegionId;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return diskIds
*/
public String getDiskIds() {
return this.diskIds;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
public static final class Builder extends Request.Builder {
private String sourceRegionId;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String diskIds;
private String regionId;
private Builder() {
super();
}
private Builder(CancelAutoSnapshotPolicyRequest request) {
super(request);
this.sourceRegionId = request.sourceRegionId;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.diskIds = request.diskIds;
this.regionId = request.regionId;
}
/**
* SourceRegionId.
*/
public Builder sourceRegionId(String sourceRegionId) {
this.putHostParameter("SourceRegionId", sourceRegionId);
this.sourceRegionId = sourceRegionId;
return this;
}
/**
* RAM用户的虚拟账号ID。
*
* example:
* 155780923770
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* 资源主账号的账号名称。
*
* example:
* ECSforCloud
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* 资源主账号的ID,亦即UID。
*
* example:
* 155780923770
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
/**
* The IDs of the disks for which you want to disable the automatic snapshot policy. To disable the automatic snapshot policy for multiple disks, you can set this parameter to a JSON array that consists of multiple disk IDs, such as ["dxxxxxxxxx", "dyyyyyyyyy", … "dzzzzzzzzz"]. Separate the disk IDs with commas (,).
* This parameter is required.
*
* example:
* ["d-bp14k9cxvr5uzy54****", "d-bp1dtj8v7x6u08iw****", "d-bp1c0tyj9tfli2r8****"]
*/
public Builder diskIds(String diskIds) {
this.putQueryParameter("diskIds", diskIds);
this.diskIds = diskIds;
return this;
}
/**
* The region ID of the automatic snapshot policy and the disks. You can call the DescribeRegions operation to query the most recent region list.
* This parameter is required.
*
* example:
* cn-hangzhou
*/
public Builder regionId(String regionId) {
this.putQueryParameter("regionId", regionId);
this.regionId = regionId;
return this;
}
@Override
public CancelAutoSnapshotPolicyRequest build() {
return new CancelAutoSnapshotPolicyRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy