AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39
40
42
45 inline const Aws::String& GetRuleGroupName() const{ return m_ruleGroupName; }
46 inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
47 inline void SetRuleGroupName(const Aws::String& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = value; }
48 inline void SetRuleGroupName(Aws::String&& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = std::move(value); }
49 inline void SetRuleGroupName(const char* value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName.assign(value); }
50 inline StatelessRuleGroup& WithRuleGroupName(const Aws::String& value) { SetRuleGroupName(value); return *this;}
51 inline StatelessRuleGroup& WithRuleGroupName(Aws::String&& value) { SetRuleGroupName(std::move(value)); return *this;}
52 inline StatelessRuleGroup& WithRuleGroupName(const char* value) { SetRuleGroupName(value); return *this;}
54
56
59 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
60 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
61 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
62 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
63 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
64 inline StatelessRuleGroup& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
65 inline StatelessRuleGroup& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
66 inline StatelessRuleGroup& WithResourceId(const char* value) { SetResourceId(value); return *this;}
68
70
74 inline int GetPriority() const{ return m_priority; }
75 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
76 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
77 inline StatelessRuleGroup& WithPriority(int value) { SetPriority(value); return *this;}
79 private:
80
81 Aws::String m_ruleGroupName;
82 bool m_ruleGroupNameHasBeenSet = false;
83
84 Aws::String m_resourceId;
85 bool m_resourceIdHasBeenSet = false;
86
87 int m_priority;
88 bool m_priorityHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace FMS
93} // namespace Aws
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
StatelessRuleGroup & WithPriority(int value)
void SetResourceId(const Aws::String &value)
const Aws::String & GetRuleGroupName() const
StatelessRuleGroup & WithResourceId(Aws::String &&value)
StatelessRuleGroup & WithResourceId(const char *value)
void SetRuleGroupName(const Aws::String &value)
AWS_FMS_API StatelessRuleGroup(Aws::Utils::Json::JsonView jsonValue)
void SetRuleGroupName(const char *value)
void SetResourceId(Aws::String &&value)
StatelessRuleGroup & WithRuleGroupName(const char *value)
AWS_FMS_API StatelessRuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceId() const
StatelessRuleGroup & WithRuleGroupName(Aws::String &&value)
void SetRuleGroupName(Aws::String &&value)
StatelessRuleGroup & WithResourceId(const Aws::String &value)
StatelessRuleGroup & WithRuleGroupName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue