AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RuleGroupMetadata.h
Go to the documentation of this file.
1
6#pragma once
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 NetworkFirewall
22{
23namespace Model
24{
25
34 {
35 public:
40
41
46 inline const Aws::String& GetName() const{ return m_name; }
47
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53
58 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65
70 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
71
76 inline RuleGroupMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
77
82 inline RuleGroupMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83
88 inline RuleGroupMetadata& WithName(const char* value) { SetName(value); return *this;}
89
90
94 inline const Aws::String& GetArn() const{ return m_arn; }
95
99 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
100
104 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
105
109 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
110
114 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
115
119 inline RuleGroupMetadata& WithArn(const Aws::String& value) { SetArn(value); return *this;}
120
124 inline RuleGroupMetadata& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
125
129 inline RuleGroupMetadata& WithArn(const char* value) { SetArn(value); return *this;}
130
131 private:
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
136 Aws::String m_arn;
137 bool m_arnHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace NetworkFirewall
142} // namespace Aws
#define AWS_NETWORKFIREWALL_API
RuleGroupMetadata & WithArn(const Aws::String &value)
AWS_NETWORKFIREWALL_API RuleGroupMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API RuleGroupMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleGroupMetadata & WithArn(const char *value)
RuleGroupMetadata & WithName(Aws::String &&value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
RuleGroupMetadata & WithName(const Aws::String &value)
RuleGroupMetadata & WithArn(Aws::String &&value)
RuleGroupMetadata & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String