/* * 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.amplifybackend.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes the read, write, and delete permissions users have against your storage S3 bucket. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BackendStoragePermissions implements Serializable, Cloneable, StructuredPojo { /** ** Lists all authenticated user read, write, and delete permissions for your S3 bucket. *
*/ private java.util.List* Lists all unauthenticated user read, write, and delete permissions for your S3 bucket. *
*/ private java.util.List* Lists all authenticated user read, write, and delete permissions for your S3 bucket. *
* * @return Lists all authenticated user read, write, and delete permissions for your S3 bucket. * @see AuthenticatedElement */ public java.util.List* Lists all authenticated user read, write, and delete permissions for your S3 bucket. *
* * @param authenticated * Lists all authenticated user read, write, and delete permissions for your S3 bucket. * @see AuthenticatedElement */ public void setAuthenticated(java.util.Collection* Lists all authenticated user read, write, and delete permissions for your S3 bucket. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAuthenticated(java.util.Collection)} or {@link #withAuthenticated(java.util.Collection)} if you want * to override the existing values. *
* * @param authenticated * Lists all authenticated user read, write, and delete permissions for your S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. * @see AuthenticatedElement */ public BackendStoragePermissions withAuthenticated(String... authenticated) { if (this.authenticated == null) { setAuthenticated(new java.util.ArrayList* Lists all authenticated user read, write, and delete permissions for your S3 bucket. *
* * @param authenticated * Lists all authenticated user read, write, and delete permissions for your S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. * @see AuthenticatedElement */ public BackendStoragePermissions withAuthenticated(java.util.Collection* Lists all authenticated user read, write, and delete permissions for your S3 bucket. *
* * @param authenticated * Lists all authenticated user read, write, and delete permissions for your S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. * @see AuthenticatedElement */ public BackendStoragePermissions withAuthenticated(AuthenticatedElement... authenticated) { java.util.ArrayList* Lists all unauthenticated user read, write, and delete permissions for your S3 bucket. *
* * @return Lists all unauthenticated user read, write, and delete permissions for your S3 bucket. * @see UnAuthenticatedElement */ public java.util.List* Lists all unauthenticated user read, write, and delete permissions for your S3 bucket. *
* * @param unAuthenticated * Lists all unauthenticated user read, write, and delete permissions for your S3 bucket. * @see UnAuthenticatedElement */ public void setUnAuthenticated(java.util.Collection* Lists all unauthenticated user read, write, and delete permissions for your S3 bucket. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUnAuthenticated(java.util.Collection)} or {@link #withUnAuthenticated(java.util.Collection)} if you * want to override the existing values. *
* * @param unAuthenticated * Lists all unauthenticated user read, write, and delete permissions for your S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. * @see UnAuthenticatedElement */ public BackendStoragePermissions withUnAuthenticated(String... unAuthenticated) { if (this.unAuthenticated == null) { setUnAuthenticated(new java.util.ArrayList* Lists all unauthenticated user read, write, and delete permissions for your S3 bucket. *
* * @param unAuthenticated * Lists all unauthenticated user read, write, and delete permissions for your S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. * @see UnAuthenticatedElement */ public BackendStoragePermissions withUnAuthenticated(java.util.Collection* Lists all unauthenticated user read, write, and delete permissions for your S3 bucket. *
* * @param unAuthenticated * Lists all unauthenticated user read, write, and delete permissions for your S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. * @see UnAuthenticatedElement */ public BackendStoragePermissions withUnAuthenticated(UnAuthenticatedElement... unAuthenticated) { java.util.ArrayList