/* * 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; /** *
* The Amazon S3 data access that is the asset. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class S3DataAccessAsset implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon S3 bucket hosting data to be shared in the S3 data access. *
*/ private String bucket; /** ** The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access. *
*/ private java.util.List* S3 keys made available using this asset. *
*/ private java.util.List* The automatically-generated bucket-style alias for your Amazon S3 Access Point. Customers can access their * entitled data using the S3 Access Point alias. *
*/ private String s3AccessPointAlias; /** ** The ARN for your Amazon S3 Access Point. Customers can also access their entitled data using the S3 Access Point * ARN. *
*/ private String s3AccessPointArn; /** ** 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. Providers must include all AWS KMS keys used to encrypt these shared S3 * objects. *
*/ private java.util.List* The Amazon S3 bucket hosting data to be shared in the S3 data access. *
* * @param bucket * The Amazon S3 bucket hosting data to be shared in the S3 data access. */ public void setBucket(String bucket) { this.bucket = bucket; } /** ** The Amazon S3 bucket hosting data to be shared in the S3 data access. *
* * @return The Amazon S3 bucket hosting data to be shared in the S3 data access. */ public String getBucket() { return this.bucket; } /** ** The Amazon S3 bucket hosting data to be shared in the S3 data access. *
* * @param bucket * The Amazon S3 bucket hosting data to be shared in the S3 data access. * @return Returns a reference to this object so that method calls can be chained together. */ public S3DataAccessAsset withBucket(String bucket) { setBucket(bucket); return this; } /** ** 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 java.util.List* The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access. *
* * @param keyPrefixes * The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access. */ public void setKeyPrefixes(java.util.Collection* The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access. *
** 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 * 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 S3DataAccessAsset withKeyPrefixes(String... keyPrefixes) { if (this.keyPrefixes == null) { setKeyPrefixes(new java.util.ArrayList* The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access. *
* * @param keyPrefixes * 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 S3DataAccessAsset withKeyPrefixes(java.util.Collection* S3 keys made available using this asset. *
* * @return S3 keys made available using this asset. */ public java.util.List* S3 keys made available using this asset. *
* * @param keys * S3 keys made available using this asset. */ public void setKeys(java.util.Collection* S3 keys made available using this asset. *
** 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 * S3 keys made available using this asset. * @return Returns a reference to this object so that method calls can be chained together. */ public S3DataAccessAsset withKeys(String... keys) { if (this.keys == null) { setKeys(new java.util.ArrayList* S3 keys made available using this asset. *
* * @param keys * S3 keys made available using this asset. * @return Returns a reference to this object so that method calls can be chained together. */ public S3DataAccessAsset withKeys(java.util.Collection* The automatically-generated bucket-style alias for your Amazon S3 Access Point. Customers can access their * entitled data using the S3 Access Point alias. *
* * @param s3AccessPointAlias * The automatically-generated bucket-style alias for your Amazon S3 Access Point. Customers can access their * entitled data using the S3 Access Point alias. */ public void setS3AccessPointAlias(String s3AccessPointAlias) { this.s3AccessPointAlias = s3AccessPointAlias; } /** ** The automatically-generated bucket-style alias for your Amazon S3 Access Point. Customers can access their * entitled data using the S3 Access Point alias. *
* * @return The automatically-generated bucket-style alias for your Amazon S3 Access Point. Customers can access * their entitled data using the S3 Access Point alias. */ public String getS3AccessPointAlias() { return this.s3AccessPointAlias; } /** ** The automatically-generated bucket-style alias for your Amazon S3 Access Point. Customers can access their * entitled data using the S3 Access Point alias. *
* * @param s3AccessPointAlias * The automatically-generated bucket-style alias for your Amazon S3 Access Point. Customers can access their * entitled data using the S3 Access Point alias. * @return Returns a reference to this object so that method calls can be chained together. */ public S3DataAccessAsset withS3AccessPointAlias(String s3AccessPointAlias) { setS3AccessPointAlias(s3AccessPointAlias); return this; } /** ** The ARN for your Amazon S3 Access Point. Customers can also access their entitled data using the S3 Access Point * ARN. *
* * @param s3AccessPointArn * The ARN for your Amazon S3 Access Point. Customers can also access their entitled data using the S3 Access * Point ARN. */ public void setS3AccessPointArn(String s3AccessPointArn) { this.s3AccessPointArn = s3AccessPointArn; } /** ** The ARN for your Amazon S3 Access Point. Customers can also access their entitled data using the S3 Access Point * ARN. *
* * @return The ARN for your Amazon S3 Access Point. Customers can also access their entitled data using the S3 * Access Point ARN. */ public String getS3AccessPointArn() { return this.s3AccessPointArn; } /** ** The ARN for your Amazon S3 Access Point. Customers can also access their entitled data using the S3 Access Point * ARN. *
* * @param s3AccessPointArn * The ARN for your Amazon S3 Access Point. Customers can also access their entitled data using the S3 Access * Point ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public S3DataAccessAsset withS3AccessPointArn(String s3AccessPointArn) { setS3AccessPointArn(s3AccessPointArn); return this; } /** ** 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. Providers must include all AWS KMS keys used to encrypt these shared S3 * objects. *
* * @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. Providers must include all AWS KMS keys used to encrypt these * shared S3 objects. */ 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. Providers must include all AWS KMS keys used to encrypt these shared S3 * objects. *
* * @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. Providers must include all AWS KMS keys used to encrypt these * shared S3 objects. */ 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. Providers must include all AWS KMS keys used to encrypt these shared S3 * objects. *
** 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. Providers must include all AWS KMS keys used to encrypt these * shared S3 objects. * @return Returns a reference to this object so that method calls can be chained together. */ public S3DataAccessAsset 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. Providers must include all AWS KMS keys used to encrypt these shared S3 * objects. *
* * @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. Providers must include all AWS KMS keys used to encrypt these * shared S3 objects. * @return Returns a reference to this object so that method calls can be chained together. */ public S3DataAccessAsset withKmsKeysToGrant(java.util.Collection