com.aliyun.sdk.service.ens20171110.models.PutBucketAclRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-ens20171110 Show documentation
Show all versions of alibabacloud-ens20171110 Show documentation
Alibaba Cloud Ens (20171110) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ens20171110.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 PutBucketAclRequest} extends {@link RequestModel}
*
* PutBucketAclRequest
*/
public class PutBucketAclRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BucketAcl")
@com.aliyun.core.annotation.Validation(required = true)
private String bucketAcl;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("BucketName")
@com.aliyun.core.annotation.Validation(required = true)
private String bucketName;
private PutBucketAclRequest(Builder builder) {
super(builder);
this.bucketAcl = builder.bucketAcl;
this.bucketName = builder.bucketName;
}
public static Builder builder() {
return new Builder();
}
public static PutBucketAclRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return bucketAcl
*/
public String getBucketAcl() {
return this.bucketAcl;
}
/**
* @return bucketName
*/
public String getBucketName() {
return this.bucketName;
}
public static final class Builder extends Request.Builder {
private String bucketAcl;
private String bucketName;
private Builder() {
super();
}
private Builder(PutBucketAclRequest request) {
super(request);
this.bucketAcl = request.bucketAcl;
this.bucketName = request.bucketName;
}
/**
* The access control list (ACL) of the bucket.
*
* - public-read-write
* - public-read
* - private (default)
*
* This parameter is required.
*
* example:
* private
*/
public Builder bucketAcl(String bucketAcl) {
this.putQueryParameter("BucketAcl", bucketAcl);
this.bucketAcl = bucketAcl;
return this;
}
/**
* The name of the bucket.
* This parameter is required.
*
* example:
* test
*/
public Builder bucketName(String bucketName) {
this.putQueryParameter("BucketName", bucketName);
this.bucketName = bucketName;
return this;
}
@Override
public PutBucketAclRequest build() {
return new PutBucketAclRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy