AWS SDK for C++  1.9.105
AWS SDK for C++
MobileDeviceAccessMatchedRule.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace WorkMail
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetMobileDeviceAccessRuleId() const{ return m_mobileDeviceAccessRuleId; }
44 
48  inline bool MobileDeviceAccessRuleIdHasBeenSet() const { return m_mobileDeviceAccessRuleIdHasBeenSet; }
49 
53  inline void SetMobileDeviceAccessRuleId(const Aws::String& value) { m_mobileDeviceAccessRuleIdHasBeenSet = true; m_mobileDeviceAccessRuleId = value; }
54 
58  inline void SetMobileDeviceAccessRuleId(Aws::String&& value) { m_mobileDeviceAccessRuleIdHasBeenSet = true; m_mobileDeviceAccessRuleId = std::move(value); }
59 
63  inline void SetMobileDeviceAccessRuleId(const char* value) { m_mobileDeviceAccessRuleIdHasBeenSet = true; m_mobileDeviceAccessRuleId.assign(value); }
64 
68  inline MobileDeviceAccessMatchedRule& WithMobileDeviceAccessRuleId(const Aws::String& value) { SetMobileDeviceAccessRuleId(value); return *this;}
69 
73  inline MobileDeviceAccessMatchedRule& WithMobileDeviceAccessRuleId(Aws::String&& value) { SetMobileDeviceAccessRuleId(std::move(value)); return *this;}
74 
78  inline MobileDeviceAccessMatchedRule& WithMobileDeviceAccessRuleId(const char* value) { SetMobileDeviceAccessRuleId(value); return *this;}
79 
80 
84  inline const Aws::String& GetName() const{ return m_name; }
85 
89  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 
94  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
95 
99  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
100 
104  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
105 
109  inline MobileDeviceAccessMatchedRule& WithName(const Aws::String& value) { SetName(value); return *this;}
110 
114  inline MobileDeviceAccessMatchedRule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
115 
119  inline MobileDeviceAccessMatchedRule& WithName(const char* value) { SetName(value); return *this;}
120 
121  private:
122 
123  Aws::String m_mobileDeviceAccessRuleId;
124  bool m_mobileDeviceAccessRuleIdHasBeenSet;
125 
126  Aws::String m_name;
127  bool m_nameHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace WorkMail
132 } // namespace Aws
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::operator=
MobileDeviceAccessMatchedRule & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::SetMobileDeviceAccessRuleId
void SetMobileDeviceAccessRuleId(Aws::String &&value)
Definition: MobileDeviceAccessMatchedRule.h:58
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::GetMobileDeviceAccessRuleId
const Aws::String & GetMobileDeviceAccessRuleId() const
Definition: MobileDeviceAccessMatchedRule.h:43
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::WithMobileDeviceAccessRuleId
MobileDeviceAccessMatchedRule & WithMobileDeviceAccessRuleId(Aws::String &&value)
Definition: MobileDeviceAccessMatchedRule.h:73
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::SetMobileDeviceAccessRuleId
void SetMobileDeviceAccessRuleId(const char *value)
Definition: MobileDeviceAccessMatchedRule.h:63
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::SetName
void SetName(const char *value)
Definition: MobileDeviceAccessMatchedRule.h:104
WorkMail_EXPORTS.h
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::WithName
MobileDeviceAccessMatchedRule & WithName(const Aws::String &value)
Definition: MobileDeviceAccessMatchedRule.h:109
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::WithName
MobileDeviceAccessMatchedRule & WithName(Aws::String &&value)
Definition: MobileDeviceAccessMatchedRule.h:114
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::SetMobileDeviceAccessRuleId
void SetMobileDeviceAccessRuleId(const Aws::String &value)
Definition: MobileDeviceAccessMatchedRule.h:53
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::SetName
void SetName(Aws::String &&value)
Definition: MobileDeviceAccessMatchedRule.h:99
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::WithMobileDeviceAccessRuleId
MobileDeviceAccessMatchedRule & WithMobileDeviceAccessRuleId(const Aws::String &value)
Definition: MobileDeviceAccessMatchedRule.h:68
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::SetName
void SetName(const Aws::String &value)
Definition: MobileDeviceAccessMatchedRule.h:94
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::WithName
MobileDeviceAccessMatchedRule & WithName(const char *value)
Definition: MobileDeviceAccessMatchedRule.h:119
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::NameHasBeenSet
bool NameHasBeenSet() const
Definition: MobileDeviceAccessMatchedRule.h:89
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::MobileDeviceAccessMatchedRule
MobileDeviceAccessMatchedRule()
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::WithMobileDeviceAccessRuleId
MobileDeviceAccessMatchedRule & WithMobileDeviceAccessRuleId(const char *value)
Definition: MobileDeviceAccessMatchedRule.h:78
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::MobileDeviceAccessRuleIdHasBeenSet
bool MobileDeviceAccessRuleIdHasBeenSet() const
Definition: MobileDeviceAccessMatchedRule.h:48
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule
Definition: MobileDeviceAccessMatchedRule.h:32
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws
Definition: AccessManagementClient.h:15
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::MobileDeviceAccessMatchedRule
MobileDeviceAccessMatchedRule(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WorkMail::Model::MobileDeviceAccessMatchedRule::GetName
const Aws::String & GetName() const
Definition: MobileDeviceAccessMatchedRule.h:84