AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3Location.h
1
6#pragma once
7#include <aws/glacier/Glacier_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glacier/model/Encryption.h>
10#include <aws/glacier/model/CannedACL.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/glacier/model/StorageClass.h>
14#include <aws/glacier/model/Grant.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Glacier
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_GLACIER_API S3Location();
42 AWS_GLACIER_API S3Location(Aws::Utils::Json::JsonView jsonValue);
43 AWS_GLACIER_API S3Location& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetBucketName() const{ return m_bucketName; }
52 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
53 inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
54 inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
55 inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
56 inline S3Location& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
57 inline S3Location& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
58 inline S3Location& WithBucketName(const char* value) { SetBucketName(value); return *this;}
60
62
65 inline const Aws::String& GetPrefix() const{ return m_prefix; }
66 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
67 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
68 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
69 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
70 inline S3Location& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
71 inline S3Location& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
72 inline S3Location& WithPrefix(const char* value) { SetPrefix(value); return *this;}
74
76
80 inline const Encryption& GetEncryption() const{ return m_encryption; }
81 inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
82 inline void SetEncryption(const Encryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
83 inline void SetEncryption(Encryption&& value) { m_encryptionHasBeenSet = true; m_encryption = std::move(value); }
84 inline S3Location& WithEncryption(const Encryption& value) { SetEncryption(value); return *this;}
85 inline S3Location& WithEncryption(Encryption&& value) { SetEncryption(std::move(value)); return *this;}
87
89
92 inline const CannedACL& GetCannedACL() const{ return m_cannedACL; }
93 inline bool CannedACLHasBeenSet() const { return m_cannedACLHasBeenSet; }
94 inline void SetCannedACL(const CannedACL& value) { m_cannedACLHasBeenSet = true; m_cannedACL = value; }
95 inline void SetCannedACL(CannedACL&& value) { m_cannedACLHasBeenSet = true; m_cannedACL = std::move(value); }
96 inline S3Location& WithCannedACL(const CannedACL& value) { SetCannedACL(value); return *this;}
97 inline S3Location& WithCannedACL(CannedACL&& value) { SetCannedACL(std::move(value)); return *this;}
99
101
104 inline const Aws::Vector<Grant>& GetAccessControlList() const{ return m_accessControlList; }
105 inline bool AccessControlListHasBeenSet() const { return m_accessControlListHasBeenSet; }
106 inline void SetAccessControlList(const Aws::Vector<Grant>& value) { m_accessControlListHasBeenSet = true; m_accessControlList = value; }
107 inline void SetAccessControlList(Aws::Vector<Grant>&& value) { m_accessControlListHasBeenSet = true; m_accessControlList = std::move(value); }
108 inline S3Location& WithAccessControlList(const Aws::Vector<Grant>& value) { SetAccessControlList(value); return *this;}
109 inline S3Location& WithAccessControlList(Aws::Vector<Grant>&& value) { SetAccessControlList(std::move(value)); return *this;}
110 inline S3Location& AddAccessControlList(const Grant& value) { m_accessControlListHasBeenSet = true; m_accessControlList.push_back(value); return *this; }
111 inline S3Location& AddAccessControlList(Grant&& value) { m_accessControlListHasBeenSet = true; m_accessControlList.push_back(std::move(value)); return *this; }
113
115
118 inline const Aws::Map<Aws::String, Aws::String>& GetTagging() const{ return m_tagging; }
119 inline bool TaggingHasBeenSet() const { return m_taggingHasBeenSet; }
120 inline void SetTagging(const Aws::Map<Aws::String, Aws::String>& value) { m_taggingHasBeenSet = true; m_tagging = value; }
121 inline void SetTagging(Aws::Map<Aws::String, Aws::String>&& value) { m_taggingHasBeenSet = true; m_tagging = std::move(value); }
122 inline S3Location& WithTagging(const Aws::Map<Aws::String, Aws::String>& value) { SetTagging(value); return *this;}
123 inline S3Location& WithTagging(Aws::Map<Aws::String, Aws::String>&& value) { SetTagging(std::move(value)); return *this;}
124 inline S3Location& AddTagging(const Aws::String& key, const Aws::String& value) { m_taggingHasBeenSet = true; m_tagging.emplace(key, value); return *this; }
125 inline S3Location& AddTagging(Aws::String&& key, const Aws::String& value) { m_taggingHasBeenSet = true; m_tagging.emplace(std::move(key), value); return *this; }
126 inline S3Location& AddTagging(const Aws::String& key, Aws::String&& value) { m_taggingHasBeenSet = true; m_tagging.emplace(key, std::move(value)); return *this; }
127 inline S3Location& AddTagging(Aws::String&& key, Aws::String&& value) { m_taggingHasBeenSet = true; m_tagging.emplace(std::move(key), std::move(value)); return *this; }
128 inline S3Location& AddTagging(const char* key, Aws::String&& value) { m_taggingHasBeenSet = true; m_tagging.emplace(key, std::move(value)); return *this; }
129 inline S3Location& AddTagging(Aws::String&& key, const char* value) { m_taggingHasBeenSet = true; m_tagging.emplace(std::move(key), value); return *this; }
130 inline S3Location& AddTagging(const char* key, const char* value) { m_taggingHasBeenSet = true; m_tagging.emplace(key, value); return *this; }
132
134
137 inline const Aws::Map<Aws::String, Aws::String>& GetUserMetadata() const{ return m_userMetadata; }
138 inline bool UserMetadataHasBeenSet() const { return m_userMetadataHasBeenSet; }
139 inline void SetUserMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_userMetadataHasBeenSet = true; m_userMetadata = value; }
140 inline void SetUserMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_userMetadataHasBeenSet = true; m_userMetadata = std::move(value); }
142 inline S3Location& WithUserMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetUserMetadata(std::move(value)); return *this;}
143 inline S3Location& AddUserMetadata(const Aws::String& key, const Aws::String& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, value); return *this; }
144 inline S3Location& AddUserMetadata(Aws::String&& key, const Aws::String& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), value); return *this; }
145 inline S3Location& AddUserMetadata(const Aws::String& key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, std::move(value)); return *this; }
146 inline S3Location& AddUserMetadata(Aws::String&& key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), std::move(value)); return *this; }
147 inline S3Location& AddUserMetadata(const char* key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, std::move(value)); return *this; }
148 inline S3Location& AddUserMetadata(Aws::String&& key, const char* value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), value); return *this; }
149 inline S3Location& AddUserMetadata(const char* key, const char* value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, value); return *this; }
151
153
156 inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
157 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
158 inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
159 inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
160 inline S3Location& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
161 inline S3Location& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
163 private:
164
165 Aws::String m_bucketName;
166 bool m_bucketNameHasBeenSet = false;
167
168 Aws::String m_prefix;
169 bool m_prefixHasBeenSet = false;
170
171 Encryption m_encryption;
172 bool m_encryptionHasBeenSet = false;
173
174 CannedACL m_cannedACL;
175 bool m_cannedACLHasBeenSet = false;
176
177 Aws::Vector<Grant> m_accessControlList;
178 bool m_accessControlListHasBeenSet = false;
179
181 bool m_taggingHasBeenSet = false;
182
184 bool m_userMetadataHasBeenSet = false;
185
186 StorageClass m_storageClass;
187 bool m_storageClassHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace Glacier
192} // namespace Aws
void SetPrefix(const char *value)
Definition S3Location.h:69
S3Location & AddUserMetadata(Aws::String &&key, const char *value)
Definition S3Location.h:148
void SetStorageClass(const StorageClass &value)
Definition S3Location.h:158
S3Location & WithBucketName(const Aws::String &value)
Definition S3Location.h:56
S3Location & WithBucketName(const char *value)
Definition S3Location.h:58
S3Location & WithEncryption(const Encryption &value)
Definition S3Location.h:84
S3Location & AddTagging(const char *key, Aws::String &&value)
Definition S3Location.h:128
AWS_GLACIER_API S3Location & operator=(Aws::Utils::Json::JsonView jsonValue)
S3Location & WithUserMetadata(const Aws::Map< Aws::String, Aws::String > &value)
Definition S3Location.h:141
S3Location & AddTagging(Aws::String &&key, const char *value)
Definition S3Location.h:129
S3Location & AddTagging(Aws::String &&key, const Aws::String &value)
Definition S3Location.h:125
void SetPrefix(Aws::String &&value)
Definition S3Location.h:68
S3Location & AddTagging(Aws::String &&key, Aws::String &&value)
Definition S3Location.h:127
const Aws::String & GetBucketName() const
Definition S3Location.h:51
const Aws::Vector< Grant > & GetAccessControlList() const
Definition S3Location.h:104
void SetUserMetadata(const Aws::Map< Aws::String, Aws::String > &value)
Definition S3Location.h:139
const Aws::String & GetPrefix() const
Definition S3Location.h:65
S3Location & AddUserMetadata(const Aws::String &key, Aws::String &&value)
Definition S3Location.h:145
S3Location & WithTagging(const Aws::Map< Aws::String, Aws::String > &value)
Definition S3Location.h:122
S3Location & WithEncryption(Encryption &&value)
Definition S3Location.h:85
S3Location & WithUserMetadata(Aws::Map< Aws::String, Aws::String > &&value)
Definition S3Location.h:142
S3Location & AddTagging(const char *key, const char *value)
Definition S3Location.h:130
void SetAccessControlList(Aws::Vector< Grant > &&value)
Definition S3Location.h:107
bool AccessControlListHasBeenSet() const
Definition S3Location.h:105
S3Location & WithStorageClass(StorageClass &&value)
Definition S3Location.h:161
void SetTagging(Aws::Map< Aws::String, Aws::String > &&value)
Definition S3Location.h:121
void SetStorageClass(StorageClass &&value)
Definition S3Location.h:159
const CannedACL & GetCannedACL() const
Definition S3Location.h:92
S3Location & WithAccessControlList(const Aws::Vector< Grant > &value)
Definition S3Location.h:108
void SetPrefix(const Aws::String &value)
Definition S3Location.h:67
void SetCannedACL(const CannedACL &value)
Definition S3Location.h:94
const StorageClass & GetStorageClass() const
Definition S3Location.h:156
AWS_GLACIER_API S3Location(Aws::Utils::Json::JsonView jsonValue)
S3Location & AddUserMetadata(Aws::String &&key, Aws::String &&value)
Definition S3Location.h:146
S3Location & WithPrefix(const char *value)
Definition S3Location.h:72
void SetBucketName(const Aws::String &value)
Definition S3Location.h:53
void SetCannedACL(CannedACL &&value)
Definition S3Location.h:95
void SetBucketName(Aws::String &&value)
Definition S3Location.h:54
S3Location & WithAccessControlList(Aws::Vector< Grant > &&value)
Definition S3Location.h:109
S3Location & WithCannedACL(CannedACL &&value)
Definition S3Location.h:97
const Encryption & GetEncryption() const
Definition S3Location.h:80
S3Location & AddTagging(const Aws::String &key, const Aws::String &value)
Definition S3Location.h:124
const Aws::Map< Aws::String, Aws::String > & GetTagging() const
Definition S3Location.h:118
S3Location & AddUserMetadata(Aws::String &&key, const Aws::String &value)
Definition S3Location.h:144
void SetUserMetadata(Aws::Map< Aws::String, Aws::String > &&value)
Definition S3Location.h:140
S3Location & WithPrefix(const Aws::String &value)
Definition S3Location.h:70
S3Location & WithBucketName(Aws::String &&value)
Definition S3Location.h:57
S3Location & AddAccessControlList(Grant &&value)
Definition S3Location.h:111
S3Location & AddUserMetadata(const Aws::String &key, const Aws::String &value)
Definition S3Location.h:143
const Aws::Map< Aws::String, Aws::String > & GetUserMetadata() const
Definition S3Location.h:137
S3Location & WithPrefix(Aws::String &&value)
Definition S3Location.h:71
S3Location & AddAccessControlList(const Grant &value)
Definition S3Location.h:110
S3Location & WithTagging(Aws::Map< Aws::String, Aws::String > &&value)
Definition S3Location.h:123
S3Location & WithCannedACL(const CannedACL &value)
Definition S3Location.h:96
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
S3Location & AddUserMetadata(const char *key, const char *value)
Definition S3Location.h:149
S3Location & WithStorageClass(const StorageClass &value)
Definition S3Location.h:160
S3Location & AddUserMetadata(const char *key, Aws::String &&value)
Definition S3Location.h:147
void SetEncryption(Encryption &&value)
Definition S3Location.h:83
void SetEncryption(const Encryption &value)
Definition S3Location.h:82
void SetAccessControlList(const Aws::Vector< Grant > &value)
Definition S3Location.h:106
void SetBucketName(const char *value)
Definition S3Location.h:55
void SetTagging(const Aws::Map< Aws::String, Aws::String > &value)
Definition S3Location.h:120
S3Location & AddTagging(const Aws::String &key, Aws::String &&value)
Definition S3Location.h:126
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue