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

The record of a completed or failed managed action.

See Also:

* AWS * API Reference

*/ class ManagedActionHistoryItem { public: AWS_ELASTICBEANSTALK_API ManagedActionHistoryItem(); AWS_ELASTICBEANSTALK_API ManagedActionHistoryItem(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICBEANSTALK_API ManagedActionHistoryItem& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

A unique identifier for the managed action.

*/ inline const Aws::String& GetActionId() const{ return m_actionId; } /** *

A unique identifier for the managed action.

*/ inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; } /** *

A unique identifier for the managed action.

*/ inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; } /** *

A unique identifier for the managed action.

*/ inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); } /** *

A unique identifier for the managed action.

*/ inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); } /** *

A unique identifier for the managed action.

*/ inline ManagedActionHistoryItem& WithActionId(const Aws::String& value) { SetActionId(value); return *this;} /** *

A unique identifier for the managed action.

*/ inline ManagedActionHistoryItem& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;} /** *

A unique identifier for the managed action.

*/ inline ManagedActionHistoryItem& WithActionId(const char* value) { SetActionId(value); return *this;} /** *

The type of the managed action.

*/ inline const ActionType& GetActionType() const{ return m_actionType; } /** *

The type of the managed action.

*/ inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; } /** *

The type of the managed action.

*/ inline void SetActionType(const ActionType& value) { m_actionTypeHasBeenSet = true; m_actionType = value; } /** *

The type of the managed action.

*/ inline void SetActionType(ActionType&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); } /** *

The type of the managed action.

*/ inline ManagedActionHistoryItem& WithActionType(const ActionType& value) { SetActionType(value); return *this;} /** *

The type of the managed action.

*/ inline ManagedActionHistoryItem& WithActionType(ActionType&& value) { SetActionType(std::move(value)); return *this;} /** *

A description of the managed action.

*/ inline const Aws::String& GetActionDescription() const{ return m_actionDescription; } /** *

A description of the managed action.

*/ inline bool ActionDescriptionHasBeenSet() const { return m_actionDescriptionHasBeenSet; } /** *

A description of the managed action.

*/ inline void SetActionDescription(const Aws::String& value) { m_actionDescriptionHasBeenSet = true; m_actionDescription = value; } /** *

A description of the managed action.

*/ inline void SetActionDescription(Aws::String&& value) { m_actionDescriptionHasBeenSet = true; m_actionDescription = std::move(value); } /** *

A description of the managed action.

*/ inline void SetActionDescription(const char* value) { m_actionDescriptionHasBeenSet = true; m_actionDescription.assign(value); } /** *

A description of the managed action.

*/ inline ManagedActionHistoryItem& WithActionDescription(const Aws::String& value) { SetActionDescription(value); return *this;} /** *

A description of the managed action.

*/ inline ManagedActionHistoryItem& WithActionDescription(Aws::String&& value) { SetActionDescription(std::move(value)); return *this;} /** *

A description of the managed action.

*/ inline ManagedActionHistoryItem& WithActionDescription(const char* value) { SetActionDescription(value); return *this;} /** *

If the action failed, the type of failure.

*/ inline const FailureType& GetFailureType() const{ return m_failureType; } /** *

If the action failed, the type of failure.

*/ inline bool FailureTypeHasBeenSet() const { return m_failureTypeHasBeenSet; } /** *

If the action failed, the type of failure.

*/ inline void SetFailureType(const FailureType& value) { m_failureTypeHasBeenSet = true; m_failureType = value; } /** *

If the action failed, the type of failure.

*/ inline void SetFailureType(FailureType&& value) { m_failureTypeHasBeenSet = true; m_failureType = std::move(value); } /** *

If the action failed, the type of failure.

*/ inline ManagedActionHistoryItem& WithFailureType(const FailureType& value) { SetFailureType(value); return *this;} /** *

If the action failed, the type of failure.

*/ inline ManagedActionHistoryItem& WithFailureType(FailureType&& value) { SetFailureType(std::move(value)); return *this;} /** *

The status of the action.

*/ inline const ActionHistoryStatus& GetStatus() const{ return m_status; } /** *

The status of the action.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the action.

*/ inline void SetStatus(const ActionHistoryStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the action.

*/ inline void SetStatus(ActionHistoryStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the action.

*/ inline ManagedActionHistoryItem& WithStatus(const ActionHistoryStatus& value) { SetStatus(value); return *this;} /** *

The status of the action.

*/ inline ManagedActionHistoryItem& WithStatus(ActionHistoryStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

If the action failed, a description of the failure.

*/ inline const Aws::String& GetFailureDescription() const{ return m_failureDescription; } /** *

If the action failed, a description of the failure.

*/ inline bool FailureDescriptionHasBeenSet() const { return m_failureDescriptionHasBeenSet; } /** *

If the action failed, a description of the failure.

*/ inline void SetFailureDescription(const Aws::String& value) { m_failureDescriptionHasBeenSet = true; m_failureDescription = value; } /** *

If the action failed, a description of the failure.

*/ inline void SetFailureDescription(Aws::String&& value) { m_failureDescriptionHasBeenSet = true; m_failureDescription = std::move(value); } /** *

If the action failed, a description of the failure.

*/ inline void SetFailureDescription(const char* value) { m_failureDescriptionHasBeenSet = true; m_failureDescription.assign(value); } /** *

If the action failed, a description of the failure.

*/ inline ManagedActionHistoryItem& WithFailureDescription(const Aws::String& value) { SetFailureDescription(value); return *this;} /** *

If the action failed, a description of the failure.

*/ inline ManagedActionHistoryItem& WithFailureDescription(Aws::String&& value) { SetFailureDescription(std::move(value)); return *this;} /** *

If the action failed, a description of the failure.

*/ inline ManagedActionHistoryItem& WithFailureDescription(const char* value) { SetFailureDescription(value); return *this;} /** *

The date and time that the action started executing.

*/ inline const Aws::Utils::DateTime& GetExecutedTime() const{ return m_executedTime; } /** *

The date and time that the action started executing.

*/ inline bool ExecutedTimeHasBeenSet() const { return m_executedTimeHasBeenSet; } /** *

The date and time that the action started executing.

*/ inline void SetExecutedTime(const Aws::Utils::DateTime& value) { m_executedTimeHasBeenSet = true; m_executedTime = value; } /** *

The date and time that the action started executing.

*/ inline void SetExecutedTime(Aws::Utils::DateTime&& value) { m_executedTimeHasBeenSet = true; m_executedTime = std::move(value); } /** *

The date and time that the action started executing.

*/ inline ManagedActionHistoryItem& WithExecutedTime(const Aws::Utils::DateTime& value) { SetExecutedTime(value); return *this;} /** *

The date and time that the action started executing.

*/ inline ManagedActionHistoryItem& WithExecutedTime(Aws::Utils::DateTime&& value) { SetExecutedTime(std::move(value)); return *this;} /** *

The date and time that the action finished executing.

*/ inline const Aws::Utils::DateTime& GetFinishedTime() const{ return m_finishedTime; } /** *

The date and time that the action finished executing.

*/ inline bool FinishedTimeHasBeenSet() const { return m_finishedTimeHasBeenSet; } /** *

The date and time that the action finished executing.

*/ inline void SetFinishedTime(const Aws::Utils::DateTime& value) { m_finishedTimeHasBeenSet = true; m_finishedTime = value; } /** *

The date and time that the action finished executing.

*/ inline void SetFinishedTime(Aws::Utils::DateTime&& value) { m_finishedTimeHasBeenSet = true; m_finishedTime = std::move(value); } /** *

The date and time that the action finished executing.

*/ inline ManagedActionHistoryItem& WithFinishedTime(const Aws::Utils::DateTime& value) { SetFinishedTime(value); return *this;} /** *

The date and time that the action finished executing.

*/ inline ManagedActionHistoryItem& WithFinishedTime(Aws::Utils::DateTime&& value) { SetFinishedTime(std::move(value)); return *this;} private: Aws::String m_actionId; bool m_actionIdHasBeenSet = false; ActionType m_actionType; bool m_actionTypeHasBeenSet = false; Aws::String m_actionDescription; bool m_actionDescriptionHasBeenSet = false; FailureType m_failureType; bool m_failureTypeHasBeenSet = false; ActionHistoryStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_failureDescription; bool m_failureDescriptionHasBeenSet = false; Aws::Utils::DateTime m_executedTime; bool m_executedTimeHasBeenSet = false; Aws::Utils::DateTime m_finishedTime; bool m_finishedTimeHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws