/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.lightsail.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateBucketRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the bucket to update. *

*/ private String bucketName; /** *

* An object that sets the public accessibility of objects in the specified bucket. *

*/ private AccessRules accessRules; /** *

* Specifies whether to enable or suspend versioning of objects in the bucket. *

*

* The following options can be specified: *

* */ private String versioning; /** *

* An array of strings to specify the Amazon Web Services account IDs that can access the bucket. *

*

* You can give a maximum of 10 Amazon Web Services accounts access to a bucket. *

*/ private java.util.List readonlyAccessAccounts; /** *

* An object that describes the access log configuration for the bucket. *

*/ private BucketAccessLogConfig accessLogConfig; /** *

* The name of the bucket to update. *

* * @param bucketName * The name of the bucket to update. */ public void setBucketName(String bucketName) { this.bucketName = bucketName; } /** *

* The name of the bucket to update. *

* * @return The name of the bucket to update. */ public String getBucketName() { return this.bucketName; } /** *

* The name of the bucket to update. *

* * @param bucketName * The name of the bucket to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBucketRequest withBucketName(String bucketName) { setBucketName(bucketName); return this; } /** *

* An object that sets the public accessibility of objects in the specified bucket. *

* * @param accessRules * An object that sets the public accessibility of objects in the specified bucket. */ public void setAccessRules(AccessRules accessRules) { this.accessRules = accessRules; } /** *

* An object that sets the public accessibility of objects in the specified bucket. *

* * @return An object that sets the public accessibility of objects in the specified bucket. */ public AccessRules getAccessRules() { return this.accessRules; } /** *

* An object that sets the public accessibility of objects in the specified bucket. *

* * @param accessRules * An object that sets the public accessibility of objects in the specified bucket. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateBucketRequest withAccessRules(AccessRules accessRules) { setAccessRules(accessRules); return this; } /** *

* Specifies whether to enable or suspend versioning of objects in the bucket. *

*

* The following options can be specified: *

* * * @param versioning * Specifies whether to enable or suspend versioning of objects in the bucket.

*

* The following options can be specified: *

*