AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
51 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
52 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
53 inline S3DataAccessAssetSourceEntry& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
54 inline S3DataAccessAssetSourceEntry& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
55 inline S3DataAccessAssetSourceEntry& WithBucket(const char* value) { SetBucket(value); return *this;}
57
59
62 inline const Aws::Vector<Aws::String>& GetKeyPrefixes() const{ return m_keyPrefixes; }
63 inline bool KeyPrefixesHasBeenSet() const { return m_keyPrefixesHasBeenSet; }
64 inline void SetKeyPrefixes(const Aws::Vector<Aws::String>& value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes = value; }
65 inline void SetKeyPrefixes(Aws::Vector<Aws::String>&& value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes = std::move(value); }
67 inline S3DataAccessAssetSourceEntry& WithKeyPrefixes(Aws::Vector<Aws::String>&& value) { SetKeyPrefixes(std::move(value)); return *this;}
68 inline S3DataAccessAssetSourceEntry& AddKeyPrefixes(const Aws::String& value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes.push_back(value); return *this; }
69 inline S3DataAccessAssetSourceEntry& AddKeyPrefixes(Aws::String&& value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes.push_back(std::move(value)); return *this; }
70 inline S3DataAccessAssetSourceEntry& AddKeyPrefixes(const char* value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes.push_back(value); return *this; }
72
74
77 inline const Aws::Vector<Aws::String>& GetKeys() const{ return m_keys; }
78 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
79 inline void SetKeys(const Aws::Vector<Aws::String>& value) { m_keysHasBeenSet = true; m_keys = value; }
80 inline void SetKeys(Aws::Vector<Aws::String>&& value) { m_keysHasBeenSet = true; m_keys = std::move(value); }
81 inline S3DataAccessAssetSourceEntry& WithKeys(const Aws::Vector<Aws::String>& value) { SetKeys(value); return *this;}
82 inline S3DataAccessAssetSourceEntry& WithKeys(Aws::Vector<Aws::String>&& value) { SetKeys(std::move(value)); return *this;}
83 inline S3DataAccessAssetSourceEntry& AddKeys(const Aws::String& value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; }
84 inline S3DataAccessAssetSourceEntry& AddKeys(Aws::String&& value) { m_keysHasBeenSet = true; m_keys.push_back(std::move(value)); return *this; }
85 inline S3DataAccessAssetSourceEntry& AddKeys(const char* value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; }
87
89
93 inline const Aws::Vector<KmsKeyToGrant>& GetKmsKeysToGrant() const{ return m_kmsKeysToGrant; }
94 inline bool KmsKeysToGrantHasBeenSet() const { return m_kmsKeysToGrantHasBeenSet; }
95 inline void SetKmsKeysToGrant(const Aws::Vector<KmsKeyToGrant>& value) { m_kmsKeysToGrantHasBeenSet = true; m_kmsKeysToGrant = value; }
96 inline void SetKmsKeysToGrant(Aws::Vector<KmsKeyToGrant>&& value) { m_kmsKeysToGrantHasBeenSet = true; m_kmsKeysToGrant = std::move(value); }
99 inline S3DataAccessAssetSourceEntry& AddKmsKeysToGrant(const KmsKeyToGrant& value) { m_kmsKeysToGrantHasBeenSet = true; m_kmsKeysToGrant.push_back(value); return *this; }
100 inline S3DataAccessAssetSourceEntry& AddKmsKeysToGrant(KmsKeyToGrant&& value) { m_kmsKeysToGrantHasBeenSet = true; m_kmsKeysToGrant.push_back(std::move(value)); return *this; }
102 private:
103
104 Aws::String m_bucket;
105 bool m_bucketHasBeenSet = false;
106
107 Aws::Vector<Aws::String> m_keyPrefixes;
108 bool m_keyPrefixesHasBeenSet = false;
109
111 bool m_keysHasBeenSet = false;
112
113 Aws::Vector<KmsKeyToGrant> m_kmsKeysToGrant;
114 bool m_kmsKeysToGrantHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace DataExchange
119} // namespace Aws
S3DataAccessAssetSourceEntry & WithBucket(const Aws::String &value)
S3DataAccessAssetSourceEntry & AddKeyPrefixes(const Aws::String &value)
S3DataAccessAssetSourceEntry & WithBucket(const char *value)
AWS_DATAEXCHANGE_API S3DataAccessAssetSourceEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
S3DataAccessAssetSourceEntry & WithKmsKeysToGrant(const Aws::Vector< KmsKeyToGrant > &value)
S3DataAccessAssetSourceEntry & WithKmsKeysToGrant(Aws::Vector< KmsKeyToGrant > &&value)
S3DataAccessAssetSourceEntry & AddKeys(Aws::String &&value)
AWS_DATAEXCHANGE_API S3DataAccessAssetSourceEntry(Aws::Utils::Json::JsonView jsonValue)
bool KeysHasBeenSet() const
S3DataAccessAssetSourceEntry & AddKeyPrefixes(Aws::String &&value)
const Aws::Vector< Aws::String > & GetKeyPrefixes() const
S3DataAccessAssetSourceEntry & WithKeyPrefixes(const Aws::Vector< Aws::String > &value)
S3DataAccessAssetSourceEntry & WithKeyPrefixes(Aws::Vector< Aws::String > &&value)
S3DataAccessAssetSourceEntry & WithKeys(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetKeys() const
bool BucketHasBeenSet() const
void SetBucket(const Aws::String &value)
void SetKeys(Aws::Vector< Aws::String > &&value)
const Aws::Vector< KmsKeyToGrant > & GetKmsKeysToGrant() const
void SetBucket(const char *value)
void SetKmsKeysToGrant(Aws::Vector< KmsKeyToGrant > &&value)
void SetKeyPrefixes(Aws::Vector< Aws::String > &&value)
S3DataAccessAssetSourceEntry & WithKeys(const Aws::Vector< Aws::String > &value)
S3DataAccessAssetSourceEntry & WithBucket(Aws::String &&value)
S3DataAccessAssetSourceEntry & AddKmsKeysToGrant(KmsKeyToGrant &&value)
bool KeyPrefixesHasBeenSet() const
void SetKeyPrefixes(const Aws::Vector< Aws::String > &value)
S3DataAccessAssetSourceEntry & AddKeys(const Aws::String &value)
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAEXCHANGE_API S3DataAccessAssetSourceEntry()
void SetKeys(const Aws::Vector< Aws::String > &value)
S3DataAccessAssetSourceEntry & AddKeys(const char *value)
bool KmsKeysToGrantHasBeenSet() const
S3DataAccessAssetSourceEntry & AddKmsKeysToGrant(const KmsKeyToGrant &value)
const Aws::String & GetBucket() const
S3DataAccessAssetSourceEntry & AddKeyPrefixes(const char *value)
void SetKmsKeysToGrant(const Aws::Vector< KmsKeyToGrant > &value)
void SetBucket(Aws::String &&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