AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CustomAction.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/network-firewall/model/ActionDefinition.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkFirewall
23{
24namespace Model
25{
26
47 {
48 public:
49 AWS_NETWORKFIREWALL_API CustomAction();
50 AWS_NETWORKFIREWALL_API CustomAction(Aws::Utils::Json::JsonView jsonValue);
51 AWS_NETWORKFIREWALL_API CustomAction& operator=(Aws::Utils::Json::JsonView jsonValue);
52 AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
60 inline const Aws::String& GetActionName() const{ return m_actionName; }
61 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
62 inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
63 inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
64 inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
65 inline CustomAction& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
66 inline CustomAction& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
67 inline CustomAction& WithActionName(const char* value) { SetActionName(value); return *this;}
69
71
74 inline const ActionDefinition& GetActionDefinition() const{ return m_actionDefinition; }
75 inline bool ActionDefinitionHasBeenSet() const { return m_actionDefinitionHasBeenSet; }
76 inline void SetActionDefinition(const ActionDefinition& value) { m_actionDefinitionHasBeenSet = true; m_actionDefinition = value; }
77 inline void SetActionDefinition(ActionDefinition&& value) { m_actionDefinitionHasBeenSet = true; m_actionDefinition = std::move(value); }
78 inline CustomAction& WithActionDefinition(const ActionDefinition& value) { SetActionDefinition(value); return *this;}
79 inline CustomAction& WithActionDefinition(ActionDefinition&& value) { SetActionDefinition(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_actionName;
84 bool m_actionNameHasBeenSet = false;
85
86 ActionDefinition m_actionDefinition;
87 bool m_actionDefinitionHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace NetworkFirewall
92} // namespace Aws
AWS_NETWORKFIREWALL_API CustomAction()
void SetActionName(const Aws::String &value)
CustomAction & WithActionName(Aws::String &&value)
void SetActionDefinition(const ActionDefinition &value)
CustomAction & WithActionName(const Aws::String &value)
const Aws::String & GetActionName() const
CustomAction & WithActionDefinition(const ActionDefinition &value)
CustomAction & WithActionDefinition(ActionDefinition &&value)
CustomAction & WithActionName(const char *value)
const ActionDefinition & GetActionDefinition() const
void SetActionName(Aws::String &&value)
void SetActionDefinition(ActionDefinition &&value)
AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKFIREWALL_API CustomAction(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFIREWALL_API CustomAction & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue