com.aliyun.sdk.service.ecs20140526.models.ModifyAutoSnapshotPolicyExRequest 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 ModifyAutoSnapshotPolicyExRequest} extends {@link RequestModel}
*
* ModifyAutoSnapshotPolicyExRequest
*/
public class ModifyAutoSnapshotPolicyExRequest extends Request {
@Host
@NameInMap("SourceRegionId")
private String sourceRegionId;
@Query
@NameInMap("CopiedSnapshotsRetentionDays")
private Integer copiedSnapshotsRetentionDays;
@Query
@NameInMap("EnableCrossRegionCopy")
private Boolean enableCrossRegionCopy;
@Query
@NameInMap("OwnerId")
private Long ownerId;
@Query
@NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@Query
@NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@Query
@NameInMap("TargetCopyRegions")
private String targetCopyRegions;
@Query
@NameInMap("autoSnapshotPolicyId")
@Validation(required = true)
private String autoSnapshotPolicyId;
@Query
@NameInMap("autoSnapshotPolicyName")
private String autoSnapshotPolicyName;
@Query
@NameInMap("regionId")
@Validation(required = true)
private String regionId;
@Query
@NameInMap("repeatWeekdays")
private String repeatWeekdays;
@Query
@NameInMap("retentionDays")
private Integer retentionDays;
@Query
@NameInMap("timePoints")
private String timePoints;
private ModifyAutoSnapshotPolicyExRequest(Builder builder) {
super(builder);
this.sourceRegionId = builder.sourceRegionId;
this.copiedSnapshotsRetentionDays = builder.copiedSnapshotsRetentionDays;
this.enableCrossRegionCopy = builder.enableCrossRegionCopy;
this.ownerId = builder.ownerId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.targetCopyRegions = builder.targetCopyRegions;
this.autoSnapshotPolicyId = builder.autoSnapshotPolicyId;
this.autoSnapshotPolicyName = builder.autoSnapshotPolicyName;
this.regionId = builder.regionId;
this.repeatWeekdays = builder.repeatWeekdays;
this.retentionDays = builder.retentionDays;
this.timePoints = builder.timePoints;
}
public static Builder builder() {
return new Builder();
}
public static ModifyAutoSnapshotPolicyExRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return sourceRegionId
*/
public String getSourceRegionId() {
return this.sourceRegionId;
}
/**
* @return copiedSnapshotsRetentionDays
*/
public Integer getCopiedSnapshotsRetentionDays() {
return this.copiedSnapshotsRetentionDays;
}
/**
* @return enableCrossRegionCopy
*/
public Boolean getEnableCrossRegionCopy() {
return this.enableCrossRegionCopy;
}
/**
* @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 targetCopyRegions
*/
public String getTargetCopyRegions() {
return this.targetCopyRegions;
}
/**
* @return autoSnapshotPolicyId
*/
public String getAutoSnapshotPolicyId() {
return this.autoSnapshotPolicyId;
}
/**
* @return autoSnapshotPolicyName
*/
public String getAutoSnapshotPolicyName() {
return this.autoSnapshotPolicyName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return repeatWeekdays
*/
public String getRepeatWeekdays() {
return this.repeatWeekdays;
}
/**
* @return retentionDays
*/
public Integer getRetentionDays() {
return this.retentionDays;
}
/**
* @return timePoints
*/
public String getTimePoints() {
return this.timePoints;
}
public static final class Builder extends Request.Builder {
private String sourceRegionId;
private Integer copiedSnapshotsRetentionDays;
private Boolean enableCrossRegionCopy;
private Long ownerId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String targetCopyRegions;
private String autoSnapshotPolicyId;
private String autoSnapshotPolicyName;
private String regionId;
private String repeatWeekdays;
private Integer retentionDays;
private String timePoints;
private Builder() {
super();
}
private Builder(ModifyAutoSnapshotPolicyExRequest request) {
super(request);
this.sourceRegionId = request.sourceRegionId;
this.copiedSnapshotsRetentionDays = request.copiedSnapshotsRetentionDays;
this.enableCrossRegionCopy = request.enableCrossRegionCopy;
this.ownerId = request.ownerId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.targetCopyRegions = request.targetCopyRegions;
this.autoSnapshotPolicyId = request.autoSnapshotPolicyId;
this.autoSnapshotPolicyName = request.autoSnapshotPolicyName;
this.regionId = request.regionId;
this.repeatWeekdays = request.repeatWeekdays;
this.retentionDays = request.retentionDays;
this.timePoints = request.timePoints;
}
/**
* SourceRegionId.
*/
public Builder sourceRegionId(String sourceRegionId) {
this.putHostParameter("SourceRegionId", sourceRegionId);
this.sourceRegionId = sourceRegionId;
return this;
}
/**
* CopiedSnapshotsRetentionDays.
*/
public Builder copiedSnapshotsRetentionDays(Integer copiedSnapshotsRetentionDays) {
this.putQueryParameter("CopiedSnapshotsRetentionDays", copiedSnapshotsRetentionDays);
this.copiedSnapshotsRetentionDays = copiedSnapshotsRetentionDays;
return this;
}
/**
* EnableCrossRegionCopy.
*/
public Builder enableCrossRegionCopy(Boolean enableCrossRegionCopy) {
this.putQueryParameter("EnableCrossRegionCopy", enableCrossRegionCopy);
this.enableCrossRegionCopy = enableCrossRegionCopy;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
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;
}
/**
* TargetCopyRegions.
*/
public Builder targetCopyRegions(String targetCopyRegions) {
this.putQueryParameter("TargetCopyRegions", targetCopyRegions);
this.targetCopyRegions = targetCopyRegions;
return this;
}
/**
* autoSnapshotPolicyId.
*/
public Builder autoSnapshotPolicyId(String autoSnapshotPolicyId) {
this.putQueryParameter("autoSnapshotPolicyId", autoSnapshotPolicyId);
this.autoSnapshotPolicyId = autoSnapshotPolicyId;
return this;
}
/**
* autoSnapshotPolicyName.
*/
public Builder autoSnapshotPolicyName(String autoSnapshotPolicyName) {
this.putQueryParameter("autoSnapshotPolicyName", autoSnapshotPolicyName);
this.autoSnapshotPolicyName = autoSnapshotPolicyName;
return this;
}
/**
* regionId.
*/
public Builder regionId(String regionId) {
this.putQueryParameter("regionId", regionId);
this.regionId = regionId;
return this;
}
/**
* repeatWeekdays.
*/
public Builder repeatWeekdays(String repeatWeekdays) {
this.putQueryParameter("repeatWeekdays", repeatWeekdays);
this.repeatWeekdays = repeatWeekdays;
return this;
}
/**
* retentionDays.
*/
public Builder retentionDays(Integer retentionDays) {
this.putQueryParameter("retentionDays", retentionDays);
this.retentionDays = retentionDays;
return this;
}
/**
* timePoints.
*/
public Builder timePoints(String timePoints) {
this.putQueryParameter("timePoints", timePoints);
this.timePoints = timePoints;
return this;
}
@Override
public ModifyAutoSnapshotPolicyExRequest build() {
return new ModifyAutoSnapshotPolicyExRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy