AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 Type GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(Type value) { m_typeHasBeenSet = true; m_type = value; }
48 inline Grantee& WithType(Type value) { SetType(value); return *this;}
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) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
59 template<typename DisplayNameT = Aws::String>
60 Grantee& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetURI() const { return m_uRI; }
68 inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; }
69 template<typename URIT = Aws::String>
70 void SetURI(URIT&& value) { m_uRIHasBeenSet = true; m_uRI = std::forward<URIT>(value); }
71 template<typename URIT = Aws::String>
72 Grantee& WithURI(URIT&& value) { SetURI(std::forward<URIT>(value)); return *this;}
74
76
79 inline const Aws::String& GetID() const { return m_iD; }
80 inline bool IDHasBeenSet() const { return m_iDHasBeenSet; }
81 template<typename IDT = Aws::String>
82 void SetID(IDT&& value) { m_iDHasBeenSet = true; m_iD = std::forward<IDT>(value); }
83 template<typename IDT = Aws::String>
84 Grantee& WithID(IDT&& value) { SetID(std::forward<IDT>(value)); return *this;}
86
88
91 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
92 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
93 template<typename EmailAddressT = Aws::String>
94 void SetEmailAddress(EmailAddressT&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::forward<EmailAddressT>(value); }
95 template<typename EmailAddressT = Aws::String>
96 Grantee& WithEmailAddress(EmailAddressT&& value) { SetEmailAddress(std::forward<EmailAddressT>(value)); return *this;}
98 private:
99
100 Type m_type{Type::NOT_SET};
101 bool m_typeHasBeenSet = false;
102
103 Aws::String m_displayName;
104 bool m_displayNameHasBeenSet = false;
105
106 Aws::String m_uRI;
107 bool m_uRIHasBeenSet = false;
108
109 Aws::String m_iD;
110 bool m_iDHasBeenSet = false;
111
112 Aws::String m_emailAddress;
113 bool m_emailAddressHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace Glacier
118} // namespace Aws
void SetEmailAddress(EmailAddressT &&value)
Definition Grantee.h:94
AWS_GLACIER_API Aws::Utils::Json::JsonValue Jsonize() const
bool TypeHasBeenSet() const
Definition Grantee.h:46
void SetDisplayName(DisplayNameT &&value)
Definition Grantee.h:58
const Aws::String & GetID() const
Definition Grantee.h:79
bool DisplayNameHasBeenSet() const
Definition Grantee.h:56
Grantee & WithURI(URIT &&value)
Definition Grantee.h:72
Grantee & WithEmailAddress(EmailAddressT &&value)
Definition Grantee.h:96
Grantee & WithID(IDT &&value)
Definition Grantee.h:84
const Aws::String & GetDisplayName() const
Definition Grantee.h:55
Grantee & WithType(Type value)
Definition Grantee.h:48
bool URIHasBeenSet() const
Definition Grantee.h:68
bool IDHasBeenSet() const
Definition Grantee.h:80
AWS_GLACIER_API Grantee(Aws::Utils::Json::JsonView jsonValue)
bool EmailAddressHasBeenSet() const
Definition Grantee.h:92
AWS_GLACIER_API Grantee()=default
const Aws::String & GetEmailAddress() const
Definition Grantee.h:91
const Aws::String & GetURI() const
Definition Grantee.h:67
void SetType(Type value)
Definition Grantee.h:47
AWS_GLACIER_API Grantee & operator=(Aws::Utils::Json::JsonView jsonValue)
Grantee & WithDisplayName(DisplayNameT &&value)
Definition Grantee.h:60
void SetURI(URIT &&value)
Definition Grantee.h:70
void SetID(IDT &&value)
Definition Grantee.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue