AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AutoAdjustData.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/budgets/model/AutoAdjustType.h>
9#include <aws/budgets/model/HistoricalOptions.h>
10#include <aws/core/utils/DateTime.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Budgets {
22namespace Model {
23
31 public:
32 AWS_BUDGETS_API AutoAdjustData() = default;
33 AWS_BUDGETS_API AutoAdjustData(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline AutoAdjustType GetAutoAdjustType() const { return m_autoAdjustType; }
43 inline bool AutoAdjustTypeHasBeenSet() const { return m_autoAdjustTypeHasBeenSet; }
44 inline void SetAutoAdjustType(AutoAdjustType value) {
45 m_autoAdjustTypeHasBeenSet = true;
46 m_autoAdjustType = value;
47 }
49 SetAutoAdjustType(value);
50 return *this;
51 }
53
55
59 inline const HistoricalOptions& GetHistoricalOptions() const { return m_historicalOptions; }
60 inline bool HistoricalOptionsHasBeenSet() const { return m_historicalOptionsHasBeenSet; }
61 template <typename HistoricalOptionsT = HistoricalOptions>
62 void SetHistoricalOptions(HistoricalOptionsT&& value) {
63 m_historicalOptionsHasBeenSet = true;
64 m_historicalOptions = std::forward<HistoricalOptionsT>(value);
65 }
66 template <typename HistoricalOptionsT = HistoricalOptions>
67 AutoAdjustData& WithHistoricalOptions(HistoricalOptionsT&& value) {
68 SetHistoricalOptions(std::forward<HistoricalOptionsT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetLastAutoAdjustTime() const { return m_lastAutoAdjustTime; }
78 inline bool LastAutoAdjustTimeHasBeenSet() const { return m_lastAutoAdjustTimeHasBeenSet; }
79 template <typename LastAutoAdjustTimeT = Aws::Utils::DateTime>
80 void SetLastAutoAdjustTime(LastAutoAdjustTimeT&& value) {
81 m_lastAutoAdjustTimeHasBeenSet = true;
82 m_lastAutoAdjustTime = std::forward<LastAutoAdjustTimeT>(value);
83 }
84 template <typename LastAutoAdjustTimeT = Aws::Utils::DateTime>
85 AutoAdjustData& WithLastAutoAdjustTime(LastAutoAdjustTimeT&& value) {
86 SetLastAutoAdjustTime(std::forward<LastAutoAdjustTimeT>(value));
87 return *this;
88 }
90 private:
92
93 HistoricalOptions m_historicalOptions;
94
95 Aws::Utils::DateTime m_lastAutoAdjustTime{};
96 bool m_autoAdjustTypeHasBeenSet = false;
97 bool m_historicalOptionsHasBeenSet = false;
98 bool m_lastAutoAdjustTimeHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Budgets
103} // namespace Aws
void SetAutoAdjustType(AutoAdjustType value)
void SetLastAutoAdjustTime(LastAutoAdjustTimeT &&value)
const Aws::Utils::DateTime & GetLastAutoAdjustTime() const
AutoAdjustData & WithHistoricalOptions(HistoricalOptionsT &&value)
AutoAdjustData & WithAutoAdjustType(AutoAdjustType value)
const HistoricalOptions & GetHistoricalOptions() const
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
AutoAdjustData & WithLastAutoAdjustTime(LastAutoAdjustTimeT &&value)
AWS_BUDGETS_API AutoAdjustData()=default
void SetHistoricalOptions(HistoricalOptionsT &&value)
AWS_BUDGETS_API AutoAdjustData(Aws::Utils::Json::JsonView jsonValue)
AWS_BUDGETS_API AutoAdjustData & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoAdjustType GetAutoAdjustType() const
Aws::Utils::Json::JsonValue JsonValue