AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
ActionHistory.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/budgets/model/ActionHistoryDetails.h>
9#include <aws/budgets/model/ActionStatus.h>
10#include <aws/budgets/model/EventType.h>
11#include <aws/core/utils/DateTime.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Budgets {
23namespace Model {
24
31 public:
32 AWS_BUDGETS_API ActionHistory() = default;
33 AWS_BUDGETS_API ActionHistory(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
40 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
41 template <typename TimestampT = Aws::Utils::DateTime>
42 void SetTimestamp(TimestampT&& value) {
43 m_timestampHasBeenSet = true;
44 m_timestamp = std::forward<TimestampT>(value);
45 }
46 template <typename TimestampT = Aws::Utils::DateTime>
47 ActionHistory& WithTimestamp(TimestampT&& value) {
48 SetTimestamp(std::forward<TimestampT>(value));
49 return *this;
50 }
52
54
57 inline ActionStatus GetStatus() const { return m_status; }
58 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
59 inline void SetStatus(ActionStatus value) {
60 m_statusHasBeenSet = true;
61 m_status = value;
62 }
64 SetStatus(value);
65 return *this;
66 }
68
70
74 inline EventType GetEventType() const { return m_eventType; }
75 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
76 inline void SetEventType(EventType value) {
77 m_eventTypeHasBeenSet = true;
78 m_eventType = value;
79 }
81 SetEventType(value);
82 return *this;
83 }
85
87
90 inline const ActionHistoryDetails& GetActionHistoryDetails() const { return m_actionHistoryDetails; }
91 inline bool ActionHistoryDetailsHasBeenSet() const { return m_actionHistoryDetailsHasBeenSet; }
92 template <typename ActionHistoryDetailsT = ActionHistoryDetails>
93 void SetActionHistoryDetails(ActionHistoryDetailsT&& value) {
94 m_actionHistoryDetailsHasBeenSet = true;
95 m_actionHistoryDetails = std::forward<ActionHistoryDetailsT>(value);
96 }
97 template <typename ActionHistoryDetailsT = ActionHistoryDetails>
98 ActionHistory& WithActionHistoryDetails(ActionHistoryDetailsT&& value) {
99 SetActionHistoryDetails(std::forward<ActionHistoryDetailsT>(value));
100 return *this;
101 }
103 private:
104 Aws::Utils::DateTime m_timestamp{};
105
107
108 EventType m_eventType{EventType::NOT_SET};
109
110 ActionHistoryDetails m_actionHistoryDetails;
111 bool m_timestampHasBeenSet = false;
112 bool m_statusHasBeenSet = false;
113 bool m_eventTypeHasBeenSet = false;
114 bool m_actionHistoryDetailsHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace Budgets
119} // 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