AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Grantee.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/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:
34 AWS_S3_API Grantee() = default;
35 AWS_S3_API Grantee(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_S3_API Grantee& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3_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 template<typename DisplayNameT = Aws::String>
48 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
49 template<typename DisplayNameT = Aws::String>
50 Grantee& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
52
54
66 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
67 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
68 template<typename EmailAddressT = Aws::String>
69 void SetEmailAddress(EmailAddressT&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::forward<EmailAddressT>(value); }
70 template<typename EmailAddressT = Aws::String>
71 Grantee& WithEmailAddress(EmailAddressT&& value) { SetEmailAddress(std::forward<EmailAddressT>(value)); return *this;}
73
75
78 inline const Aws::String& GetID() const { return m_iD; }
79 inline bool IDHasBeenSet() const { return m_iDHasBeenSet; }
80 template<typename IDT = Aws::String>
81 void SetID(IDT&& value) { m_iDHasBeenSet = true; m_iD = std::forward<IDT>(value); }
82 template<typename IDT = Aws::String>
83 Grantee& WithID(IDT&& value) { SetID(std::forward<IDT>(value)); return *this;}
85
87
90 inline Type GetType() const { return m_type; }
91 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
92 inline void SetType(Type value) { m_typeHasBeenSet = true; m_type = value; }
93 inline Grantee& WithType(Type value) { SetType(value); return *this;}
95
97
100 inline const Aws::String& GetURI() const { return m_uRI; }
101 inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; }
102 template<typename URIT = Aws::String>
103 void SetURI(URIT&& value) { m_uRIHasBeenSet = true; m_uRI = std::forward<URIT>(value); }
104 template<typename URIT = Aws::String>
105 Grantee& WithURI(URIT&& value) { SetURI(std::forward<URIT>(value)); return *this;}
107 private:
108
109 Aws::String m_displayName;
110 bool m_displayNameHasBeenSet = false;
111
112 Aws::String m_emailAddress;
113 bool m_emailAddressHasBeenSet = false;
114
115 Aws::String m_iD;
116 bool m_iDHasBeenSet = false;
117
118 Type m_type{Type::NOT_SET};
119 bool m_typeHasBeenSet = false;
120
121 Aws::String m_uRI;
122 bool m_uRIHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace S3
127} // namespace Aws
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetType(Type value)
Definition Grantee.h:92
void SetURI(URIT &&value)
Definition Grantee.h:103
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:78
const Aws::String & GetEmailAddress() const
Definition Grantee.h:66
const Aws::String & GetDisplayName() const
Definition Grantee.h:45
Grantee & WithDisplayName(DisplayNameT &&value)
Definition Grantee.h:50
Grantee & WithType(Type value)
Definition Grantee.h:93
const Aws::String & GetURI() const
Definition Grantee.h:100
void SetID(IDT &&value)
Definition Grantee.h:81
void SetEmailAddress(EmailAddressT &&value)
Definition Grantee.h:69
void SetDisplayName(DisplayNameT &&value)
Definition Grantee.h:48
bool TypeHasBeenSet() const
Definition Grantee.h:91
bool DisplayNameHasBeenSet() const
Definition Grantee.h:46
Grantee & WithEmailAddress(EmailAddressT &&value)
Definition Grantee.h:71
bool URIHasBeenSet() const
Definition Grantee.h:101
Grantee & WithID(IDT &&value)
Definition Grantee.h:83
Type GetType() const
Definition Grantee.h:90
bool IDHasBeenSet() const
Definition Grantee.h:79
Grantee & WithURI(URIT &&value)
Definition Grantee.h:105
bool EmailAddressHasBeenSet() const
Definition Grantee.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String