AWS SDK for C++  1.9.104
AWS SDK for C++
ListAccessControlRulesResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace WorkMail
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::Vector<AccessControlRule>& GetRules() const{ return m_rules; }
40 
44  inline void SetRules(const Aws::Vector<AccessControlRule>& value) { m_rules = value; }
45 
49  inline void SetRules(Aws::Vector<AccessControlRule>&& value) { m_rules = std::move(value); }
50 
54  inline ListAccessControlRulesResult& WithRules(const Aws::Vector<AccessControlRule>& value) { SetRules(value); return *this;}
55 
59  inline ListAccessControlRulesResult& WithRules(Aws::Vector<AccessControlRule>&& value) { SetRules(std::move(value)); return *this;}
60 
64  inline ListAccessControlRulesResult& AddRules(const AccessControlRule& value) { m_rules.push_back(value); return *this; }
65 
69  inline ListAccessControlRulesResult& AddRules(AccessControlRule&& value) { m_rules.push_back(std::move(value)); return *this; }
70 
71  private:
72 
74  };
75 
76 } // namespace Model
77 } // namespace WorkMail
78 } // namespace Aws
Aws::WorkMail::Model::ListAccessControlRulesResult::GetRules
const Aws::Vector< AccessControlRule > & GetRules() const
Definition: ListAccessControlRulesResult.h:39
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::WorkMail::Model::ListAccessControlRulesResult::WithRules
ListAccessControlRulesResult & WithRules(Aws::Vector< AccessControlRule > &&value)
Definition: ListAccessControlRulesResult.h:59
Aws::WorkMail::Model::ListAccessControlRulesResult::SetRules
void SetRules(const Aws::Vector< AccessControlRule > &value)
Definition: ListAccessControlRulesResult.h:44
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
WorkMail_EXPORTS.h
AWSVector.h
Aws::WorkMail::Model::ListAccessControlRulesResult::AddRules
ListAccessControlRulesResult & AddRules(const AccessControlRule &value)
Definition: ListAccessControlRulesResult.h:64
Aws::WorkMail::Model::ListAccessControlRulesResult
Definition: ListAccessControlRulesResult.h:29
Aws::WorkMail::Model::ListAccessControlRulesResult::operator=
ListAccessControlRulesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AccessControlRule.h
Aws::WorkMail::Model::ListAccessControlRulesResult::AddRules
ListAccessControlRulesResult & AddRules(AccessControlRule &&value)
Definition: ListAccessControlRulesResult.h:69
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::AccessControlRule
Definition: AccessControlRule.h:36
Aws::WorkMail::Model::ListAccessControlRulesResult::ListAccessControlRulesResult
ListAccessControlRulesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::ListAccessControlRulesResult::WithRules
ListAccessControlRulesResult & WithRules(const Aws::Vector< AccessControlRule > &value)
Definition: ListAccessControlRulesResult.h:54
Aws::WorkMail::Model::ListAccessControlRulesResult::SetRules
void SetRules(Aws::Vector< AccessControlRule > &&value)
Definition: ListAccessControlRulesResult.h:49
Aws::WorkMail::Model::ListAccessControlRulesResult::ListAccessControlRulesResult
ListAccessControlRulesResult()