com.aliyun.sdk.service.ecs20140526.models.ModifyDiskDefaultKMSKeyIdRequest 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
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ModifyDiskDefaultKMSKeyIdRequest} extends {@link RequestModel}
*
* ModifyDiskDefaultKMSKeyIdRequest
*/
public class ModifyDiskDefaultKMSKeyIdRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("KMSKeyId")
@com.aliyun.core.annotation.Validation(required = true)
private String KMSKeyId;
@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("ResourceOwnerId")
private Long resourceOwnerId;
private ModifyDiskDefaultKMSKeyIdRequest(Builder builder) {
super(builder);
this.KMSKeyId = builder.KMSKeyId;
this.regionId = builder.regionId;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static ModifyDiskDefaultKMSKeyIdRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return KMSKeyId
*/
public String getKMSKeyId() {
return this.KMSKeyId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder {
private String KMSKeyId;
private String regionId;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(ModifyDiskDefaultKMSKeyIdRequest request) {
super(request);
this.KMSKeyId = request.KMSKeyId;
this.regionId = request.regionId;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* The ID of the new KMS key.
* This parameter is required.
*
* example:
* 0e478b7a-4262-4802-b8cb-00d3fb40****
*/
public Builder KMSKeyId(String KMSKeyId) {
this.putQueryParameter("KMSKeyId", KMSKeyId);
this.KMSKeyId = KMSKeyId;
return this;
}
/**
* The region ID. 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;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public ModifyDiskDefaultKMSKeyIdRequest build() {
return new ModifyDiskDefaultKMSKeyIdRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy