/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DataExchange { namespace Model { /** *

The Amazon S3 data access that is the asset.

See Also:

AWS * API Reference

*/ class S3DataAccessAsset { public: AWS_DATAEXCHANGE_API S3DataAccessAsset(); AWS_DATAEXCHANGE_API S3DataAccessAsset(Aws::Utils::Json::JsonView jsonValue); AWS_DATAEXCHANGE_API S3DataAccessAsset& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon S3 bucket hosting data to be shared in the S3 data access.

*/ inline const Aws::String& GetBucket() const{ return m_bucket; } /** *

The Amazon S3 bucket hosting data to be shared in the S3 data access.

*/ inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } /** *

The Amazon S3 bucket hosting data to be shared in the S3 data access.

*/ inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } /** *

The Amazon S3 bucket hosting data to be shared in the S3 data access.

*/ inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } /** *

The Amazon S3 bucket hosting data to be shared in the S3 data access.

*/ inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } /** *

The Amazon S3 bucket hosting data to be shared in the S3 data access.

*/ inline S3DataAccessAsset& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} /** *

The Amazon S3 bucket hosting data to be shared in the S3 data access.

*/ inline S3DataAccessAsset& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} /** *

The Amazon S3 bucket hosting data to be shared in the S3 data access.

*/ inline S3DataAccessAsset& WithBucket(const char* value) { SetBucket(value); return *this;} /** *

The Amazon S3 bucket used for hosting shared data in the Amazon S3 data * access.

*/ inline const Aws::Vector& GetKeyPrefixes() const{ return m_keyPrefixes; } /** *

The Amazon S3 bucket used for hosting shared data in the Amazon S3 data * access.

*/ inline bool KeyPrefixesHasBeenSet() const { return m_keyPrefixesHasBeenSet; } /** *

The Amazon S3 bucket used for hosting shared data in the Amazon S3 data * access.

*/ inline void SetKeyPrefixes(const Aws::Vector& value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes = value; } /** *

The Amazon S3 bucket used for hosting shared data in the Amazon S3 data * access.

*/ inline void SetKeyPrefixes(Aws::Vector&& value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes = std::move(value); } /** *

The Amazon S3 bucket used for hosting shared data in the Amazon S3 data * access.

*/ inline S3DataAccessAsset& WithKeyPrefixes(const Aws::Vector& value) { SetKeyPrefixes(value); return *this;} /** *

The Amazon S3 bucket used for hosting shared data in the Amazon S3 data * access.

*/ inline S3DataAccessAsset& WithKeyPrefixes(Aws::Vector&& value) { SetKeyPrefixes(std::move(value)); return *this;} /** *

The Amazon S3 bucket used for hosting shared data in the Amazon S3 data * access.

*/ inline S3DataAccessAsset& AddKeyPrefixes(const Aws::String& value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes.push_back(value); return *this; } /** *

The Amazon S3 bucket used for hosting shared data in the Amazon S3 data * access.

*/ inline S3DataAccessAsset& AddKeyPrefixes(Aws::String&& value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes.push_back(std::move(value)); return *this; } /** *

The Amazon S3 bucket used for hosting shared data in the Amazon S3 data * access.

*/ inline S3DataAccessAsset& AddKeyPrefixes(const char* value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes.push_back(value); return *this; } /** *

S3 keys made available using this asset.

*/ inline const Aws::Vector& GetKeys() const{ return m_keys; } /** *

S3 keys made available using this asset.

*/ inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; } /** *

S3 keys made available using this asset.

*/ inline void SetKeys(const Aws::Vector& value) { m_keysHasBeenSet = true; m_keys = value; } /** *

S3 keys made available using this asset.

*/ inline void SetKeys(Aws::Vector&& value) { m_keysHasBeenSet = true; m_keys = std::move(value); } /** *

S3 keys made available using this asset.

*/ inline S3DataAccessAsset& WithKeys(const Aws::Vector& value) { SetKeys(value); return *this;} /** *

S3 keys made available using this asset.

*/ inline S3DataAccessAsset& WithKeys(Aws::Vector&& value) { SetKeys(std::move(value)); return *this;} /** *

S3 keys made available using this asset.

*/ inline S3DataAccessAsset& AddKeys(const Aws::String& value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; } /** *

S3 keys made available using this asset.

*/ inline S3DataAccessAsset& AddKeys(Aws::String&& value) { m_keysHasBeenSet = true; m_keys.push_back(std::move(value)); return *this; } /** *

S3 keys made available using this asset.

*/ inline S3DataAccessAsset& AddKeys(const char* value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; } /** *

The automatically-generated bucket-style alias for your Amazon S3 Access * Point. Customers can access their entitled data using the S3 Access Point * alias.

*/ inline const Aws::String& GetS3AccessPointAlias() const{ return m_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.

*/ inline bool S3AccessPointAliasHasBeenSet() const { return m_s3AccessPointAliasHasBeenSet; } /** *

The automatically-generated bucket-style alias for your Amazon S3 Access * Point. Customers can access their entitled data using the S3 Access Point * alias.

*/ inline void SetS3AccessPointAlias(const Aws::String& value) { m_s3AccessPointAliasHasBeenSet = true; m_s3AccessPointAlias = value; } /** *

The automatically-generated bucket-style alias for your Amazon S3 Access * Point. Customers can access their entitled data using the S3 Access Point * alias.

*/ inline void SetS3AccessPointAlias(Aws::String&& value) { m_s3AccessPointAliasHasBeenSet = true; m_s3AccessPointAlias = std::move(value); } /** *

The automatically-generated bucket-style alias for your Amazon S3 Access * Point. Customers can access their entitled data using the S3 Access Point * alias.

*/ inline void SetS3AccessPointAlias(const char* value) { m_s3AccessPointAliasHasBeenSet = true; m_s3AccessPointAlias.assign(value); } /** *

The automatically-generated bucket-style alias for your Amazon S3 Access * Point. Customers can access their entitled data using the S3 Access Point * alias.

*/ inline S3DataAccessAsset& WithS3AccessPointAlias(const Aws::String& value) { SetS3AccessPointAlias(value); return *this;} /** *

The automatically-generated bucket-style alias for your Amazon S3 Access * Point. Customers can access their entitled data using the S3 Access Point * alias.

*/ inline S3DataAccessAsset& WithS3AccessPointAlias(Aws::String&& value) { SetS3AccessPointAlias(std::move(value)); return *this;} /** *

The automatically-generated bucket-style alias for your Amazon S3 Access * Point. Customers can access their entitled data using the S3 Access Point * alias.

*/ inline S3DataAccessAsset& WithS3AccessPointAlias(const char* value) { SetS3AccessPointAlias(value); return *this;} /** *

The ARN for your Amazon S3 Access Point. Customers can also access their * entitled data using the S3 Access Point ARN.

*/ inline const Aws::String& GetS3AccessPointArn() const{ return m_s3AccessPointArn; } /** *

The ARN for your Amazon S3 Access Point. Customers can also access their * entitled data using the S3 Access Point ARN.

*/ inline bool S3AccessPointArnHasBeenSet() const { return m_s3AccessPointArnHasBeenSet; } /** *

The ARN for your Amazon S3 Access Point. Customers can also access their * entitled data using the S3 Access Point ARN.

*/ inline void SetS3AccessPointArn(const Aws::String& value) { m_s3AccessPointArnHasBeenSet = true; m_s3AccessPointArn = value; } /** *

The ARN for your Amazon S3 Access Point. Customers can also access their * entitled data using the S3 Access Point ARN.

*/ inline void SetS3AccessPointArn(Aws::String&& value) { m_s3AccessPointArnHasBeenSet = true; m_s3AccessPointArn = std::move(value); } /** *

The ARN for your Amazon S3 Access Point. Customers can also access their * entitled data using the S3 Access Point ARN.

*/ inline void SetS3AccessPointArn(const char* value) { m_s3AccessPointArnHasBeenSet = true; m_s3AccessPointArn.assign(value); } /** *

The ARN for your Amazon S3 Access Point. Customers can also access their * entitled data using the S3 Access Point ARN.

*/ inline S3DataAccessAsset& WithS3AccessPointArn(const Aws::String& value) { SetS3AccessPointArn(value); return *this;} /** *

The ARN for your Amazon S3 Access Point. Customers can also access their * entitled data using the S3 Access Point ARN.

*/ inline S3DataAccessAsset& WithS3AccessPointArn(Aws::String&& value) { SetS3AccessPointArn(std::move(value)); return *this;} /** *

The ARN for your Amazon S3 Access Point. Customers can also access their * entitled data using the S3 Access Point ARN.

*/ inline S3DataAccessAsset& WithS3AccessPointArn(const char* value) { SetS3AccessPointArn(value); 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.

*/ inline const Aws::Vector& GetKmsKeysToGrant() const{ return m_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.

*/ inline bool KmsKeysToGrantHasBeenSet() const { return m_kmsKeysToGrantHasBeenSet; } /** *

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.

*/ inline void SetKmsKeysToGrant(const Aws::Vector& value) { m_kmsKeysToGrantHasBeenSet = true; m_kmsKeysToGrant = value; } /** *

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.

*/ inline void SetKmsKeysToGrant(Aws::Vector&& value) { m_kmsKeysToGrantHasBeenSet = true; m_kmsKeysToGrant = std::move(value); } /** *

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.

*/ inline S3DataAccessAsset& WithKmsKeysToGrant(const Aws::Vector& value) { SetKmsKeysToGrant(value); 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.

*/ inline S3DataAccessAsset& WithKmsKeysToGrant(Aws::Vector&& value) { SetKmsKeysToGrant(std::move(value)); 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.

*/ inline S3DataAccessAsset& AddKmsKeysToGrant(const KmsKeyToGrant& value) { m_kmsKeysToGrantHasBeenSet = true; m_kmsKeysToGrant.push_back(value); 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.

*/ inline S3DataAccessAsset& AddKmsKeysToGrant(KmsKeyToGrant&& value) { m_kmsKeysToGrantHasBeenSet = true; m_kmsKeysToGrant.push_back(std::move(value)); return *this; } private: Aws::String m_bucket; bool m_bucketHasBeenSet = false; Aws::Vector m_keyPrefixes; bool m_keyPrefixesHasBeenSet = false; Aws::Vector m_keys; bool m_keysHasBeenSet = false; Aws::String m_s3AccessPointAlias; bool m_s3AccessPointAliasHasBeenSet = false; Aws::String m_s3AccessPointArn; bool m_s3AccessPointArnHasBeenSet = false; Aws::Vector m_kmsKeysToGrant; bool m_kmsKeysToGrantHasBeenSet = false; }; } // namespace Model } // namespace DataExchange } // namespace Aws