AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
StatelessRuleGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/fms/FMS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace FMS {
20namespace Model {
21
29 public:
30 AWS_FMS_API StatelessRuleGroup() = default;
34
36
39 inline const Aws::String& GetRuleGroupName() const { return m_ruleGroupName; }
40 inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
41 template <typename RuleGroupNameT = Aws::String>
42 void SetRuleGroupName(RuleGroupNameT&& value) {
43 m_ruleGroupNameHasBeenSet = true;
44 m_ruleGroupName = std::forward<RuleGroupNameT>(value);
45 }
46 template <typename RuleGroupNameT = Aws::String>
47 StatelessRuleGroup& WithRuleGroupName(RuleGroupNameT&& value) {
48 SetRuleGroupName(std::forward<RuleGroupNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetResourceId() const { return m_resourceId; }
58 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
59 template <typename ResourceIdT = Aws::String>
60 void SetResourceId(ResourceIdT&& value) {
61 m_resourceIdHasBeenSet = true;
62 m_resourceId = std::forward<ResourceIdT>(value);
63 }
64 template <typename ResourceIdT = Aws::String>
65 StatelessRuleGroup& WithResourceId(ResourceIdT&& value) {
66 SetResourceId(std::forward<ResourceIdT>(value));
67 return *this;
68 }
70
72
76 inline int GetPriority() const { return m_priority; }
77 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
78 inline void SetPriority(int value) {
79 m_priorityHasBeenSet = true;
80 m_priority = value;
81 }
82 inline StatelessRuleGroup& WithPriority(int value) {
83 SetPriority(value);
84 return *this;
85 }
87 private:
88 Aws::String m_ruleGroupName;
89
90 Aws::String m_resourceId;
91
92 int m_priority{0};
93 bool m_ruleGroupNameHasBeenSet = false;
94 bool m_resourceIdHasBeenSet = false;
95 bool m_priorityHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace FMS
100} // namespace Aws
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
StatelessRuleGroup & WithPriority(int value)
StatelessRuleGroup & WithRuleGroupName(RuleGroupNameT &&value)
void SetRuleGroupName(RuleGroupNameT &&value)
AWS_FMS_API StatelessRuleGroup()=default
const Aws::String & GetRuleGroupName() const
void SetResourceId(ResourceIdT &&value)
AWS_FMS_API StatelessRuleGroup(Aws::Utils::Json::JsonView jsonValue)
AWS_FMS_API StatelessRuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceId() const
StatelessRuleGroup & WithResourceId(ResourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue