AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IpRuleItem.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WorkSpaces
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_WORKSPACES_API IpRuleItem();
36 AWS_WORKSPACES_API IpRuleItem(Aws::Utils::Json::JsonView jsonValue);
37 AWS_WORKSPACES_API IpRuleItem& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetIpRule() const{ return m_ipRule; }
46 inline bool IpRuleHasBeenSet() const { return m_ipRuleHasBeenSet; }
47 inline void SetIpRule(const Aws::String& value) { m_ipRuleHasBeenSet = true; m_ipRule = value; }
48 inline void SetIpRule(Aws::String&& value) { m_ipRuleHasBeenSet = true; m_ipRule = std::move(value); }
49 inline void SetIpRule(const char* value) { m_ipRuleHasBeenSet = true; m_ipRule.assign(value); }
50 inline IpRuleItem& WithIpRule(const Aws::String& value) { SetIpRule(value); return *this;}
51 inline IpRuleItem& WithIpRule(Aws::String&& value) { SetIpRule(std::move(value)); return *this;}
52 inline IpRuleItem& WithIpRule(const char* value) { SetIpRule(value); return *this;}
54
56
59 inline const Aws::String& GetRuleDesc() const{ return m_ruleDesc; }
60 inline bool RuleDescHasBeenSet() const { return m_ruleDescHasBeenSet; }
61 inline void SetRuleDesc(const Aws::String& value) { m_ruleDescHasBeenSet = true; m_ruleDesc = value; }
62 inline void SetRuleDesc(Aws::String&& value) { m_ruleDescHasBeenSet = true; m_ruleDesc = std::move(value); }
63 inline void SetRuleDesc(const char* value) { m_ruleDescHasBeenSet = true; m_ruleDesc.assign(value); }
64 inline IpRuleItem& WithRuleDesc(const Aws::String& value) { SetRuleDesc(value); return *this;}
65 inline IpRuleItem& WithRuleDesc(Aws::String&& value) { SetRuleDesc(std::move(value)); return *this;}
66 inline IpRuleItem& WithRuleDesc(const char* value) { SetRuleDesc(value); return *this;}
68 private:
69
70 Aws::String m_ipRule;
71 bool m_ipRuleHasBeenSet = false;
72
73 Aws::String m_ruleDesc;
74 bool m_ruleDescHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace WorkSpaces
79} // namespace Aws
IpRuleItem & WithIpRule(const char *value)
Definition IpRuleItem.h:52
void SetRuleDesc(const char *value)
Definition IpRuleItem.h:63
void SetIpRule(const Aws::String &value)
Definition IpRuleItem.h:47
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WORKSPACES_API IpRuleItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIpRule(const char *value)
Definition IpRuleItem.h:49
void SetRuleDesc(const Aws::String &value)
Definition IpRuleItem.h:61
AWS_WORKSPACES_API IpRuleItem(Aws::Utils::Json::JsonView jsonValue)
void SetIpRule(Aws::String &&value)
Definition IpRuleItem.h:48
const Aws::String & GetRuleDesc() const
Definition IpRuleItem.h:59
IpRuleItem & WithRuleDesc(Aws::String &&value)
Definition IpRuleItem.h:65
const Aws::String & GetIpRule() const
Definition IpRuleItem.h:45
IpRuleItem & WithRuleDesc(const Aws::String &value)
Definition IpRuleItem.h:64
IpRuleItem & WithIpRule(Aws::String &&value)
Definition IpRuleItem.h:51
IpRuleItem & WithRuleDesc(const char *value)
Definition IpRuleItem.h:66
AWS_WORKSPACES_API IpRuleItem()
IpRuleItem & WithIpRule(const Aws::String &value)
Definition IpRuleItem.h:50
void SetRuleDesc(Aws::String &&value)
Definition IpRuleItem.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue