AWS SDK for C++  1.9.108
AWS SDK for C++
GetAccessControlEffectResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace WorkMail
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const AccessControlRuleEffect& GetEffect() const{ return m_effect; }
41 
45  inline void SetEffect(const AccessControlRuleEffect& value) { m_effect = value; }
46 
50  inline void SetEffect(AccessControlRuleEffect&& value) { m_effect = std::move(value); }
51 
55  inline GetAccessControlEffectResult& WithEffect(const AccessControlRuleEffect& value) { SetEffect(value); return *this;}
56 
60  inline GetAccessControlEffectResult& WithEffect(AccessControlRuleEffect&& value) { SetEffect(std::move(value)); return *this;}
61 
62 
66  inline const Aws::Vector<Aws::String>& GetMatchedRules() const{ return m_matchedRules; }
67 
71  inline void SetMatchedRules(const Aws::Vector<Aws::String>& value) { m_matchedRules = value; }
72 
76  inline void SetMatchedRules(Aws::Vector<Aws::String>&& value) { m_matchedRules = std::move(value); }
77 
81  inline GetAccessControlEffectResult& WithMatchedRules(const Aws::Vector<Aws::String>& value) { SetMatchedRules(value); return *this;}
82 
86  inline GetAccessControlEffectResult& WithMatchedRules(Aws::Vector<Aws::String>&& value) { SetMatchedRules(std::move(value)); return *this;}
87 
91  inline GetAccessControlEffectResult& AddMatchedRules(const Aws::String& value) { m_matchedRules.push_back(value); return *this; }
92 
96  inline GetAccessControlEffectResult& AddMatchedRules(Aws::String&& value) { m_matchedRules.push_back(std::move(value)); return *this; }
97 
101  inline GetAccessControlEffectResult& AddMatchedRules(const char* value) { m_matchedRules.push_back(value); return *this; }
102 
103  private:
104 
105  AccessControlRuleEffect m_effect;
106 
107  Aws::Vector<Aws::String> m_matchedRules;
108  };
109 
110 } // namespace Model
111 } // namespace WorkMail
112 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::WorkMail::Model::GetAccessControlEffectResult::SetMatchedRules
void SetMatchedRules(const Aws::Vector< Aws::String > &value)
Definition: GetAccessControlEffectResult.h:71
Aws::WorkMail::Model::GetAccessControlEffectResult::WithEffect
GetAccessControlEffectResult & WithEffect(const AccessControlRuleEffect &value)
Definition: GetAccessControlEffectResult.h:55
Aws::WorkMail::Model::GetAccessControlEffectResult::SetMatchedRules
void SetMatchedRules(Aws::Vector< Aws::String > &&value)
Definition: GetAccessControlEffectResult.h:76
Aws::WorkMail::Model::GetAccessControlEffectResult
Definition: GetAccessControlEffectResult.h:30
Aws::WorkMail::Model::GetAccessControlEffectResult::WithEffect
GetAccessControlEffectResult & WithEffect(AccessControlRuleEffect &&value)
Definition: GetAccessControlEffectResult.h:60
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
WorkMail_EXPORTS.h
Aws::WorkMail::Model::GetAccessControlEffectResult::SetEffect
void SetEffect(const AccessControlRuleEffect &value)
Definition: GetAccessControlEffectResult.h:45
AWSVector.h
Aws::WorkMail::Model::AccessControlRuleEffect
AccessControlRuleEffect
Definition: AccessControlRuleEffect.h:17
Aws::WorkMail::Model::GetAccessControlEffectResult::AddMatchedRules
GetAccessControlEffectResult & AddMatchedRules(const Aws::String &value)
Definition: GetAccessControlEffectResult.h:91
Aws::WorkMail::Model::GetAccessControlEffectResult::AddMatchedRules
GetAccessControlEffectResult & AddMatchedRules(Aws::String &&value)
Definition: GetAccessControlEffectResult.h:96
AccessControlRuleEffect.h
Aws::WorkMail::Model::GetAccessControlEffectResult::SetEffect
void SetEffect(AccessControlRuleEffect &&value)
Definition: GetAccessControlEffectResult.h:50
Aws::WorkMail::Model::GetAccessControlEffectResult::GetAccessControlEffectResult
GetAccessControlEffectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WorkMail::Model::GetAccessControlEffectResult::GetEffect
const AccessControlRuleEffect & GetEffect() const
Definition: GetAccessControlEffectResult.h:40
Aws::WorkMail::Model::GetAccessControlEffectResult::operator=
GetAccessControlEffectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WorkMail::Model::GetAccessControlEffectResult::WithMatchedRules
GetAccessControlEffectResult & WithMatchedRules(const Aws::Vector< Aws::String > &value)
Definition: GetAccessControlEffectResult.h:81
AWSString.h
Aws::WorkMail::Model::GetAccessControlEffectResult::WithMatchedRules
GetAccessControlEffectResult & WithMatchedRules(Aws::Vector< Aws::String > &&value)
Definition: GetAccessControlEffectResult.h:86
Aws
Definition: AccessManagementClient.h:15
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::GetAccessControlEffectResult::GetAccessControlEffectResult
GetAccessControlEffectResult()
Aws::WorkMail::Model::GetAccessControlEffectResult::GetMatchedRules
const Aws::Vector< Aws::String > & GetMatchedRules() const
Definition: GetAccessControlEffectResult.h:66
Aws::WorkMail::Model::GetAccessControlEffectResult::AddMatchedRules
GetAccessControlEffectResult & AddMatchedRules(const char *value)
Definition: GetAccessControlEffectResult.h:101