AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsWafWebAclDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsWafWebAclRule.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SECURITYHUB_API AwsWafWebAclDetails();
38 AWS_SECURITYHUB_API AwsWafWebAclDetails(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline AwsWafWebAclDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline AwsWafWebAclDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline AwsWafWebAclDetails& WithName(const char* value) { SetName(value); return *this;}
57
59
63 inline const Aws::String& GetDefaultAction() const{ return m_defaultAction; }
64 inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
65 inline void SetDefaultAction(const Aws::String& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
66 inline void SetDefaultAction(Aws::String&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); }
67 inline void SetDefaultAction(const char* value) { m_defaultActionHasBeenSet = true; m_defaultAction.assign(value); }
68 inline AwsWafWebAclDetails& WithDefaultAction(const Aws::String& value) { SetDefaultAction(value); return *this;}
69 inline AwsWafWebAclDetails& WithDefaultAction(Aws::String&& value) { SetDefaultAction(std::move(value)); return *this;}
70 inline AwsWafWebAclDetails& WithDefaultAction(const char* value) { SetDefaultAction(value); return *this;}
72
74
78 inline const Aws::Vector<AwsWafWebAclRule>& GetRules() const{ return m_rules; }
79 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
80 inline void SetRules(const Aws::Vector<AwsWafWebAclRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
81 inline void SetRules(Aws::Vector<AwsWafWebAclRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
82 inline AwsWafWebAclDetails& WithRules(const Aws::Vector<AwsWafWebAclRule>& value) { SetRules(value); return *this;}
83 inline AwsWafWebAclDetails& WithRules(Aws::Vector<AwsWafWebAclRule>&& value) { SetRules(std::move(value)); return *this;}
84 inline AwsWafWebAclDetails& AddRules(const AwsWafWebAclRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
85 inline AwsWafWebAclDetails& AddRules(AwsWafWebAclRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
87
89
92 inline const Aws::String& GetWebAclId() const{ return m_webAclId; }
93 inline bool WebAclIdHasBeenSet() const { return m_webAclIdHasBeenSet; }
94 inline void SetWebAclId(const Aws::String& value) { m_webAclIdHasBeenSet = true; m_webAclId = value; }
95 inline void SetWebAclId(Aws::String&& value) { m_webAclIdHasBeenSet = true; m_webAclId = std::move(value); }
96 inline void SetWebAclId(const char* value) { m_webAclIdHasBeenSet = true; m_webAclId.assign(value); }
97 inline AwsWafWebAclDetails& WithWebAclId(const Aws::String& value) { SetWebAclId(value); return *this;}
98 inline AwsWafWebAclDetails& WithWebAclId(Aws::String&& value) { SetWebAclId(std::move(value)); return *this;}
99 inline AwsWafWebAclDetails& WithWebAclId(const char* value) { SetWebAclId(value); return *this;}
101 private:
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 Aws::String m_defaultAction;
107 bool m_defaultActionHasBeenSet = false;
108
110 bool m_rulesHasBeenSet = false;
111
112 Aws::String m_webAclId;
113 bool m_webAclIdHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace SecurityHub
118} // namespace Aws
void SetRules(const Aws::Vector< AwsWafWebAclRule > &value)
AwsWafWebAclDetails & WithRules(Aws::Vector< AwsWafWebAclRule > &&value)
AwsWafWebAclDetails & WithWebAclId(const Aws::String &value)
AwsWafWebAclDetails & WithDefaultAction(const char *value)
const Aws::Vector< AwsWafWebAclRule > & GetRules() const
AwsWafWebAclDetails & WithName(const char *value)
AwsWafWebAclDetails & AddRules(AwsWafWebAclRule &&value)
AwsWafWebAclDetails & AddRules(const AwsWafWebAclRule &value)
AwsWafWebAclDetails & WithName(const Aws::String &value)
void SetRules(Aws::Vector< AwsWafWebAclRule > &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsWafWebAclDetails & WithRules(const Aws::Vector< AwsWafWebAclRule > &value)
void SetDefaultAction(const Aws::String &value)
AwsWafWebAclDetails & WithDefaultAction(const Aws::String &value)
AWS_SECURITYHUB_API AwsWafWebAclDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsWafWebAclDetails & WithWebAclId(const char *value)
AWS_SECURITYHUB_API AwsWafWebAclDetails(Aws::Utils::Json::JsonView jsonValue)
AwsWafWebAclDetails & WithName(Aws::String &&value)
AwsWafWebAclDetails & WithDefaultAction(Aws::String &&value)
AwsWafWebAclDetails & WithWebAclId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue