AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3DataAccessAsset.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
34 {
35 public:
36 AWS_DATAEXCHANGE_API S3DataAccessAsset();
37 AWS_DATAEXCHANGE_API S3DataAccessAsset(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATAEXCHANGE_API S3DataAccessAsset& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetBucket() const{ return m_bucket; }
47 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
48 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
49 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
50 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
51 inline S3DataAccessAsset& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
52 inline S3DataAccessAsset& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
53 inline S3DataAccessAsset& WithBucket(const char* value) { SetBucket(value); return *this;}
55
57
61 inline const Aws::Vector<Aws::String>& GetKeyPrefixes() const{ return m_keyPrefixes; }
62 inline bool KeyPrefixesHasBeenSet() const { return m_keyPrefixesHasBeenSet; }
63 inline void SetKeyPrefixes(const Aws::Vector<Aws::String>& value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes = value; }
64 inline void SetKeyPrefixes(Aws::Vector<Aws::String>&& value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes = std::move(value); }
65 inline S3DataAccessAsset& WithKeyPrefixes(const Aws::Vector<Aws::String>& value) { SetKeyPrefixes(value); return *this;}
66 inline S3DataAccessAsset& WithKeyPrefixes(Aws::Vector<Aws::String>&& value) { SetKeyPrefixes(std::move(value)); return *this;}
67 inline S3DataAccessAsset& AddKeyPrefixes(const Aws::String& value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes.push_back(value); return *this; }
68 inline S3DataAccessAsset& AddKeyPrefixes(Aws::String&& value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes.push_back(std::move(value)); return *this; }
69 inline S3DataAccessAsset& AddKeyPrefixes(const char* value) { m_keyPrefixesHasBeenSet = true; m_keyPrefixes.push_back(value); return *this; }
71
73
76 inline const Aws::Vector<Aws::String>& GetKeys() const{ return m_keys; }
77 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
78 inline void SetKeys(const Aws::Vector<Aws::String>& value) { m_keysHasBeenSet = true; m_keys = value; }
79 inline void SetKeys(Aws::Vector<Aws::String>&& value) { m_keysHasBeenSet = true; m_keys = std::move(value); }
80 inline S3DataAccessAsset& WithKeys(const Aws::Vector<Aws::String>& value) { SetKeys(value); return *this;}
81 inline S3DataAccessAsset& WithKeys(Aws::Vector<Aws::String>&& value) { SetKeys(std::move(value)); return *this;}
82 inline S3DataAccessAsset& AddKeys(const Aws::String& value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; }
83 inline S3DataAccessAsset& AddKeys(Aws::String&& value) { m_keysHasBeenSet = true; m_keys.push_back(std::move(value)); return *this; }
84 inline S3DataAccessAsset& AddKeys(const char* value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; }
86
88
93 inline const Aws::String& GetS3AccessPointAlias() const{ return m_s3AccessPointAlias; }
94 inline bool S3AccessPointAliasHasBeenSet() const { return m_s3AccessPointAliasHasBeenSet; }
95 inline void SetS3AccessPointAlias(const Aws::String& value) { m_s3AccessPointAliasHasBeenSet = true; m_s3AccessPointAlias = value; }
96 inline void SetS3AccessPointAlias(Aws::String&& value) { m_s3AccessPointAliasHasBeenSet = true; m_s3AccessPointAlias = std::move(value); }
97 inline void SetS3AccessPointAlias(const char* value) { m_s3AccessPointAliasHasBeenSet = true; m_s3AccessPointAlias.assign(value); }
98 inline S3DataAccessAsset& WithS3AccessPointAlias(const Aws::String& value) { SetS3AccessPointAlias(value); return *this;}
99 inline S3DataAccessAsset& WithS3AccessPointAlias(Aws::String&& value) { SetS3AccessPointAlias(std::move(value)); return *this;}
100 inline S3DataAccessAsset& WithS3AccessPointAlias(const char* value) { SetS3AccessPointAlias(value); return *this;}
102
104
108 inline const Aws::String& GetS3AccessPointArn() const{ return m_s3AccessPointArn; }
109 inline bool S3AccessPointArnHasBeenSet() const { return m_s3AccessPointArnHasBeenSet; }
110 inline void SetS3AccessPointArn(const Aws::String& value) { m_s3AccessPointArnHasBeenSet = true; m_s3AccessPointArn = value; }
111 inline void SetS3AccessPointArn(Aws::String&& value) { m_s3AccessPointArnHasBeenSet = true; m_s3AccessPointArn = std::move(value); }
112 inline void SetS3AccessPointArn(const char* value) { m_s3AccessPointArnHasBeenSet = true; m_s3AccessPointArn.assign(value); }
113 inline S3DataAccessAsset& WithS3AccessPointArn(const Aws::String& value) { SetS3AccessPointArn(value); return *this;}
114 inline S3DataAccessAsset& WithS3AccessPointArn(Aws::String&& value) { SetS3AccessPointArn(std::move(value)); return *this;}
115 inline S3DataAccessAsset& WithS3AccessPointArn(const char* value) { SetS3AccessPointArn(value); return *this;}
117
119
124 inline const Aws::Vector<KmsKeyToGrant>& GetKmsKeysToGrant() const{ return m_kmsKeysToGrant; }
125 inline bool KmsKeysToGrantHasBeenSet() const { return m_kmsKeysToGrantHasBeenSet; }
126 inline void SetKmsKeysToGrant(const Aws::Vector<KmsKeyToGrant>& value) { m_kmsKeysToGrantHasBeenSet = true; m_kmsKeysToGrant = value; }
127 inline void SetKmsKeysToGrant(Aws::Vector<KmsKeyToGrant>&& value) { m_kmsKeysToGrantHasBeenSet = true; m_kmsKeysToGrant = std::move(value); }
129 inline S3DataAccessAsset& WithKmsKeysToGrant(Aws::Vector<KmsKeyToGrant>&& value) { SetKmsKeysToGrant(std::move(value)); return *this;}
130 inline S3DataAccessAsset& AddKmsKeysToGrant(const KmsKeyToGrant& value) { m_kmsKeysToGrantHasBeenSet = true; m_kmsKeysToGrant.push_back(value); return *this; }
131 inline S3DataAccessAsset& AddKmsKeysToGrant(KmsKeyToGrant&& value) { m_kmsKeysToGrantHasBeenSet = true; m_kmsKeysToGrant.push_back(std::move(value)); return *this; }
133 private:
134
135 Aws::String m_bucket;
136 bool m_bucketHasBeenSet = false;
137
138 Aws::Vector<Aws::String> m_keyPrefixes;
139 bool m_keyPrefixesHasBeenSet = false;
140
142 bool m_keysHasBeenSet = false;
143
144 Aws::String m_s3AccessPointAlias;
145 bool m_s3AccessPointAliasHasBeenSet = false;
146
147 Aws::String m_s3AccessPointArn;
148 bool m_s3AccessPointArnHasBeenSet = false;
149
150 Aws::Vector<KmsKeyToGrant> m_kmsKeysToGrant;
151 bool m_kmsKeysToGrantHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace DataExchange
156} // namespace Aws
S3DataAccessAsset & AddKeyPrefixes(const Aws::String &value)
AWS_DATAEXCHANGE_API S3DataAccessAsset(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetS3AccessPointAlias() const
S3DataAccessAsset & WithKmsKeysToGrant(const Aws::Vector< KmsKeyToGrant > &value)
S3DataAccessAsset & WithKeys(const Aws::Vector< Aws::String > &value)
S3DataAccessAsset & WithS3AccessPointAlias(const char *value)
S3DataAccessAsset & WithBucket(const char *value)
S3DataAccessAsset & AddKeys(Aws::String &&value)
S3DataAccessAsset & WithS3AccessPointArn(const Aws::String &value)
void SetBucket(const Aws::String &value)
void SetS3AccessPointArn(const Aws::String &value)
S3DataAccessAsset & AddKeys(const Aws::String &value)
const Aws::String & GetS3AccessPointArn() const
S3DataAccessAsset & AddKmsKeysToGrant(KmsKeyToGrant &&value)
void SetKmsKeysToGrant(Aws::Vector< KmsKeyToGrant > &&value)
S3DataAccessAsset & AddKeyPrefixes(Aws::String &&value)
S3DataAccessAsset & WithBucket(Aws::String &&value)
S3DataAccessAsset & AddKeyPrefixes(const char *value)
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
S3DataAccessAsset & AddKeys(const char *value)
const Aws::Vector< KmsKeyToGrant > & GetKmsKeysToGrant() const
const Aws::Vector< Aws::String > & GetKeyPrefixes() const
void SetKmsKeysToGrant(const Aws::Vector< KmsKeyToGrant > &value)
S3DataAccessAsset & WithS3AccessPointArn(Aws::String &&value)
AWS_DATAEXCHANGE_API S3DataAccessAsset & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKeys(const Aws::Vector< Aws::String > &value)
void SetKeyPrefixes(Aws::Vector< Aws::String > &&value)
S3DataAccessAsset & WithKmsKeysToGrant(Aws::Vector< KmsKeyToGrant > &&value)
S3DataAccessAsset & WithKeyPrefixes(const Aws::Vector< Aws::String > &value)
S3DataAccessAsset & WithBucket(const Aws::String &value)
S3DataAccessAsset & WithS3AccessPointAlias(const Aws::String &value)
void SetS3AccessPointAlias(const Aws::String &value)
void SetKeyPrefixes(const Aws::Vector< Aws::String > &value)
S3DataAccessAsset & WithS3AccessPointArn(const char *value)
void SetKeys(Aws::Vector< Aws::String > &&value)
S3DataAccessAsset & AddKmsKeysToGrant(const KmsKeyToGrant &value)
S3DataAccessAsset & WithS3AccessPointAlias(Aws::String &&value)
S3DataAccessAsset & WithKeys(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetKeys() const
S3DataAccessAsset & WithKeyPrefixes(Aws::Vector< 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