AWS SDK for C++  1.9.108
AWS SDK for C++
ListMobileDeviceAccessRulesResult.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 
40  inline const Aws::Vector<MobileDeviceAccessRule>& GetRules() const{ return m_rules; }
41 
46  inline void SetRules(const Aws::Vector<MobileDeviceAccessRule>& value) { m_rules = value; }
47 
52  inline void SetRules(Aws::Vector<MobileDeviceAccessRule>&& value) { m_rules = std::move(value); }
53 
58  inline ListMobileDeviceAccessRulesResult& WithRules(const Aws::Vector<MobileDeviceAccessRule>& value) { SetRules(value); return *this;}
59 
64  inline ListMobileDeviceAccessRulesResult& WithRules(Aws::Vector<MobileDeviceAccessRule>&& value) { SetRules(std::move(value)); return *this;}
65 
70  inline ListMobileDeviceAccessRulesResult& AddRules(const MobileDeviceAccessRule& value) { m_rules.push_back(value); return *this; }
71 
76  inline ListMobileDeviceAccessRulesResult& AddRules(MobileDeviceAccessRule&& value) { m_rules.push_back(std::move(value)); return *this; }
77 
78  private:
79 
81  };
82 
83 } // namespace Model
84 } // namespace WorkMail
85 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::WorkMail::Model::ListMobileDeviceAccessRulesResult::WithRules
ListMobileDeviceAccessRulesResult & WithRules(const Aws::Vector< MobileDeviceAccessRule > &value)
Definition: ListMobileDeviceAccessRulesResult.h:58
Aws::WorkMail::Model::MobileDeviceAccessRule
Definition: MobileDeviceAccessRule.h:36
Aws::WorkMail::Model::ListMobileDeviceAccessRulesResult::AddRules
ListMobileDeviceAccessRulesResult & AddRules(const MobileDeviceAccessRule &value)
Definition: ListMobileDeviceAccessRulesResult.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
MobileDeviceAccessRule.h
WorkMail_EXPORTS.h
AWSVector.h
Aws::WorkMail::Model::ListMobileDeviceAccessRulesResult::SetRules
void SetRules(const Aws::Vector< MobileDeviceAccessRule > &value)
Definition: ListMobileDeviceAccessRulesResult.h:46
Aws::WorkMail::Model::ListMobileDeviceAccessRulesResult::GetRules
const Aws::Vector< MobileDeviceAccessRule > & GetRules() const
Definition: ListMobileDeviceAccessRulesResult.h:40
Aws::WorkMail::Model::ListMobileDeviceAccessRulesResult::AddRules
ListMobileDeviceAccessRulesResult & AddRules(MobileDeviceAccessRule &&value)
Definition: ListMobileDeviceAccessRulesResult.h:76
Aws::WorkMail::Model::ListMobileDeviceAccessRulesResult::operator=
ListMobileDeviceAccessRulesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WorkMail::Model::ListMobileDeviceAccessRulesResult::WithRules
ListMobileDeviceAccessRulesResult & WithRules(Aws::Vector< MobileDeviceAccessRule > &&value)
Definition: ListMobileDeviceAccessRulesResult.h:64
Aws
Definition: AccessManagementClient.h:15
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::ListMobileDeviceAccessRulesResult::ListMobileDeviceAccessRulesResult
ListMobileDeviceAccessRulesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WorkMail::Model::ListMobileDeviceAccessRulesResult::ListMobileDeviceAccessRulesResult
ListMobileDeviceAccessRulesResult()
Aws::WorkMail::Model::ListMobileDeviceAccessRulesResult::SetRules
void SetRules(Aws::Vector< MobileDeviceAccessRule > &&value)
Definition: ListMobileDeviceAccessRulesResult.h:52
Aws::WorkMail::Model::ListMobileDeviceAccessRulesResult
Definition: ListMobileDeviceAccessRulesResult.h:29