AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
WafAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
28class WafAction {
29 public:
30 AWS_SECURITYHUB_API WafAction() = default;
31 AWS_SECURITYHUB_API WafAction(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API WafAction& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
46 inline const Aws::String& GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 template <typename TypeT = Aws::String>
49 void SetType(TypeT&& value) {
50 m_typeHasBeenSet = true;
51 m_type = std::forward<TypeT>(value);
52 }
53 template <typename TypeT = Aws::String>
54 WafAction& WithType(TypeT&& value) {
55 SetType(std::forward<TypeT>(value));
56 return *this;
57 }
59 private:
60 Aws::String m_type;
61 bool m_typeHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace SecurityHub
66} // namespace Aws
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API WafAction(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API WafAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API WafAction()=default
const Aws::String & GetType() const
Definition WafAction.h:46
WafAction & WithType(TypeT &&value)
Definition WafAction.h:54
void SetType(TypeT &&value)
Definition WafAction.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue