AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetImpersonationRoleResult.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workmail/model/ImpersonationRoleType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/workmail/model/ImpersonationRule.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace WorkMail
28{
29namespace Model
30{
32 {
33 public:
34 AWS_WORKMAIL_API GetImpersonationRoleResult();
37
38
40
43 inline const Aws::String& GetImpersonationRoleId() const{ return m_impersonationRoleId; }
44 inline void SetImpersonationRoleId(const Aws::String& value) { m_impersonationRoleId = value; }
45 inline void SetImpersonationRoleId(Aws::String&& value) { m_impersonationRoleId = std::move(value); }
46 inline void SetImpersonationRoleId(const char* value) { m_impersonationRoleId.assign(value); }
48 inline GetImpersonationRoleResult& WithImpersonationRoleId(Aws::String&& value) { SetImpersonationRoleId(std::move(value)); return *this;}
49 inline GetImpersonationRoleResult& WithImpersonationRoleId(const char* value) { SetImpersonationRoleId(value); return *this;}
51
53
56 inline const Aws::String& GetName() const{ return m_name; }
57 inline void SetName(const Aws::String& value) { m_name = value; }
58 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
59 inline void SetName(const char* value) { m_name.assign(value); }
60 inline GetImpersonationRoleResult& WithName(const Aws::String& value) { SetName(value); return *this;}
61 inline GetImpersonationRoleResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
62 inline GetImpersonationRoleResult& WithName(const char* value) { SetName(value); return *this;}
64
66
69 inline const ImpersonationRoleType& GetType() const{ return m_type; }
70 inline void SetType(const ImpersonationRoleType& value) { m_type = value; }
71 inline void SetType(ImpersonationRoleType&& value) { m_type = std::move(value); }
72 inline GetImpersonationRoleResult& WithType(const ImpersonationRoleType& value) { SetType(value); return *this;}
73 inline GetImpersonationRoleResult& WithType(ImpersonationRoleType&& value) { SetType(std::move(value)); return *this;}
75
77
80 inline const Aws::String& GetDescription() const{ return m_description; }
81 inline void SetDescription(const Aws::String& value) { m_description = value; }
82 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
83 inline void SetDescription(const char* value) { m_description.assign(value); }
84 inline GetImpersonationRoleResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
85 inline GetImpersonationRoleResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
86 inline GetImpersonationRoleResult& WithDescription(const char* value) { SetDescription(value); return *this;}
88
90
93 inline const Aws::Vector<ImpersonationRule>& GetRules() const{ return m_rules; }
94 inline void SetRules(const Aws::Vector<ImpersonationRule>& value) { m_rules = value; }
95 inline void SetRules(Aws::Vector<ImpersonationRule>&& value) { m_rules = std::move(value); }
96 inline GetImpersonationRoleResult& WithRules(const Aws::Vector<ImpersonationRule>& value) { SetRules(value); return *this;}
97 inline GetImpersonationRoleResult& WithRules(Aws::Vector<ImpersonationRule>&& value) { SetRules(std::move(value)); return *this;}
98 inline GetImpersonationRoleResult& AddRules(const ImpersonationRule& value) { m_rules.push_back(value); return *this; }
99 inline GetImpersonationRoleResult& AddRules(ImpersonationRule&& value) { m_rules.push_back(std::move(value)); return *this; }
101
103
106 inline const Aws::Utils::DateTime& GetDateCreated() const{ return m_dateCreated; }
107 inline void SetDateCreated(const Aws::Utils::DateTime& value) { m_dateCreated = value; }
108 inline void SetDateCreated(Aws::Utils::DateTime&& value) { m_dateCreated = std::move(value); }
110 inline GetImpersonationRoleResult& WithDateCreated(Aws::Utils::DateTime&& value) { SetDateCreated(std::move(value)); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetDateModified() const{ return m_dateModified; }
118 inline void SetDateModified(const Aws::Utils::DateTime& value) { m_dateModified = value; }
119 inline void SetDateModified(Aws::Utils::DateTime&& value) { m_dateModified = std::move(value); }
121 inline GetImpersonationRoleResult& WithDateModified(Aws::Utils::DateTime&& value) { SetDateModified(std::move(value)); return *this;}
123
125
126 inline const Aws::String& GetRequestId() const{ return m_requestId; }
127 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
128 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
129 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
130 inline GetImpersonationRoleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
131 inline GetImpersonationRoleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
132 inline GetImpersonationRoleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
134 private:
135
136 Aws::String m_impersonationRoleId;
137
138 Aws::String m_name;
139
141
142 Aws::String m_description;
143
145
146 Aws::Utils::DateTime m_dateCreated;
147
148 Aws::Utils::DateTime m_dateModified;
149
150 Aws::String m_requestId;
151 };
152
153} // namespace Model
154} // namespace WorkMail
155} // namespace Aws
void SetDateCreated(const Aws::Utils::DateTime &value)
GetImpersonationRoleResult & WithDateModified(Aws::Utils::DateTime &&value)
GetImpersonationRoleResult & WithName(Aws::String &&value)
GetImpersonationRoleResult & WithRequestId(const Aws::String &value)
void SetDateModified(const Aws::Utils::DateTime &value)
void SetType(const ImpersonationRoleType &value)
GetImpersonationRoleResult & WithRules(const Aws::Vector< ImpersonationRule > &value)
GetImpersonationRoleResult & WithDateModified(const Aws::Utils::DateTime &value)
GetImpersonationRoleResult & WithRules(Aws::Vector< ImpersonationRule > &&value)
GetImpersonationRoleResult & WithType(ImpersonationRoleType &&value)
AWS_WORKMAIL_API GetImpersonationRoleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< ImpersonationRule > & GetRules() const
GetImpersonationRoleResult & AddRules(const ImpersonationRule &value)
GetImpersonationRoleResult & WithDescription(const Aws::String &value)
GetImpersonationRoleResult & WithDescription(Aws::String &&value)
GetImpersonationRoleResult & WithDateCreated(const Aws::Utils::DateTime &value)
GetImpersonationRoleResult & WithRequestId(Aws::String &&value)
void SetRules(Aws::Vector< ImpersonationRule > &&value)
AWS_WORKMAIL_API GetImpersonationRoleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRules(const Aws::Vector< ImpersonationRule > &value)
GetImpersonationRoleResult & WithName(const Aws::String &value)
GetImpersonationRoleResult & WithImpersonationRoleId(Aws::String &&value)
GetImpersonationRoleResult & AddRules(ImpersonationRule &&value)
GetImpersonationRoleResult & WithType(const ImpersonationRoleType &value)
GetImpersonationRoleResult & WithName(const char *value)
GetImpersonationRoleResult & WithImpersonationRoleId(const char *value)
GetImpersonationRoleResult & WithDescription(const char *value)
GetImpersonationRoleResult & WithRequestId(const char *value)
GetImpersonationRoleResult & WithDateCreated(Aws::Utils::DateTime &&value)
GetImpersonationRoleResult & WithImpersonationRoleId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue