AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetImpersonationRoleEffectResult.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/workmail/model/ImpersonationRoleType.h>
9#include <aws/workmail/model/AccessEffect.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/workmail/model/ImpersonationMatchedRule.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:
37
38
40
43 inline const ImpersonationRoleType& GetType() const{ return m_type; }
44 inline void SetType(const ImpersonationRoleType& value) { m_type = value; }
45 inline void SetType(ImpersonationRoleType&& value) { m_type = std::move(value); }
46 inline GetImpersonationRoleEffectResult& WithType(const ImpersonationRoleType& value) { SetType(value); return *this;}
47 inline GetImpersonationRoleEffectResult& WithType(ImpersonationRoleType&& value) { SetType(std::move(value)); return *this;}
49
51
55 inline const AccessEffect& GetEffect() const{ return m_effect; }
56 inline void SetEffect(const AccessEffect& value) { m_effect = value; }
57 inline void SetEffect(AccessEffect&& value) { m_effect = std::move(value); }
58 inline GetImpersonationRoleEffectResult& WithEffect(const AccessEffect& value) { SetEffect(value); return *this;}
59 inline GetImpersonationRoleEffectResult& WithEffect(AccessEffect&& value) { SetEffect(std::move(value)); return *this;}
61
63
67 inline const Aws::Vector<ImpersonationMatchedRule>& GetMatchedRules() const{ return m_matchedRules; }
68 inline void SetMatchedRules(const Aws::Vector<ImpersonationMatchedRule>& value) { m_matchedRules = value; }
69 inline void SetMatchedRules(Aws::Vector<ImpersonationMatchedRule>&& value) { m_matchedRules = std::move(value); }
72 inline GetImpersonationRoleEffectResult& AddMatchedRules(const ImpersonationMatchedRule& value) { m_matchedRules.push_back(value); return *this; }
73 inline GetImpersonationRoleEffectResult& AddMatchedRules(ImpersonationMatchedRule&& value) { m_matchedRules.push_back(std::move(value)); return *this; }
75
77
78 inline const Aws::String& GetRequestId() const{ return m_requestId; }
79 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
80 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
81 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
82 inline GetImpersonationRoleEffectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
83 inline GetImpersonationRoleEffectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
84 inline GetImpersonationRoleEffectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
86 private:
87
89
90 AccessEffect m_effect;
91
93
94 Aws::String m_requestId;
95 };
96
97} // namespace Model
98} // namespace WorkMail
99} // namespace Aws
GetImpersonationRoleEffectResult & WithRequestId(Aws::String &&value)
GetImpersonationRoleEffectResult & WithRequestId(const Aws::String &value)
const Aws::Vector< ImpersonationMatchedRule > & GetMatchedRules() const
void SetMatchedRules(const Aws::Vector< ImpersonationMatchedRule > &value)
AWS_WORKMAIL_API GetImpersonationRoleEffectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetImpersonationRoleEffectResult & AddMatchedRules(ImpersonationMatchedRule &&value)
GetImpersonationRoleEffectResult & WithType(const ImpersonationRoleType &value)
GetImpersonationRoleEffectResult & WithEffect(AccessEffect &&value)
void SetMatchedRules(Aws::Vector< ImpersonationMatchedRule > &&value)
GetImpersonationRoleEffectResult & WithMatchedRules(const Aws::Vector< ImpersonationMatchedRule > &value)
AWS_WORKMAIL_API GetImpersonationRoleEffectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetImpersonationRoleEffectResult & WithRequestId(const char *value)
GetImpersonationRoleEffectResult & WithMatchedRules(Aws::Vector< ImpersonationMatchedRule > &&value)
GetImpersonationRoleEffectResult & WithType(ImpersonationRoleType &&value)
GetImpersonationRoleEffectResult & WithEffect(const AccessEffect &value)
GetImpersonationRoleEffectResult & AddMatchedRules(const ImpersonationMatchedRule &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