/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SSMIncidents { namespace Model { /** *

The action that starts at the beginning of an incident. The response plan * defines the action.

See Also:

AWS * API Reference

*/ class Action { public: AWS_SSMINCIDENTS_API Action(); AWS_SSMINCIDENTS_API Action(Aws::Utils::Json::JsonView jsonValue); AWS_SSMINCIDENTS_API Action& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Systems Manager automation document to start as the runbook at the * beginning of the incident.

*/ inline const SsmAutomation& GetSsmAutomation() const{ return m_ssmAutomation; } /** *

The Systems Manager automation document to start as the runbook at the * beginning of the incident.

*/ inline bool SsmAutomationHasBeenSet() const { return m_ssmAutomationHasBeenSet; } /** *

The Systems Manager automation document to start as the runbook at the * beginning of the incident.

*/ inline void SetSsmAutomation(const SsmAutomation& value) { m_ssmAutomationHasBeenSet = true; m_ssmAutomation = value; } /** *

The Systems Manager automation document to start as the runbook at the * beginning of the incident.

*/ inline void SetSsmAutomation(SsmAutomation&& value) { m_ssmAutomationHasBeenSet = true; m_ssmAutomation = std::move(value); } /** *

The Systems Manager automation document to start as the runbook at the * beginning of the incident.

*/ inline Action& WithSsmAutomation(const SsmAutomation& value) { SetSsmAutomation(value); return *this;} /** *

The Systems Manager automation document to start as the runbook at the * beginning of the incident.

*/ inline Action& WithSsmAutomation(SsmAutomation&& value) { SetSsmAutomation(std::move(value)); return *this;} private: SsmAutomation m_ssmAutomation; bool m_ssmAutomationHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws