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/glacier/Glacier_EXPORTS.h>
8#include <aws/glacier/model/Type.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glacier
23{
24namespace Model
25{
26
32 class Grantee
33 {
34 public:
35 AWS_GLACIER_API Grantee();
36 AWS_GLACIER_API Grantee(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GLACIER_API Grantee& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Type& GetType() const{ return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
48 inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
49 inline Grantee& WithType(const Type& value) { SetType(value); return *this;}
50 inline Grantee& WithType(Type&& value) { SetType(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
58 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
59 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
60 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
61 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
62 inline Grantee& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
63 inline Grantee& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
64 inline Grantee& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
66
68
71 inline const Aws::String& GetURI() const{ return m_uRI; }
72 inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; }
73 inline void SetURI(const Aws::String& value) { m_uRIHasBeenSet = true; m_uRI = value; }
74 inline void SetURI(Aws::String&& value) { m_uRIHasBeenSet = true; m_uRI = std::move(value); }
75 inline void SetURI(const char* value) { m_uRIHasBeenSet = true; m_uRI.assign(value); }
76 inline Grantee& WithURI(const Aws::String& value) { SetURI(value); return *this;}
77 inline Grantee& WithURI(Aws::String&& value) { SetURI(std::move(value)); return *this;}
78 inline Grantee& WithURI(const char* value) { SetURI(value); return *this;}
80
82
85 inline const Aws::String& GetID() const{ return m_iD; }
86 inline bool IDHasBeenSet() const { return m_iDHasBeenSet; }
87 inline void SetID(const Aws::String& value) { m_iDHasBeenSet = true; m_iD = value; }
88 inline void SetID(Aws::String&& value) { m_iDHasBeenSet = true; m_iD = std::move(value); }
89 inline void SetID(const char* value) { m_iDHasBeenSet = true; m_iD.assign(value); }
90 inline Grantee& WithID(const Aws::String& value) { SetID(value); return *this;}
91 inline Grantee& WithID(Aws::String&& value) { SetID(std::move(value)); return *this;}
92 inline Grantee& WithID(const char* value) { SetID(value); return *this;}
94
96
99 inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
100 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
101 inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
102 inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
103 inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
104 inline Grantee& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
105 inline Grantee& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
106 inline Grantee& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
108 private:
109
110 Type m_type;
111 bool m_typeHasBeenSet = false;
112
113 Aws::String m_displayName;
114 bool m_displayNameHasBeenSet = false;
115
116 Aws::String m_uRI;
117 bool m_uRIHasBeenSet = false;
118
119 Aws::String m_iD;
120 bool m_iDHasBeenSet = false;
121
122 Aws::String m_emailAddress;
123 bool m_emailAddressHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace Glacier
128} // namespace Aws
Grantee & WithDisplayName(Aws::String &&value)
Definition Grantee.h:63
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDisplayName(Aws::String &&value)
Definition Grantee.h:60
Grantee & WithEmailAddress(const char *value)
Definition Grantee.h:106
Grantee & WithURI(const char *value)
Definition Grantee.h:78
void SetType(Type &&value)
Definition Grantee.h:48
bool TypeHasBeenSet() const
Definition Grantee.h:46
Grantee & WithID(const char *value)
Definition Grantee.h:92
void SetID(Aws::String &&value)
Definition Grantee.h:88
Grantee & WithID(Aws::String &&value)
Definition Grantee.h:91
void SetURI(const char *value)
Definition Grantee.h:75
void SetURI(Aws::String &&value)
Definition Grantee.h:74
Grantee & WithDisplayName(const char *value)
Definition Grantee.h:64
const Aws::String & GetID() const
Definition Grantee.h:85
bool DisplayNameHasBeenSet() const
Definition Grantee.h:58
AWS_GLACIER_API Grantee()
void SetEmailAddress(const Aws::String &value)
Definition Grantee.h:101
const Type & GetType() const
Definition Grantee.h:45
Grantee & WithURI(const Aws::String &value)
Definition Grantee.h:76
Grantee & WithID(const Aws::String &value)
Definition Grantee.h:90
Grantee & WithEmailAddress(Aws::String &&value)
Definition Grantee.h:105
const Aws::String & GetDisplayName() const
Definition Grantee.h:57
bool URIHasBeenSet() const
Definition Grantee.h:72
bool IDHasBeenSet() const
Definition Grantee.h:86
AWS_GLACIER_API Grantee(Aws::Utils::Json::JsonView jsonValue)
void SetID(const char *value)
Definition Grantee.h:89
void SetDisplayName(const Aws::String &value)
Definition Grantee.h:59
bool EmailAddressHasBeenSet() const
Definition Grantee.h:100
const Aws::String & GetEmailAddress() const
Definition Grantee.h:99
Grantee & WithEmailAddress(const Aws::String &value)
Definition Grantee.h:104
const Aws::String & GetURI() const
Definition Grantee.h:71
void SetType(const Type &value)
Definition Grantee.h:47
Grantee & WithDisplayName(const Aws::String &value)
Definition Grantee.h:62
void SetDisplayName(const char *value)
Definition Grantee.h:61
Grantee & WithType(Type &&value)
Definition Grantee.h:50
AWS_GLACIER_API Grantee & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetID(const Aws::String &value)
Definition Grantee.h:87
void SetURI(const Aws::String &value)
Definition Grantee.h:73
void SetEmailAddress(const char *value)
Definition Grantee.h:103
Grantee & WithURI(Aws::String &&value)
Definition Grantee.h:77
void SetEmailAddress(Aws::String &&value)
Definition Grantee.h:102
Grantee & WithType(const Type &value)
Definition Grantee.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue