AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ImpersonationRole.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workmail/WorkMail_EXPORTS.h>
10#include <aws/workmail/model/ImpersonationRoleType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WorkMail {
22namespace Model {
23
31 public:
32 AWS_WORKMAIL_API ImpersonationRole() = default;
33 AWS_WORKMAIL_API ImpersonationRole(Aws::Utils::Json::JsonView jsonValue);
35 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetImpersonationRoleId() const { return m_impersonationRoleId; }
42 inline bool ImpersonationRoleIdHasBeenSet() const { return m_impersonationRoleIdHasBeenSet; }
43 template <typename ImpersonationRoleIdT = Aws::String>
44 void SetImpersonationRoleId(ImpersonationRoleIdT&& value) {
45 m_impersonationRoleIdHasBeenSet = true;
46 m_impersonationRoleId = std::forward<ImpersonationRoleIdT>(value);
47 }
48 template <typename ImpersonationRoleIdT = Aws::String>
49 ImpersonationRole& WithImpersonationRoleId(ImpersonationRoleIdT&& value) {
50 SetImpersonationRoleId(std::forward<ImpersonationRoleIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 ImpersonationRole& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline ImpersonationRoleType GetType() const { return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(ImpersonationRoleType value) {
80 m_typeHasBeenSet = true;
81 m_type = value;
82 }
84 SetType(value);
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetDateCreated() const { return m_dateCreated; }
94 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
95 template <typename DateCreatedT = Aws::Utils::DateTime>
96 void SetDateCreated(DateCreatedT&& value) {
97 m_dateCreatedHasBeenSet = true;
98 m_dateCreated = std::forward<DateCreatedT>(value);
99 }
100 template <typename DateCreatedT = Aws::Utils::DateTime>
101 ImpersonationRole& WithDateCreated(DateCreatedT&& value) {
102 SetDateCreated(std::forward<DateCreatedT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetDateModified() const { return m_dateModified; }
112 inline bool DateModifiedHasBeenSet() const { return m_dateModifiedHasBeenSet; }
113 template <typename DateModifiedT = Aws::Utils::DateTime>
114 void SetDateModified(DateModifiedT&& value) {
115 m_dateModifiedHasBeenSet = true;
116 m_dateModified = std::forward<DateModifiedT>(value);
117 }
118 template <typename DateModifiedT = Aws::Utils::DateTime>
119 ImpersonationRole& WithDateModified(DateModifiedT&& value) {
120 SetDateModified(std::forward<DateModifiedT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_impersonationRoleId;
126
127 Aws::String m_name;
128
130
131 Aws::Utils::DateTime m_dateCreated{};
132
133 Aws::Utils::DateTime m_dateModified{};
134 bool m_impersonationRoleIdHasBeenSet = false;
135 bool m_nameHasBeenSet = false;
136 bool m_typeHasBeenSet = false;
137 bool m_dateCreatedHasBeenSet = false;
138 bool m_dateModifiedHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace WorkMail
143} // namespace Aws
const Aws::String & GetImpersonationRoleId() const
AWS_WORKMAIL_API ImpersonationRole(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetDateModified() const
ImpersonationRoleType GetType() const
void SetDateCreated(DateCreatedT &&value)
ImpersonationRole & WithType(ImpersonationRoleType value)
ImpersonationRole & WithDateCreated(DateCreatedT &&value)
void SetImpersonationRoleId(ImpersonationRoleIdT &&value)
ImpersonationRole & WithDateModified(DateModifiedT &&value)
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ImpersonationRole & WithImpersonationRoleId(ImpersonationRoleIdT &&value)
void SetDateModified(DateModifiedT &&value)
const Aws::Utils::DateTime & GetDateCreated() const
ImpersonationRole & WithName(NameT &&value)
void SetType(ImpersonationRoleType value)
AWS_WORKMAIL_API ImpersonationRole & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKMAIL_API ImpersonationRole()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue