AWS SDK for C++

AWS SDK for C++ Version 1.11.685

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