AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Grantee.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/Type.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
31 class Grantee
32 {
33 public:
37
39
40
44 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
45
49 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
50
54 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
55
59 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
60
64 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
65
69 inline Grantee& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
70
74 inline Grantee& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
75
79 inline Grantee& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
80
81
94 inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
95
108 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
109
122 inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
123
136 inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
137
150 inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
151
164 inline Grantee& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
165
178 inline Grantee& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
179
192 inline Grantee& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
193
194
198 inline const Aws::String& GetID() const{ return m_iD; }
199
203 inline bool IDHasBeenSet() const { return m_iDHasBeenSet; }
204
208 inline void SetID(const Aws::String& value) { m_iDHasBeenSet = true; m_iD = value; }
209
213 inline void SetID(Aws::String&& value) { m_iDHasBeenSet = true; m_iD = std::move(value); }
214
218 inline void SetID(const char* value) { m_iDHasBeenSet = true; m_iD.assign(value); }
219
223 inline Grantee& WithID(const Aws::String& value) { SetID(value); return *this;}
224
228 inline Grantee& WithID(Aws::String&& value) { SetID(std::move(value)); return *this;}
229
233 inline Grantee& WithID(const char* value) { SetID(value); return *this;}
234
235
239 inline const Type& GetType() const{ return m_type; }
240
244 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
245
249 inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
250
254 inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
255
259 inline Grantee& WithType(const Type& value) { SetType(value); return *this;}
260
264 inline Grantee& WithType(Type&& value) { SetType(std::move(value)); return *this;}
265
266
270 inline const Aws::String& GetURI() const{ return m_uRI; }
271
275 inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; }
276
280 inline void SetURI(const Aws::String& value) { m_uRIHasBeenSet = true; m_uRI = value; }
281
285 inline void SetURI(Aws::String&& value) { m_uRIHasBeenSet = true; m_uRI = std::move(value); }
286
290 inline void SetURI(const char* value) { m_uRIHasBeenSet = true; m_uRI.assign(value); }
291
295 inline Grantee& WithURI(const Aws::String& value) { SetURI(value); return *this;}
296
300 inline Grantee& WithURI(Aws::String&& value) { SetURI(std::move(value)); return *this;}
301
305 inline Grantee& WithURI(const char* value) { SetURI(value); return *this;}
306
307 private:
308
309 Aws::String m_displayName;
310 bool m_displayNameHasBeenSet = false;
311
312 Aws::String m_emailAddress;
313 bool m_emailAddressHasBeenSet = false;
314
315 Aws::String m_iD;
316 bool m_iDHasBeenSet = false;
317
318 Type m_type;
319 bool m_typeHasBeenSet = false;
320
321 Aws::String m_uRI;
322 bool m_uRIHasBeenSet = false;
323 };
324
325} // namespace Model
326} // namespace S3
327} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Type & GetType() const
Definition: Grantee.h:239
void SetID(Aws::String &&value)
Definition: Grantee.h:213
Grantee & WithDisplayName(const char *value)
Definition: Grantee.h:79
Grantee & WithURI(const Aws::String &value)
Definition: Grantee.h:295
void SetDisplayName(const char *value)
Definition: Grantee.h:64
void SetEmailAddress(const Aws::String &value)
Definition: Grantee.h:122
Grantee & WithURI(Aws::String &&value)
Definition: Grantee.h:300
Grantee & WithDisplayName(Aws::String &&value)
Definition: Grantee.h:74
void SetType(Type &&value)
Definition: Grantee.h:254
AWS_S3_API Grantee & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDisplayName(const Aws::String &value)
Definition: Grantee.h:54
AWS_S3_API Grantee(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetURI(Aws::String &&value)
Definition: Grantee.h:285
Grantee & WithID(const Aws::String &value)
Definition: Grantee.h:223
const Aws::String & GetID() const
Definition: Grantee.h:198
void SetURI(const Aws::String &value)
Definition: Grantee.h:280
void SetID(const char *value)
Definition: Grantee.h:218
const Aws::String & GetEmailAddress() const
Definition: Grantee.h:94
void SetEmailAddress(Aws::String &&value)
Definition: Grantee.h:136
const Aws::String & GetDisplayName() const
Definition: Grantee.h:44
Grantee & WithURI(const char *value)
Definition: Grantee.h:305
const Aws::String & GetURI() const
Definition: Grantee.h:270
Grantee & WithID(const char *value)
Definition: Grantee.h:233
void SetType(const Type &value)
Definition: Grantee.h:249
Grantee & WithEmailAddress(const char *value)
Definition: Grantee.h:192
Grantee & WithEmailAddress(const Aws::String &value)
Definition: Grantee.h:164
bool TypeHasBeenSet() const
Definition: Grantee.h:244
Grantee & WithType(const Type &value)
Definition: Grantee.h:259
void SetEmailAddress(const char *value)
Definition: Grantee.h:150
void SetID(const Aws::String &value)
Definition: Grantee.h:208
bool DisplayNameHasBeenSet() const
Definition: Grantee.h:49
Grantee & WithEmailAddress(Aws::String &&value)
Definition: Grantee.h:178
bool URIHasBeenSet() const
Definition: Grantee.h:275
Grantee & WithDisplayName(const Aws::String &value)
Definition: Grantee.h:69
void SetURI(const char *value)
Definition: Grantee.h:290
bool IDHasBeenSet() const
Definition: Grantee.h:203
Grantee & WithID(Aws::String &&value)
Definition: Grantee.h:228
Grantee & WithType(Type &&value)
Definition: Grantee.h:264
bool EmailAddressHasBeenSet() const
Definition: Grantee.h:108
void SetDisplayName(Aws::String &&value)
Definition: Grantee.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String