AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IpRuleT = Aws::String>
48 void SetIpRule(IpRuleT&& value) { m_ipRuleHasBeenSet = true; m_ipRule = std::forward<IpRuleT>(value); }
49 template<typename IpRuleT = Aws::String>
50 IpRuleItem& WithIpRule(IpRuleT&& value) { SetIpRule(std::forward<IpRuleT>(value)); return *this;}
52
54
57 inline const Aws::String& GetRuleDesc() const { return m_ruleDesc; }
58 inline bool RuleDescHasBeenSet() const { return m_ruleDescHasBeenSet; }
59 template<typename RuleDescT = Aws::String>
60 void SetRuleDesc(RuleDescT&& value) { m_ruleDescHasBeenSet = true; m_ruleDesc = std::forward<RuleDescT>(value); }
61 template<typename RuleDescT = Aws::String>
62 IpRuleItem& WithRuleDesc(RuleDescT&& value) { SetRuleDesc(std::forward<RuleDescT>(value)); return *this;}
64 private:
65
66 Aws::String m_ipRule;
67 bool m_ipRuleHasBeenSet = false;
68
69 Aws::String m_ruleDesc;
70 bool m_ruleDescHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace WorkSpaces
75} // namespace Aws
void SetRuleDesc(RuleDescT &&value)
Definition IpRuleItem.h:60
void SetIpRule(IpRuleT &&value)
Definition IpRuleItem.h:48
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
IpRuleItem & WithRuleDesc(RuleDescT &&value)
Definition IpRuleItem.h:62
AWS_WORKSPACES_API IpRuleItem & operator=(Aws::Utils::Json::JsonView jsonValue)
IpRuleItem & WithIpRule(IpRuleT &&value)
Definition IpRuleItem.h:50
AWS_WORKSPACES_API IpRuleItem(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRuleDesc() const
Definition IpRuleItem.h:57
const Aws::String & GetIpRule() const
Definition IpRuleItem.h:45
AWS_WORKSPACES_API IpRuleItem()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue