/** * 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 { /** *

Source details for an Amazon S3 data access asset.

See Also:

* AWS * API Reference

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket.

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

Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket.

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

Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket.

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

Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket.

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

Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket.

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

Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket.

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

Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket.

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

Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket.

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

Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket.

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

The keys used to create the Amazon S3 data access.

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

The keys used to create the Amazon S3 data access.

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

The keys used to create the Amazon S3 data access.

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

The keys used to create the Amazon S3 data access.

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

The keys used to create the Amazon S3 data access.

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

The keys used to create the Amazon S3 data access.

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

The keys used to create the Amazon S3 data access.

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

The keys used to create the Amazon S3 data access.

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

The keys used to create the Amazon S3 data access.

*/ inline S3DataAccessAssetSourceEntry& AddKeys(const char* value) { m_keysHasBeenSet = true; m_keys.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.

*/ 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.

*/ 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.

*/ 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.

*/ 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.

*/ inline S3DataAccessAssetSourceEntry& 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.

*/ inline S3DataAccessAssetSourceEntry& 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.

*/ inline S3DataAccessAssetSourceEntry& 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.

*/ inline S3DataAccessAssetSourceEntry& 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::Vector m_kmsKeysToGrant; bool m_kmsKeysToGrantHasBeenSet = false; }; } // namespace Model } // namespace DataExchange } // namespace Aws