AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Budgets
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BUDGETS_API AutoAdjustData() = default;
38 AWS_BUDGETS_API AutoAdjustData(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline AutoAdjustType GetAutoAdjustType() const { return m_autoAdjustType; }
49 inline bool AutoAdjustTypeHasBeenSet() const { return m_autoAdjustTypeHasBeenSet; }
50 inline void SetAutoAdjustType(AutoAdjustType value) { m_autoAdjustTypeHasBeenSet = true; m_autoAdjustType = value; }
51 inline AutoAdjustData& WithAutoAdjustType(AutoAdjustType value) { SetAutoAdjustType(value); return *this;}
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) { m_historicalOptionsHasBeenSet = true; m_historicalOptions = std::forward<HistoricalOptionsT>(value); }
63 template<typename HistoricalOptionsT = HistoricalOptions>
64 AutoAdjustData& WithHistoricalOptions(HistoricalOptionsT&& value) { SetHistoricalOptions(std::forward<HistoricalOptionsT>(value)); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetLastAutoAdjustTime() const { return m_lastAutoAdjustTime; }
72 inline bool LastAutoAdjustTimeHasBeenSet() const { return m_lastAutoAdjustTimeHasBeenSet; }
73 template<typename LastAutoAdjustTimeT = Aws::Utils::DateTime>
74 void SetLastAutoAdjustTime(LastAutoAdjustTimeT&& value) { m_lastAutoAdjustTimeHasBeenSet = true; m_lastAutoAdjustTime = std::forward<LastAutoAdjustTimeT>(value); }
75 template<typename LastAutoAdjustTimeT = Aws::Utils::DateTime>
76 AutoAdjustData& WithLastAutoAdjustTime(LastAutoAdjustTimeT&& value) { SetLastAutoAdjustTime(std::forward<LastAutoAdjustTimeT>(value)); return *this;}
78 private:
79
81 bool m_autoAdjustTypeHasBeenSet = false;
82
83 HistoricalOptions m_historicalOptions;
84 bool m_historicalOptionsHasBeenSet = false;
85
86 Aws::Utils::DateTime m_lastAutoAdjustTime{};
87 bool m_lastAutoAdjustTimeHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Budgets
92} // 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