AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Grantee.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3-crt/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 S3Crt
22{
23namespace Model
24{
25
31 class Grantee
32 {
33 public:
34 AWS_S3CRT_API Grantee();
35 AWS_S3CRT_API Grantee(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_S3CRT_API Grantee& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
45 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
46 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
47 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
48 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
49 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
50 inline Grantee& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
51 inline Grantee& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
52 inline Grantee& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
54
56
68 inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
69 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
70 inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
71 inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
72 inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
73 inline Grantee& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
74 inline Grantee& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
75 inline Grantee& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
77
79
82 inline const Aws::String& GetID() const{ return m_iD; }
83 inline bool IDHasBeenSet() const { return m_iDHasBeenSet; }
84 inline void SetID(const Aws::String& value) { m_iDHasBeenSet = true; m_iD = value; }
85 inline void SetID(Aws::String&& value) { m_iDHasBeenSet = true; m_iD = std::move(value); }
86 inline void SetID(const char* value) { m_iDHasBeenSet = true; m_iD.assign(value); }
87 inline Grantee& WithID(const Aws::String& value) { SetID(value); return *this;}
88 inline Grantee& WithID(Aws::String&& value) { SetID(std::move(value)); return *this;}
89 inline Grantee& WithID(const char* value) { SetID(value); return *this;}
91
93
96 inline const Type& GetType() const{ return m_type; }
97 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
98 inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
99 inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
100 inline Grantee& WithType(const Type& value) { SetType(value); return *this;}
101 inline Grantee& WithType(Type&& value) { SetType(std::move(value)); return *this;}
103
105
108 inline const Aws::String& GetURI() const{ return m_uRI; }
109 inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; }
110 inline void SetURI(const Aws::String& value) { m_uRIHasBeenSet = true; m_uRI = value; }
111 inline void SetURI(Aws::String&& value) { m_uRIHasBeenSet = true; m_uRI = std::move(value); }
112 inline void SetURI(const char* value) { m_uRIHasBeenSet = true; m_uRI.assign(value); }
113 inline Grantee& WithURI(const Aws::String& value) { SetURI(value); return *this;}
114 inline Grantee& WithURI(Aws::String&& value) { SetURI(std::move(value)); return *this;}
115 inline Grantee& WithURI(const char* value) { SetURI(value); return *this;}
117 private:
118
119 Aws::String m_displayName;
120 bool m_displayNameHasBeenSet = false;
121
122 Aws::String m_emailAddress;
123 bool m_emailAddressHasBeenSet = false;
124
125 Aws::String m_iD;
126 bool m_iDHasBeenSet = false;
127
128 Type m_type;
129 bool m_typeHasBeenSet = false;
130
131 Aws::String m_uRI;
132 bool m_uRIHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace S3Crt
137} // namespace Aws
void SetID(const Aws::String &value)
Definition Grantee.h:84
void SetDisplayName(const Aws::String &value)
Definition Grantee.h:47
bool DisplayNameHasBeenSet() const
Definition Grantee.h:46
Grantee & WithDisplayName(const char *value)
Definition Grantee.h:52
bool EmailAddressHasBeenSet() const
Definition Grantee.h:69
void SetDisplayName(const char *value)
Definition Grantee.h:49
const Aws::String & GetID() const
Definition Grantee.h:82
Grantee & WithURI(const Aws::String &value)
Definition Grantee.h:113
AWS_S3CRT_API Grantee(const Aws::Utils::Xml::XmlNode &xmlNode)
Grantee & WithEmailAddress(const char *value)
Definition Grantee.h:75
Grantee & WithEmailAddress(Aws::String &&value)
Definition Grantee.h:74
void SetID(Aws::String &&value)
Definition Grantee.h:85
const Aws::String & GetURI() const
Definition Grantee.h:108
const Aws::String & GetDisplayName() const
Definition Grantee.h:45
Grantee & WithID(const char *value)
Definition Grantee.h:89
Grantee & WithType(const Type &value)
Definition Grantee.h:100
Grantee & WithID(const Aws::String &value)
Definition Grantee.h:87
const Type & GetType() const
Definition Grantee.h:96
void SetType(Type &&value)
Definition Grantee.h:99
Grantee & WithURI(const char *value)
Definition Grantee.h:115
void SetType(const Type &value)
Definition Grantee.h:98
AWS_S3CRT_API Grantee & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDisplayName(Aws::String &&value)
Definition Grantee.h:48
Grantee & WithType(Type &&value)
Definition Grantee.h:101
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Grantee & WithURI(Aws::String &&value)
Definition Grantee.h:114
void SetURI(const Aws::String &value)
Definition Grantee.h:110
Grantee & WithEmailAddress(const Aws::String &value)
Definition Grantee.h:73
bool URIHasBeenSet() const
Definition Grantee.h:109
bool IDHasBeenSet() const
Definition Grantee.h:83
Grantee & WithDisplayName(Aws::String &&value)
Definition Grantee.h:51
void SetEmailAddress(Aws::String &&value)
Definition Grantee.h:71
bool TypeHasBeenSet() const
Definition Grantee.h:97
Grantee & WithDisplayName(const Aws::String &value)
Definition Grantee.h:50
void SetURI(const char *value)
Definition Grantee.h:112
void SetEmailAddress(const Aws::String &value)
Definition Grantee.h:70
Grantee & WithID(Aws::String &&value)
Definition Grantee.h:88
void SetURI(Aws::String &&value)
Definition Grantee.h:111
void SetEmailAddress(const char *value)
Definition Grantee.h:72
const Aws::String & GetEmailAddress() const
Definition Grantee.h:68
void SetID(const char *value)
Definition Grantee.h:86
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String