AWS SDK for C++  1.9.161
AWS SDK for C++
Grantee.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Glacier
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Type& GetType() const{ return m_type; }
45 
49  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 
54  inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
55 
59  inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
60 
64  inline Grantee& WithType(const Type& value) { SetType(value); return *this;}
65 
69  inline Grantee& WithType(Type&& value) { SetType(std::move(value)); return *this;}
70 
71 
75  inline const Aws::String& GetDisplayName() const{ return m_displayName; }
76 
80  inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
81 
85  inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
86 
90  inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
91 
95  inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
96 
100  inline Grantee& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
101 
105  inline Grantee& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
106 
110  inline Grantee& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
111 
112 
116  inline const Aws::String& GetURI() const{ return m_uRI; }
117 
121  inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; }
122 
126  inline void SetURI(const Aws::String& value) { m_uRIHasBeenSet = true; m_uRI = value; }
127 
131  inline void SetURI(Aws::String&& value) { m_uRIHasBeenSet = true; m_uRI = std::move(value); }
132 
136  inline void SetURI(const char* value) { m_uRIHasBeenSet = true; m_uRI.assign(value); }
137 
141  inline Grantee& WithURI(const Aws::String& value) { SetURI(value); return *this;}
142 
146  inline Grantee& WithURI(Aws::String&& value) { SetURI(std::move(value)); return *this;}
147 
151  inline Grantee& WithURI(const char* value) { SetURI(value); return *this;}
152 
153 
157  inline const Aws::String& GetID() const{ return m_iD; }
158 
162  inline bool IDHasBeenSet() const { return m_iDHasBeenSet; }
163 
167  inline void SetID(const Aws::String& value) { m_iDHasBeenSet = true; m_iD = value; }
168 
172  inline void SetID(Aws::String&& value) { m_iDHasBeenSet = true; m_iD = std::move(value); }
173 
177  inline void SetID(const char* value) { m_iDHasBeenSet = true; m_iD.assign(value); }
178 
182  inline Grantee& WithID(const Aws::String& value) { SetID(value); return *this;}
183 
187  inline Grantee& WithID(Aws::String&& value) { SetID(std::move(value)); return *this;}
188 
192  inline Grantee& WithID(const char* value) { SetID(value); return *this;}
193 
194 
198  inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
199 
203  inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
204 
208  inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
209 
213  inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
214 
218  inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
219 
223  inline Grantee& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
224 
228  inline Grantee& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
229 
233  inline Grantee& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
234 
235  private:
236 
237  Type m_type;
238  bool m_typeHasBeenSet;
239 
240  Aws::String m_displayName;
241  bool m_displayNameHasBeenSet;
242 
243  Aws::String m_uRI;
244  bool m_uRIHasBeenSet;
245 
246  Aws::String m_iD;
247  bool m_iDHasBeenSet;
248 
249  Aws::String m_emailAddress;
250  bool m_emailAddressHasBeenSet;
251  };
252 
253 } // namespace Model
254 } // namespace Glacier
255 } // namespace Aws
Aws::Glacier::Model::Grantee::SetDisplayName
void SetDisplayName(const char *value)
Definition: Grantee.h:95
Aws::Glacier::Model::Grantee::IDHasBeenSet
bool IDHasBeenSet() const
Definition: Grantee.h:162
Aws::Glacier::Model::Grantee::WithID
Grantee & WithID(const char *value)
Definition: Grantee.h:192
Aws::Glacier::Model::Grantee::GetType
const Type & GetType() const
Definition: Grantee.h:44
Aws::Glacier::Model::Grantee::SetID
void SetID(Aws::String &&value)
Definition: Grantee.h:172
Aws::Glacier::Model::Grantee::WithType
Grantee & WithType(Type &&value)
Definition: Grantee.h:69
Aws::Glacier::Model::Grantee::SetEmailAddress
void SetEmailAddress(const Aws::String &value)
Definition: Grantee.h:208
Aws::Glacier::Model::Grantee::WithDisplayName
Grantee & WithDisplayName(const char *value)
Definition: Grantee.h:110
Aws::Glacier::Model::Grantee::WithID
Grantee & WithID(Aws::String &&value)
Definition: Grantee.h:187
Aws::Glacier::Model::Grantee::SetEmailAddress
void SetEmailAddress(Aws::String &&value)
Definition: Grantee.h:213
Aws::Glacier::Model::Grantee::SetURI
void SetURI(Aws::String &&value)
Definition: Grantee.h:131
Aws::Glacier::Model::Grantee::WithURI
Grantee & WithURI(Aws::String &&value)
Definition: Grantee.h:146
Aws::Glacier::Model::Grantee::URIHasBeenSet
bool URIHasBeenSet() const
Definition: Grantee.h:121
Aws::Glacier::Model::Grantee::WithType
Grantee & WithType(const Type &value)
Definition: Grantee.h:64
Aws::Glacier::Model::Grantee::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Grantee.h:49
Aws::Glacier::Model::Grantee::SetID
void SetID(const char *value)
Definition: Grantee.h:177
Aws::Glacier::Model::Grantee::WithID
Grantee & WithID(const Aws::String &value)
Definition: Grantee.h:182
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::Grantee::Grantee
Grantee()
Aws::Glacier::Model::Grantee::WithURI
Grantee & WithURI(const Aws::String &value)
Definition: Grantee.h:141
Aws::Glacier::Model::Grantee::SetType
void SetType(const Type &value)
Definition: Grantee.h:54
Aws::Glacier::Model::Grantee::GetID
const Aws::String & GetID() const
Definition: Grantee.h:157
Aws::Glacier::Model::Grantee::SetURI
void SetURI(const char *value)
Definition: Grantee.h:136
Aws::Glacier::Model::Grantee::SetDisplayName
void SetDisplayName(const Aws::String &value)
Definition: Grantee.h:85
Aws::Glacier::Model::Grantee::SetDisplayName
void SetDisplayName(Aws::String &&value)
Definition: Grantee.h:90
Aws::Glacier::Model::Grantee::GetDisplayName
const Aws::String & GetDisplayName() const
Definition: Grantee.h:75
Aws::Glacier::Model::Grantee::SetType
void SetType(Type &&value)
Definition: Grantee.h:59
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Glacier::Model::Type
Type
Definition: Type.h:17
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Glacier::Model::Grantee::SetID
void SetID(const Aws::String &value)
Definition: Grantee.h:167
Aws::Glacier::Model::Grantee::SetEmailAddress
void SetEmailAddress(const char *value)
Definition: Grantee.h:218
Aws::Glacier::Model::Grantee::EmailAddressHasBeenSet
bool EmailAddressHasBeenSet() const
Definition: Grantee.h:203
Aws::Glacier::Model::Grantee::WithDisplayName
Grantee & WithDisplayName(Aws::String &&value)
Definition: Grantee.h:105
Aws::Glacier::Model::Grantee::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Glacier::Model::Grantee::DisplayNameHasBeenSet
bool DisplayNameHasBeenSet() const
Definition: Grantee.h:80
Aws::Glacier::Model::Grantee::GetEmailAddress
const Aws::String & GetEmailAddress() const
Definition: Grantee.h:198
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::Grantee::WithDisplayName
Grantee & WithDisplayName(const Aws::String &value)
Definition: Grantee.h:100
Aws::Glacier::Model::Grantee::WithURI
Grantee & WithURI(const char *value)
Definition: Grantee.h:151
Aws::Glacier::Model::Grantee::WithEmailAddress
Grantee & WithEmailAddress(const Aws::String &value)
Definition: Grantee.h:223
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::Grantee::operator=
Grantee & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Glacier::Model::Grantee::SetURI
void SetURI(const Aws::String &value)
Definition: Grantee.h:126
Aws::Glacier::Model::Grantee::WithEmailAddress
Grantee & WithEmailAddress(const char *value)
Definition: Grantee.h:233
Aws::Glacier::Model::Grantee::WithEmailAddress
Grantee & WithEmailAddress(Aws::String &&value)
Definition: Grantee.h:228
Aws::Glacier::Model::Grantee
Definition: Grantee.h:33
Aws::Glacier::Model::Grantee::GetURI
const Aws::String & GetURI() const
Definition: Grantee.h:116
Type.h
Aws::Glacier::Model::Grantee::Grantee
Grantee(Aws::Utils::Json::JsonView jsonValue)
Glacier_EXPORTS.h