AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ActionHistory.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/budgets/model/ActionStatus.h>
10#include <aws/budgets/model/EventType.h>
11#include <aws/budgets/model/ActionHistoryDetails.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Budgets
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_BUDGETS_API ActionHistory() = default;
38 AWS_BUDGETS_API ActionHistory(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
46 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
47 template<typename TimestampT = Aws::Utils::DateTime>
48 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
49 template<typename TimestampT = Aws::Utils::DateTime>
50 ActionHistory& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
52
54
57 inline ActionStatus GetStatus() const { return m_status; }
58 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
59 inline void SetStatus(ActionStatus value) { m_statusHasBeenSet = true; m_status = value; }
60 inline ActionHistory& WithStatus(ActionStatus value) { SetStatus(value); return *this;}
62
64
68 inline EventType GetEventType() const { return m_eventType; }
69 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
70 inline void SetEventType(EventType value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
71 inline ActionHistory& WithEventType(EventType value) { SetEventType(value); return *this;}
73
75
78 inline const ActionHistoryDetails& GetActionHistoryDetails() const { return m_actionHistoryDetails; }
79 inline bool ActionHistoryDetailsHasBeenSet() const { return m_actionHistoryDetailsHasBeenSet; }
80 template<typename ActionHistoryDetailsT = ActionHistoryDetails>
81 void SetActionHistoryDetails(ActionHistoryDetailsT&& value) { m_actionHistoryDetailsHasBeenSet = true; m_actionHistoryDetails = std::forward<ActionHistoryDetailsT>(value); }
82 template<typename ActionHistoryDetailsT = ActionHistoryDetails>
83 ActionHistory& WithActionHistoryDetails(ActionHistoryDetailsT&& value) { SetActionHistoryDetails(std::forward<ActionHistoryDetailsT>(value)); return *this;}
85 private:
86
87 Aws::Utils::DateTime m_timestamp{};
88 bool m_timestampHasBeenSet = false;
89
91 bool m_statusHasBeenSet = false;
92
93 EventType m_eventType{EventType::NOT_SET};
94 bool m_eventTypeHasBeenSet = false;
95
96 ActionHistoryDetails m_actionHistoryDetails;
97 bool m_actionHistoryDetailsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace Budgets
102} // namespace Aws
AWS_BUDGETS_API ActionHistory & operator=(Aws::Utils::Json::JsonView jsonValue)
ActionHistory & WithTimestamp(TimestampT &&value)
AWS_BUDGETS_API ActionHistory()=default
const Aws::Utils::DateTime & GetTimestamp() const
const ActionHistoryDetails & GetActionHistoryDetails() const
void SetStatus(ActionStatus value)
ActionHistory & WithStatus(ActionStatus value)
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
ActionHistory & WithActionHistoryDetails(ActionHistoryDetailsT &&value)
AWS_BUDGETS_API ActionHistory(Aws::Utils::Json::JsonView jsonValue)
void SetTimestamp(TimestampT &&value)
void SetActionHistoryDetails(ActionHistoryDetailsT &&value)
ActionHistory & WithEventType(EventType value)
void SetEventType(EventType value)
Aws::Utils::Json::JsonValue JsonValue