AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
S3DataAccessAssetSourceEntry.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dataexchange/model/KmsKeyToGrant.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataExchange
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DATAEXCHANGE_API S3DataAccessAssetSourceEntry() = default;
40 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetBucket() const { return m_bucket; }
49 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
50 template<typename BucketT = Aws::String>
51 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
52 template<typename BucketT = Aws::String>
53 S3DataAccessAssetSourceEntry& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetKeyPrefixes() const { return m_keyPrefixes; }
61 inline bool KeyPrefixesHasBeenSet() const { return m_keyPrefixesHasBeenSet; }
62 template<typename KeyPrefixesT = Aws::Vector<Aws::String>>
63 void SetKeyPrefixes(KeyPrefixesT&& value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes = std::forward<KeyPrefixesT>(value); }
64 template<typename KeyPrefixesT = Aws::Vector<Aws::String>>
65 S3DataAccessAssetSourceEntry& WithKeyPrefixes(KeyPrefixesT&& value) { SetKeyPrefixes(std::forward<KeyPrefixesT>(value)); return *this;}
66 template<typename KeyPrefixesT = Aws::String>
67 S3DataAccessAssetSourceEntry& AddKeyPrefixes(KeyPrefixesT&& value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes.emplace_back(std::forward<KeyPrefixesT>(value)); return *this; }
69
71
74 inline const Aws::Vector<Aws::String>& GetKeys() const { return m_keys; }
75 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
76 template<typename KeysT = Aws::Vector<Aws::String>>
77 void SetKeys(KeysT&& value) { m_keysHasBeenSet = true; m_keys = std::forward<KeysT>(value); }
78 template<typename KeysT = Aws::Vector<Aws::String>>
79 S3DataAccessAssetSourceEntry& WithKeys(KeysT&& value) { SetKeys(std::forward<KeysT>(value)); return *this;}
80 template<typename KeysT = Aws::String>
81 S3DataAccessAssetSourceEntry& AddKeys(KeysT&& value) { m_keysHasBeenSet = true; m_keys.emplace_back(std::forward<KeysT>(value)); return *this; }
83
85
89 inline const Aws::Vector<KmsKeyToGrant>& GetKmsKeysToGrant() const { return m_kmsKeysToGrant; }
90 inline bool KmsKeysToGrantHasBeenSet() const { return m_kmsKeysToGrantHasBeenSet; }
91 template<typename KmsKeysToGrantT = Aws::Vector<KmsKeyToGrant>>
92 void SetKmsKeysToGrant(KmsKeysToGrantT&& value) { m_kmsKeysToGrantHasBeenSet = true; m_kmsKeysToGrant = std::forward<KmsKeysToGrantT>(value); }
93 template<typename KmsKeysToGrantT = Aws::Vector<KmsKeyToGrant>>
94 S3DataAccessAssetSourceEntry& WithKmsKeysToGrant(KmsKeysToGrantT&& value) { SetKmsKeysToGrant(std::forward<KmsKeysToGrantT>(value)); return *this;}
95 template<typename KmsKeysToGrantT = KmsKeyToGrant>
96 S3DataAccessAssetSourceEntry& AddKmsKeysToGrant(KmsKeysToGrantT&& value) { m_kmsKeysToGrantHasBeenSet = true; m_kmsKeysToGrant.emplace_back(std::forward<KmsKeysToGrantT>(value)); return *this; }
98 private:
99
100 Aws::String m_bucket;
101 bool m_bucketHasBeenSet = false;
102
103 Aws::Vector<Aws::String> m_keyPrefixes;
104 bool m_keyPrefixesHasBeenSet = false;
105
107 bool m_keysHasBeenSet = false;
108
109 Aws::Vector<KmsKeyToGrant> m_kmsKeysToGrant;
110 bool m_kmsKeysToGrantHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace DataExchange
115} // namespace Aws
S3DataAccessAssetSourceEntry & WithKeyPrefixes(KeyPrefixesT &&value)
void SetKmsKeysToGrant(KmsKeysToGrantT &&value)
AWS_DATAEXCHANGE_API S3DataAccessAssetSourceEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAEXCHANGE_API S3DataAccessAssetSourceEntry(Aws::Utils::Json::JsonView jsonValue)
S3DataAccessAssetSourceEntry & WithBucket(BucketT &&value)
bool KeysHasBeenSet() const
const Aws::Vector< Aws::String > & GetKeyPrefixes() const
S3DataAccessAssetSourceEntry & AddKeys(KeysT &&value)
void SetKeys(KeysT &&value)
void SetBucket(BucketT &&value)
AWS_DATAEXCHANGE_API S3DataAccessAssetSourceEntry()=default
const Aws::Vector< Aws::String > & GetKeys() const
bool BucketHasBeenSet() const
const Aws::Vector< KmsKeyToGrant > & GetKmsKeysToGrant() const
S3DataAccessAssetSourceEntry & AddKmsKeysToGrant(KmsKeysToGrantT &&value)
S3DataAccessAssetSourceEntry & WithKmsKeysToGrant(KmsKeysToGrantT &&value)
bool KeyPrefixesHasBeenSet() const
S3DataAccessAssetSourceEntry & WithKeys(KeysT &&value)
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
bool KmsKeysToGrantHasBeenSet() const
S3DataAccessAssetSourceEntry & AddKeyPrefixes(KeyPrefixesT &&value)
const Aws::String & GetBucket() const
void SetKeyPrefixes(KeyPrefixesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue