com.aliyun.sdk.service.ecs20140526.models.CreateSnapshotRequest 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 com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link CreateSnapshotRequest} extends {@link RequestModel}
*
* CreateSnapshotRequest
*/
public class CreateSnapshotRequest extends Request {
@Host
@NameInMap("SourceRegionId")
private String sourceRegionId;
@Query
@NameInMap("Category")
private String category;
@Query
@NameInMap("ClientToken")
private String clientToken;
@Query
@NameInMap("Description")
private String description;
@Query
@NameInMap("DiskId")
@Validation(required = true)
private String diskId;
@Query
@NameInMap("InstantAccess")
private Boolean instantAccess;
@Query
@NameInMap("InstantAccessRetentionDays")
private Integer instantAccessRetentionDays;
@Query
@NameInMap("OwnerAccount")
private String ownerAccount;
@Query
@NameInMap("OwnerId")
private Long ownerId;
@Query
@NameInMap("ResourceGroupId")
private String resourceGroupId;
@Query
@NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@Query
@NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@Query
@NameInMap("RetentionDays")
private Integer retentionDays;
@Query
@NameInMap("SnapshotName")
private String snapshotName;
@Query
@NameInMap("Tag")
private java.util.List < Tag> tag;
private CreateSnapshotRequest(Builder builder) {
super(builder);
this.sourceRegionId = builder.sourceRegionId;
this.category = builder.category;
this.clientToken = builder.clientToken;
this.description = builder.description;
this.diskId = builder.diskId;
this.instantAccess = builder.instantAccess;
this.instantAccessRetentionDays = builder.instantAccessRetentionDays;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.retentionDays = builder.retentionDays;
this.snapshotName = builder.snapshotName;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static CreateSnapshotRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return sourceRegionId
*/
public String getSourceRegionId() {
return this.sourceRegionId;
}
/**
* @return category
*/
public String getCategory() {
return this.category;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return diskId
*/
public String getDiskId() {
return this.diskId;
}
/**
* @return instantAccess
*/
public Boolean getInstantAccess() {
return this.instantAccess;
}
/**
* @return instantAccessRetentionDays
*/
public Integer getInstantAccessRetentionDays() {
return this.instantAccessRetentionDays;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
/**
* @return retentionDays
*/
public Integer getRetentionDays() {
return this.retentionDays;
}
/**
* @return snapshotName
*/
public String getSnapshotName() {
return this.snapshotName;
}
/**
* @return tag
*/
public java.util.List < Tag> getTag() {
return this.tag;
}
public static final class Builder extends Request.Builder {
private String sourceRegionId;
private String category;
private String clientToken;
private String description;
private String diskId;
private Boolean instantAccess;
private Integer instantAccessRetentionDays;
private String ownerAccount;
private Long ownerId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Integer retentionDays;
private String snapshotName;
private java.util.List < Tag> tag;
private Builder() {
super();
}
private Builder(CreateSnapshotRequest request) {
super(request);
this.sourceRegionId = request.sourceRegionId;
this.category = request.category;
this.clientToken = request.clientToken;
this.description = request.description;
this.diskId = request.diskId;
this.instantAccess = request.instantAccess;
this.instantAccessRetentionDays = request.instantAccessRetentionDays;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.retentionDays = request.retentionDays;
this.snapshotName = request.snapshotName;
this.tag = request.tag;
}
/**
* SourceRegionId.
*/
public Builder sourceRegionId(String sourceRegionId) {
this.putHostParameter("SourceRegionId", sourceRegionId);
this.sourceRegionId = sourceRegionId;
return this;
}
/**
* Category.
*/
public Builder category(String category) {
this.putQueryParameter("Category", category);
this.category = category;
return this;
}
/**
* ClientToken.
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* Description.
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* DiskId.
*/
public Builder diskId(String diskId) {
this.putQueryParameter("DiskId", diskId);
this.diskId = diskId;
return this;
}
/**
* InstantAccess.
*/
public Builder instantAccess(Boolean instantAccess) {
this.putQueryParameter("InstantAccess", instantAccess);
this.instantAccess = instantAccess;
return this;
}
/**
* InstantAccessRetentionDays.
*/
public Builder instantAccessRetentionDays(Integer instantAccessRetentionDays) {
this.putQueryParameter("InstantAccessRetentionDays", instantAccessRetentionDays);
this.instantAccessRetentionDays = instantAccessRetentionDays;
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;
}
/**
* ResourceGroupId.
*/
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;
}
/**
* RetentionDays.
*/
public Builder retentionDays(Integer retentionDays) {
this.putQueryParameter("RetentionDays", retentionDays);
this.retentionDays = retentionDays;
return this;
}
/**
* SnapshotName.
*/
public Builder snapshotName(String snapshotName) {
this.putQueryParameter("SnapshotName", snapshotName);
this.snapshotName = snapshotName;
return this;
}
/**
* Tag.
*/
public Builder tag(java.util.List < Tag> tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public CreateSnapshotRequest build() {
return new CreateSnapshotRequest(this);
}
}
public static class Tag extends TeaModel {
@NameInMap("Key")
private String key;
@NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
/**
* Key.
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* Value.
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy