AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Grantee.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/Type.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace S3 {
20namespace Model {
21
27class Grantee {
28 public:
29 AWS_S3_API Grantee() = default;
30 AWS_S3_API Grantee(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_S3_API Grantee& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
34
36
39 inline const Aws::String& GetDisplayName() const { return m_displayName; }
40 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
41 template <typename DisplayNameT = Aws::String>
42 void SetDisplayName(DisplayNameT&& value) {
43 m_displayNameHasBeenSet = true;
44 m_displayName = std::forward<DisplayNameT>(value);
45 }
46 template <typename DisplayNameT = Aws::String>
47 Grantee& WithDisplayName(DisplayNameT&& value) {
48 SetDisplayName(std::forward<DisplayNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
58 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
59 template <typename EmailAddressT = Aws::String>
60 void SetEmailAddress(EmailAddressT&& value) {
61 m_emailAddressHasBeenSet = true;
62 m_emailAddress = std::forward<EmailAddressT>(value);
63 }
64 template <typename EmailAddressT = Aws::String>
65 Grantee& WithEmailAddress(EmailAddressT&& value) {
66 SetEmailAddress(std::forward<EmailAddressT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetID() const { return m_iD; }
76 inline bool IDHasBeenSet() const { return m_iDHasBeenSet; }
77 template <typename IDT = Aws::String>
78 void SetID(IDT&& value) {
79 m_iDHasBeenSet = true;
80 m_iD = std::forward<IDT>(value);
81 }
82 template <typename IDT = Aws::String>
83 Grantee& WithID(IDT&& value) {
84 SetID(std::forward<IDT>(value));
85 return *this;
86 }
88
90
93 inline Type GetType() const { return m_type; }
94 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
95 inline void SetType(Type value) {
96 m_typeHasBeenSet = true;
97 m_type = value;
98 }
99 inline Grantee& WithType(Type value) {
100 SetType(value);
101 return *this;
102 }
104
106
109 inline const Aws::String& GetURI() const { return m_uRI; }
110 inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; }
111 template <typename URIT = Aws::String>
112 void SetURI(URIT&& value) {
113 m_uRIHasBeenSet = true;
114 m_uRI = std::forward<URIT>(value);
115 }
116 template <typename URIT = Aws::String>
117 Grantee& WithURI(URIT&& value) {
118 SetURI(std::forward<URIT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_displayName;
124
125 Aws::String m_emailAddress;
126
127 Aws::String m_iD;
128
129 Type m_type{Type::NOT_SET};
130
131 Aws::String m_uRI;
132 bool m_displayNameHasBeenSet = false;
133 bool m_emailAddressHasBeenSet = false;
134 bool m_iDHasBeenSet = false;
135 bool m_typeHasBeenSet = false;
136 bool m_uRIHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace S3
141} // namespace Aws
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetType(Type value)
Definition Grantee.h:95
void SetURI(URIT &&value)
Definition Grantee.h:112
AWS_S3_API Grantee & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API Grantee()=default
AWS_S3_API Grantee(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetID() const
Definition Grantee.h:75
const Aws::String & GetEmailAddress() const
Definition Grantee.h:57
const Aws::String & GetDisplayName() const
Definition Grantee.h:39
Grantee & WithDisplayName(DisplayNameT &&value)
Definition Grantee.h:47
Grantee & WithType(Type value)
Definition Grantee.h:99
const Aws::String & GetURI() const
Definition Grantee.h:109
void SetID(IDT &&value)
Definition Grantee.h:78
void SetEmailAddress(EmailAddressT &&value)
Definition Grantee.h:60
void SetDisplayName(DisplayNameT &&value)
Definition Grantee.h:42
bool TypeHasBeenSet() const
Definition Grantee.h:94
bool DisplayNameHasBeenSet() const
Definition Grantee.h:40
Grantee & WithEmailAddress(EmailAddressT &&value)
Definition Grantee.h:65
bool URIHasBeenSet() const
Definition Grantee.h:110
Grantee & WithID(IDT &&value)
Definition Grantee.h:83
Type GetType() const
Definition Grantee.h:93
bool IDHasBeenSet() const
Definition Grantee.h:76
Grantee & WithURI(URIT &&value)
Definition Grantee.h:117
bool EmailAddressHasBeenSet() const
Definition Grantee.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String