AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StatelessRuleGroup.h
1
6#pragma once
7#include <aws/fms/FMS_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 FMS
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_FMS_API StatelessRuleGroup() = default;
39
40
42
45 inline const Aws::String& GetRuleGroupName() const { return m_ruleGroupName; }
46 inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
47 template<typename RuleGroupNameT = Aws::String>
48 void SetRuleGroupName(RuleGroupNameT&& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = std::forward<RuleGroupNameT>(value); }
49 template<typename RuleGroupNameT = Aws::String>
50 StatelessRuleGroup& WithRuleGroupName(RuleGroupNameT&& value) { SetRuleGroupName(std::forward<RuleGroupNameT>(value)); return *this;}
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) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
61 template<typename ResourceIdT = Aws::String>
62 StatelessRuleGroup& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
64
66
70 inline int GetPriority() const { return m_priority; }
71 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
72 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
73 inline StatelessRuleGroup& WithPriority(int value) { SetPriority(value); return *this;}
75 private:
76
77 Aws::String m_ruleGroupName;
78 bool m_ruleGroupNameHasBeenSet = false;
79
80 Aws::String m_resourceId;
81 bool m_resourceIdHasBeenSet = false;
82
83 int m_priority{0};
84 bool m_priorityHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace FMS
89} // 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