/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A custom action that can be used for stateless packet handling.See
* Also:
AWS
* API Reference
The definition of the custom action.
*/ inline const StatelessCustomActionDefinition& GetActionDefinition() const{ return m_actionDefinition; } /** *The definition of the custom action.
*/ inline bool ActionDefinitionHasBeenSet() const { return m_actionDefinitionHasBeenSet; } /** *The definition of the custom action.
*/ inline void SetActionDefinition(const StatelessCustomActionDefinition& value) { m_actionDefinitionHasBeenSet = true; m_actionDefinition = value; } /** *The definition of the custom action.
*/ inline void SetActionDefinition(StatelessCustomActionDefinition&& value) { m_actionDefinitionHasBeenSet = true; m_actionDefinition = std::move(value); } /** *The definition of the custom action.
*/ inline FirewallPolicyStatelessCustomActionsDetails& WithActionDefinition(const StatelessCustomActionDefinition& value) { SetActionDefinition(value); return *this;} /** *The definition of the custom action.
*/ inline FirewallPolicyStatelessCustomActionsDetails& WithActionDefinition(StatelessCustomActionDefinition&& value) { SetActionDefinition(std::move(value)); return *this;} /** *The name of the custom action.
*/ inline const Aws::String& GetActionName() const{ return m_actionName; } /** *The name of the custom action.
*/ inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; } /** *The name of the custom action.
*/ inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; } /** *The name of the custom action.
*/ inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); } /** *The name of the custom action.
*/ inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); } /** *The name of the custom action.
*/ inline FirewallPolicyStatelessCustomActionsDetails& WithActionName(const Aws::String& value) { SetActionName(value); return *this;} /** *The name of the custom action.
*/ inline FirewallPolicyStatelessCustomActionsDetails& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;} /** *The name of the custom action.
*/ inline FirewallPolicyStatelessCustomActionsDetails& WithActionName(const char* value) { SetActionName(value); return *this;} private: StatelessCustomActionDefinition m_actionDefinition; bool m_actionDefinitionHasBeenSet = false; Aws::String m_actionName; bool m_actionNameHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws