AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetAccessControlEffectResult.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/workmail/model/AccessControlRuleEffect.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace WorkMail
26{
27namespace Model
28{
30 {
31 public:
32 AWS_WORKMAIL_API GetAccessControlEffectResult();
35
36
38
41 inline const AccessControlRuleEffect& GetEffect() const{ return m_effect; }
42 inline void SetEffect(const AccessControlRuleEffect& value) { m_effect = value; }
43 inline void SetEffect(AccessControlRuleEffect&& value) { m_effect = std::move(value); }
44 inline GetAccessControlEffectResult& WithEffect(const AccessControlRuleEffect& value) { SetEffect(value); return *this;}
45 inline GetAccessControlEffectResult& WithEffect(AccessControlRuleEffect&& value) { SetEffect(std::move(value)); return *this;}
47
49
52 inline const Aws::Vector<Aws::String>& GetMatchedRules() const{ return m_matchedRules; }
53 inline void SetMatchedRules(const Aws::Vector<Aws::String>& value) { m_matchedRules = value; }
54 inline void SetMatchedRules(Aws::Vector<Aws::String>&& value) { m_matchedRules = std::move(value); }
57 inline GetAccessControlEffectResult& AddMatchedRules(const Aws::String& value) { m_matchedRules.push_back(value); return *this; }
58 inline GetAccessControlEffectResult& AddMatchedRules(Aws::String&& value) { m_matchedRules.push_back(std::move(value)); return *this; }
59 inline GetAccessControlEffectResult& AddMatchedRules(const char* value) { m_matchedRules.push_back(value); return *this; }
61
63
64 inline const Aws::String& GetRequestId() const{ return m_requestId; }
65 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
66 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
67 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
68 inline GetAccessControlEffectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
69 inline GetAccessControlEffectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
70 inline GetAccessControlEffectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
72 private:
73
75
76 Aws::Vector<Aws::String> m_matchedRules;
77
78 Aws::String m_requestId;
79 };
80
81} // namespace Model
82} // namespace WorkMail
83} // namespace Aws
GetAccessControlEffectResult & WithRequestId(const char *value)
GetAccessControlEffectResult & WithRequestId(Aws::String &&value)
GetAccessControlEffectResult & AddMatchedRules(const Aws::String &value)
void SetEffect(const AccessControlRuleEffect &value)
GetAccessControlEffectResult & WithEffect(const AccessControlRuleEffect &value)
GetAccessControlEffectResult & AddMatchedRules(Aws::String &&value)
AWS_WORKMAIL_API GetAccessControlEffectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetMatchedRules(Aws::Vector< Aws::String > &&value)
void SetMatchedRules(const Aws::Vector< Aws::String > &value)
GetAccessControlEffectResult & WithRequestId(const Aws::String &value)
GetAccessControlEffectResult & WithMatchedRules(Aws::Vector< Aws::String > &&value)
GetAccessControlEffectResult & WithEffect(AccessControlRuleEffect &&value)
AWS_WORKMAIL_API GetAccessControlEffectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Aws::String > & GetMatchedRules() const
GetAccessControlEffectResult & AddMatchedRules(const char *value)
GetAccessControlEffectResult & WithMatchedRules(const Aws::Vector< 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