/* * 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.dataexchange.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Source details for an Amazon S3 data access asset. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class S3DataAccessAssetSourceEntry implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access. *
*/ private String bucket; /** ** Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket. *
*/ private java.util.List* The keys used to create the Amazon S3 data access. *
*/ private java.util.List* List of AWS KMS CMKs (Key Management System Customer Managed Keys) and ARNs used to encrypt S3 objects being * shared in this S3 Data Access asset. *
*/ private java.util.List* The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access. *
* * @param bucket * The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access. */ public void setBucket(String bucket) { this.bucket = bucket; } /** ** The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access. *
* * @return The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access. */ public String getBucket() { return this.bucket; } /** ** The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access. *
* * @param bucket * The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access. * @return Returns a reference to this object so that method calls can be chained together. */ public S3DataAccessAssetSourceEntry withBucket(String bucket) { setBucket(bucket); return this; } /** ** Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket. *
* * @return Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket. */ public java.util.List* Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket. *
* * @param keyPrefixes * Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket. */ public void setKeyPrefixes(java.util.Collection* Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setKeyPrefixes(java.util.Collection)} or {@link #withKeyPrefixes(java.util.Collection)} if you want to * override the existing values. *
* * @param keyPrefixes * Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. */ public S3DataAccessAssetSourceEntry withKeyPrefixes(String... keyPrefixes) { if (this.keyPrefixes == null) { setKeyPrefixes(new java.util.ArrayList* Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket. *
* * @param keyPrefixes * Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. */ public S3DataAccessAssetSourceEntry withKeyPrefixes(java.util.Collection* The keys used to create the Amazon S3 data access. *
* * @return The keys used to create the Amazon S3 data access. */ public java.util.List* The keys used to create the Amazon S3 data access. *
* * @param keys * The keys used to create the Amazon S3 data access. */ public void setKeys(java.util.Collection* The keys used to create the Amazon S3 data access. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setKeys(java.util.Collection)} or {@link #withKeys(java.util.Collection)} if you want to override the * existing values. *
* * @param keys * The keys used to create the Amazon S3 data access. * @return Returns a reference to this object so that method calls can be chained together. */ public S3DataAccessAssetSourceEntry withKeys(String... keys) { if (this.keys == null) { setKeys(new java.util.ArrayList* The keys used to create the Amazon S3 data access. *
* * @param keys * The keys used to create the Amazon S3 data access. * @return Returns a reference to this object so that method calls can be chained together. */ public S3DataAccessAssetSourceEntry withKeys(java.util.Collection* List of AWS KMS CMKs (Key Management System Customer Managed Keys) and ARNs used to encrypt S3 objects being * shared in this S3 Data Access asset. *
* * @return List of AWS KMS CMKs (Key Management System Customer Managed Keys) and ARNs used to encrypt S3 objects * being shared in this S3 Data Access asset. */ public java.util.List* List of AWS KMS CMKs (Key Management System Customer Managed Keys) and ARNs used to encrypt S3 objects being * shared in this S3 Data Access asset. *
* * @param kmsKeysToGrant * List of AWS KMS CMKs (Key Management System Customer Managed Keys) and ARNs used to encrypt S3 objects * being shared in this S3 Data Access asset. */ public void setKmsKeysToGrant(java.util.Collection* List of AWS KMS CMKs (Key Management System Customer Managed Keys) and ARNs used to encrypt S3 objects being * shared in this S3 Data Access asset. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setKmsKeysToGrant(java.util.Collection)} or {@link #withKmsKeysToGrant(java.util.Collection)} if you want * to override the existing values. *
* * @param kmsKeysToGrant * List of AWS KMS CMKs (Key Management System Customer Managed Keys) and ARNs used to encrypt S3 objects * being shared in this S3 Data Access asset. * @return Returns a reference to this object so that method calls can be chained together. */ public S3DataAccessAssetSourceEntry withKmsKeysToGrant(KmsKeyToGrant... kmsKeysToGrant) { if (this.kmsKeysToGrant == null) { setKmsKeysToGrant(new java.util.ArrayList* List of AWS KMS CMKs (Key Management System Customer Managed Keys) and ARNs used to encrypt S3 objects being * shared in this S3 Data Access asset. *
* * @param kmsKeysToGrant * List of AWS KMS CMKs (Key Management System Customer Managed Keys) and ARNs used to encrypt S3 objects * being shared in this S3 Data Access asset. * @return Returns a reference to this object so that method calls can be chained together. */ public S3DataAccessAssetSourceEntry withKmsKeysToGrant(java.util.Collection