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

com.aliyun.sdk.service.ecs20140526.models.CopySnapshotRequest Maven / Gradle / Ivy

There is a newer version: 6.0.4
Show newest version
// 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 CopySnapshotRequest} extends {@link RequestModel}
 *
 * 

CopySnapshotRequest

*/ public class CopySnapshotRequest extends Request { @Query @NameInMap("DestinationRegionId") @Validation(required = true) private String destinationRegionId; @Query @NameInMap("DestinationSnapshotDescription") @Validation(required = true) private String destinationSnapshotDescription; @Query @NameInMap("DestinationSnapshotName") @Validation(required = true) private String destinationSnapshotName; @Query @NameInMap("OwnerId") private Long ownerId; @Query @NameInMap("RegionId") @Validation(required = true) private String regionId; @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("SnapshotId") @Validation(required = true) private String snapshotId; @Query @NameInMap("Tag") private java.util.List < Tag> tag; private CopySnapshotRequest(Builder builder) { super(builder); this.destinationRegionId = builder.destinationRegionId; this.destinationSnapshotDescription = builder.destinationSnapshotDescription; this.destinationSnapshotName = builder.destinationSnapshotName; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.retentionDays = builder.retentionDays; this.snapshotId = builder.snapshotId; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static CopySnapshotRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return destinationRegionId */ public String getDestinationRegionId() { return this.destinationRegionId; } /** * @return destinationSnapshotDescription */ public String getDestinationSnapshotDescription() { return this.destinationSnapshotDescription; } /** * @return destinationSnapshotName */ public String getDestinationSnapshotName() { return this.destinationSnapshotName; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @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 snapshotId */ public String getSnapshotId() { return this.snapshotId; } /** * @return tag */ public java.util.List < Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder { private String destinationRegionId; private String destinationSnapshotDescription; private String destinationSnapshotName; private Long ownerId; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private Integer retentionDays; private String snapshotId; private java.util.List < Tag> tag; private Builder() { super(); } private Builder(CopySnapshotRequest request) { super(request); this.destinationRegionId = request.destinationRegionId; this.destinationSnapshotDescription = request.destinationSnapshotDescription; this.destinationSnapshotName = request.destinationSnapshotName; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.retentionDays = request.retentionDays; this.snapshotId = request.snapshotId; this.tag = request.tag; } /** * DestinationRegionId. */ public Builder destinationRegionId(String destinationRegionId) { this.putQueryParameter("DestinationRegionId", destinationRegionId); this.destinationRegionId = destinationRegionId; return this; } /** * DestinationSnapshotDescription. */ public Builder destinationSnapshotDescription(String destinationSnapshotDescription) { this.putQueryParameter("DestinationSnapshotDescription", destinationSnapshotDescription); this.destinationSnapshotDescription = destinationSnapshotDescription; return this; } /** * DestinationSnapshotName. */ public Builder destinationSnapshotName(String destinationSnapshotName) { this.putQueryParameter("DestinationSnapshotName", destinationSnapshotName); this.destinationSnapshotName = destinationSnapshotName; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * RegionId. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; 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; } /** * SnapshotId. */ public Builder snapshotId(String snapshotId) { this.putQueryParameter("SnapshotId", snapshotId); this.snapshotId = snapshotId; return this; } /** * Tag. */ public Builder tag(java.util.List < Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public CopySnapshotRequest build() { return new CopySnapshotRequest(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