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

The historical records for a budget action.

See Also:

AWS * API Reference

*/ class ActionHistory { public: AWS_BUDGETS_API ActionHistory(); AWS_BUDGETS_API ActionHistory(Aws::Utils::Json::JsonView jsonValue); AWS_BUDGETS_API ActionHistory& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const; inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } inline ActionHistory& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} inline ActionHistory& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} /** *

The status of action at the time of the event.

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

The status of action at the time of the event.

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

The status of action at the time of the event.

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

The status of action at the time of the event.

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

The status of action at the time of the event.

*/ inline ActionHistory& WithStatus(const ActionStatus& value) { SetStatus(value); return *this;} /** *

The status of action at the time of the event.

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

This distinguishes between whether the events are triggered by the user or * are generated by the system.

*/ inline const EventType& GetEventType() const{ return m_eventType; } /** *

This distinguishes between whether the events are triggered by the user or * are generated by the system.

*/ inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; } /** *

This distinguishes between whether the events are triggered by the user or * are generated by the system.

*/ inline void SetEventType(const EventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; } /** *

This distinguishes between whether the events are triggered by the user or * are generated by the system.

*/ inline void SetEventType(EventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); } /** *

This distinguishes between whether the events are triggered by the user or * are generated by the system.

*/ inline ActionHistory& WithEventType(const EventType& value) { SetEventType(value); return *this;} /** *

This distinguishes between whether the events are triggered by the user or * are generated by the system.

*/ inline ActionHistory& WithEventType(EventType&& value) { SetEventType(std::move(value)); return *this;} /** *

The description of the details for the event.

*/ inline const ActionHistoryDetails& GetActionHistoryDetails() const{ return m_actionHistoryDetails; } /** *

The description of the details for the event.

*/ inline bool ActionHistoryDetailsHasBeenSet() const { return m_actionHistoryDetailsHasBeenSet; } /** *

The description of the details for the event.

*/ inline void SetActionHistoryDetails(const ActionHistoryDetails& value) { m_actionHistoryDetailsHasBeenSet = true; m_actionHistoryDetails = value; } /** *

The description of the details for the event.

*/ inline void SetActionHistoryDetails(ActionHistoryDetails&& value) { m_actionHistoryDetailsHasBeenSet = true; m_actionHistoryDetails = std::move(value); } /** *

The description of the details for the event.

*/ inline ActionHistory& WithActionHistoryDetails(const ActionHistoryDetails& value) { SetActionHistoryDetails(value); return *this;} /** *

The description of the details for the event.

*/ inline ActionHistory& WithActionHistoryDetails(ActionHistoryDetails&& value) { SetActionHistoryDetails(std::move(value)); return *this;} private: Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; ActionStatus m_status; bool m_statusHasBeenSet = false; EventType m_eventType; bool m_eventTypeHasBeenSet = false; ActionHistoryDetails m_actionHistoryDetails; bool m_actionHistoryDetailsHasBeenSet = false; }; } // namespace Model } // namespace Budgets } // namespace Aws