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/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/model/Encryption.h>
10#include <aws/s3/model/ObjectCannedACL.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/s3/model/Tagging.h>
13#include <aws/s3/model/StorageClass.h>
14#include <aws/s3/model/Grant.h>
15#include <aws/s3/model/MetadataEntry.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace S3
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_S3_API S3Location();
42 AWS_S3_API S3Location(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_S3_API S3Location& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
46
47
49
52 inline const Aws::String& GetBucketName() const{ return m_bucketName; }
53 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
54 inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
55 inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
56 inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
57 inline S3Location& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
58 inline S3Location& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
59 inline S3Location& WithBucketName(const char* value) { SetBucketName(value); return *this;}
61
63
66 inline const Aws::String& GetPrefix() const{ return m_prefix; }
67 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
68 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
69 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
70 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
71 inline S3Location& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
72 inline S3Location& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
73 inline S3Location& WithPrefix(const char* value) { SetPrefix(value); return *this;}
75
77
78 inline const Encryption& GetEncryption() const{ return m_encryption; }
79 inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
80 inline void SetEncryption(const Encryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
81 inline void SetEncryption(Encryption&& value) { m_encryptionHasBeenSet = true; m_encryption = std::move(value); }
82 inline S3Location& WithEncryption(const Encryption& value) { SetEncryption(value); return *this;}
83 inline S3Location& WithEncryption(Encryption&& value) { SetEncryption(std::move(value)); return *this;}
85
87
90 inline const ObjectCannedACL& GetCannedACL() const{ return m_cannedACL; }
91 inline bool CannedACLHasBeenSet() const { return m_cannedACLHasBeenSet; }
92 inline void SetCannedACL(const ObjectCannedACL& value) { m_cannedACLHasBeenSet = true; m_cannedACL = value; }
93 inline void SetCannedACL(ObjectCannedACL&& value) { m_cannedACLHasBeenSet = true; m_cannedACL = std::move(value); }
94 inline S3Location& WithCannedACL(const ObjectCannedACL& value) { SetCannedACL(value); return *this;}
95 inline S3Location& WithCannedACL(ObjectCannedACL&& value) { SetCannedACL(std::move(value)); return *this;}
97
99
102 inline const Aws::Vector<Grant>& GetAccessControlList() const{ return m_accessControlList; }
103 inline bool AccessControlListHasBeenSet() const { return m_accessControlListHasBeenSet; }
104 inline void SetAccessControlList(const Aws::Vector<Grant>& value) { m_accessControlListHasBeenSet = true; m_accessControlList = value; }
105 inline void SetAccessControlList(Aws::Vector<Grant>&& value) { m_accessControlListHasBeenSet = true; m_accessControlList = std::move(value); }
106 inline S3Location& WithAccessControlList(const Aws::Vector<Grant>& value) { SetAccessControlList(value); return *this;}
107 inline S3Location& WithAccessControlList(Aws::Vector<Grant>&& value) { SetAccessControlList(std::move(value)); return *this;}
108 inline S3Location& AddAccessControlList(const Grant& value) { m_accessControlListHasBeenSet = true; m_accessControlList.push_back(value); return *this; }
109 inline S3Location& AddAccessControlList(Grant&& value) { m_accessControlListHasBeenSet = true; m_accessControlList.push_back(std::move(value)); return *this; }
111
113
116 inline const Tagging& GetTagging() const{ return m_tagging; }
117 inline bool TaggingHasBeenSet() const { return m_taggingHasBeenSet; }
118 inline void SetTagging(const Tagging& value) { m_taggingHasBeenSet = true; m_tagging = value; }
119 inline void SetTagging(Tagging&& value) { m_taggingHasBeenSet = true; m_tagging = std::move(value); }
120 inline S3Location& WithTagging(const Tagging& value) { SetTagging(value); return *this;}
121 inline S3Location& WithTagging(Tagging&& value) { SetTagging(std::move(value)); return *this;}
123
125
128 inline const Aws::Vector<MetadataEntry>& GetUserMetadata() const{ return m_userMetadata; }
129 inline bool UserMetadataHasBeenSet() const { return m_userMetadataHasBeenSet; }
130 inline void SetUserMetadata(const Aws::Vector<MetadataEntry>& value) { m_userMetadataHasBeenSet = true; m_userMetadata = value; }
131 inline void SetUserMetadata(Aws::Vector<MetadataEntry>&& value) { m_userMetadataHasBeenSet = true; m_userMetadata = std::move(value); }
132 inline S3Location& WithUserMetadata(const Aws::Vector<MetadataEntry>& value) { SetUserMetadata(value); return *this;}
133 inline S3Location& WithUserMetadata(Aws::Vector<MetadataEntry>&& value) { SetUserMetadata(std::move(value)); return *this;}
134 inline S3Location& AddUserMetadata(const MetadataEntry& value) { m_userMetadataHasBeenSet = true; m_userMetadata.push_back(value); return *this; }
135 inline S3Location& AddUserMetadata(MetadataEntry&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.push_back(std::move(value)); return *this; }
137
139
142 inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
143 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
144 inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
145 inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
146 inline S3Location& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
147 inline S3Location& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
149 private:
150
151 Aws::String m_bucketName;
152 bool m_bucketNameHasBeenSet = false;
153
154 Aws::String m_prefix;
155 bool m_prefixHasBeenSet = false;
156
157 Encryption m_encryption;
158 bool m_encryptionHasBeenSet = false;
159
160 ObjectCannedACL m_cannedACL;
161 bool m_cannedACLHasBeenSet = false;
162
163 Aws::Vector<Grant> m_accessControlList;
164 bool m_accessControlListHasBeenSet = false;
165
166 Tagging m_tagging;
167 bool m_taggingHasBeenSet = false;
168
169 Aws::Vector<MetadataEntry> m_userMetadata;
170 bool m_userMetadataHasBeenSet = false;
171
172 StorageClass m_storageClass;
173 bool m_storageClassHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace S3
178} // namespace Aws
const StorageClass & GetStorageClass() const
Definition S3Location.h:142
void SetCannedACL(ObjectCannedACL &&value)
Definition S3Location.h:93
S3Location & AddUserMetadata(const MetadataEntry &value)
Definition S3Location.h:134
S3Location & WithUserMetadata(Aws::Vector< MetadataEntry > &&value)
Definition S3Location.h:133
bool PrefixHasBeenSet() const
Definition S3Location.h:67
S3Location & WithBucketName(const char *value)
Definition S3Location.h:59
void SetAccessControlList(const Aws::Vector< Grant > &value)
Definition S3Location.h:104
bool TaggingHasBeenSet() const
Definition S3Location.h:117
void SetUserMetadata(const Aws::Vector< MetadataEntry > &value)
Definition S3Location.h:130
S3Location & AddAccessControlList(Grant &&value)
Definition S3Location.h:109
AWS_S3_API S3Location(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetBucketName(Aws::String &&value)
Definition S3Location.h:55
void SetBucketName(const char *value)
Definition S3Location.h:56
S3Location & WithEncryption(const Encryption &value)
Definition S3Location.h:82
bool AccessControlListHasBeenSet() const
Definition S3Location.h:103
const Aws::String & GetPrefix() const
Definition S3Location.h:66
S3Location & AddUserMetadata(MetadataEntry &&value)
Definition S3Location.h:135
void SetStorageClass(const StorageClass &value)
Definition S3Location.h:144
S3Location & WithPrefix(const Aws::String &value)
Definition S3Location.h:71
S3Location & WithAccessControlList(const Aws::Vector< Grant > &value)
Definition S3Location.h:106
void SetPrefix(const Aws::String &value)
Definition S3Location.h:68
const ObjectCannedACL & GetCannedACL() const
Definition S3Location.h:90
void SetTagging(const Tagging &value)
Definition S3Location.h:118
AWS_S3_API S3Location & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::Vector< Grant > & GetAccessControlList() const
Definition S3Location.h:102
const Aws::String & GetBucketName() const
Definition S3Location.h:52
bool EncryptionHasBeenSet() const
Definition S3Location.h:79
S3Location & WithCannedACL(ObjectCannedACL &&value)
Definition S3Location.h:95
bool CannedACLHasBeenSet() const
Definition S3Location.h:91
S3Location & WithUserMetadata(const Aws::Vector< MetadataEntry > &value)
Definition S3Location.h:132
bool BucketNameHasBeenSet() const
Definition S3Location.h:53
bool StorageClassHasBeenSet() const
Definition S3Location.h:143
S3Location & WithAccessControlList(Aws::Vector< Grant > &&value)
Definition S3Location.h:107
void SetEncryption(const Encryption &value)
Definition S3Location.h:80
S3Location & WithTagging(const Tagging &value)
Definition S3Location.h:120
S3Location & WithTagging(Tagging &&value)
Definition S3Location.h:121
S3Location & WithEncryption(Encryption &&value)
Definition S3Location.h:83
void SetEncryption(Encryption &&value)
Definition S3Location.h:81
void SetPrefix(Aws::String &&value)
Definition S3Location.h:69
const Tagging & GetTagging() const
Definition S3Location.h:116
void SetBucketName(const Aws::String &value)
Definition S3Location.h:54
void SetStorageClass(StorageClass &&value)
Definition S3Location.h:145
S3Location & WithBucketName(Aws::String &&value)
Definition S3Location.h:58
S3Location & AddAccessControlList(const Grant &value)
Definition S3Location.h:108
const Aws::Vector< MetadataEntry > & GetUserMetadata() const
Definition S3Location.h:128
S3Location & WithStorageClass(StorageClass &&value)
Definition S3Location.h:147
const Encryption & GetEncryption() const
Definition S3Location.h:78
void SetCannedACL(const ObjectCannedACL &value)
Definition S3Location.h:92
void SetUserMetadata(Aws::Vector< MetadataEntry > &&value)
Definition S3Location.h:131
S3Location & WithPrefix(Aws::String &&value)
Definition S3Location.h:72
S3Location & WithBucketName(const Aws::String &value)
Definition S3Location.h:57
void SetAccessControlList(Aws::Vector< Grant > &&value)
Definition S3Location.h:105
bool UserMetadataHasBeenSet() const
Definition S3Location.h:129
void SetTagging(Tagging &&value)
Definition S3Location.h:119
S3Location & WithCannedACL(const ObjectCannedACL &value)
Definition S3Location.h:94
S3Location & WithPrefix(const char *value)
Definition S3Location.h:73
S3Location & WithStorageClass(const StorageClass &value)
Definition S3Location.h:146
void SetPrefix(const char *value)
Definition S3Location.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector