AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
TimePeriod.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Budgets {
20namespace Model {
21
30 public:
31 AWS_BUDGETS_API TimePeriod() = default;
32 AWS_BUDGETS_API TimePeriod(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BUDGETS_API TimePeriod& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
48 inline const Aws::Utils::DateTime& GetStart() const { return m_start; }
49 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
50 template <typename StartT = Aws::Utils::DateTime>
51 void SetStart(StartT&& value) {
52 m_startHasBeenSet = true;
53 m_start = std::forward<StartT>(value);
54 }
55 template <typename StartT = Aws::Utils::DateTime>
56 TimePeriod& WithStart(StartT&& value) {
57 SetStart(std::forward<StartT>(value));
58 return *this;
59 }
61
63
71 inline const Aws::Utils::DateTime& GetEnd() const { return m_end; }
72 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
73 template <typename EndT = Aws::Utils::DateTime>
74 void SetEnd(EndT&& value) {
75 m_endHasBeenSet = true;
76 m_end = std::forward<EndT>(value);
77 }
78 template <typename EndT = Aws::Utils::DateTime>
79 TimePeriod& WithEnd(EndT&& value) {
80 SetEnd(std::forward<EndT>(value));
81 return *this;
82 }
84 private:
85 Aws::Utils::DateTime m_start{};
86
88 bool m_startHasBeenSet = false;
89 bool m_endHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace Budgets
94} // namespace Aws
TimePeriod & WithEnd(EndT &&value)
Definition TimePeriod.h:79
void SetEnd(EndT &&value)
Definition TimePeriod.h:74
TimePeriod & WithStart(StartT &&value)
Definition TimePeriod.h:56
AWS_BUDGETS_API TimePeriod(Aws::Utils::Json::JsonView jsonValue)
void SetStart(StartT &&value)
Definition TimePeriod.h:51
AWS_BUDGETS_API TimePeriod()=default
const Aws::Utils::DateTime & GetEnd() const
Definition TimePeriod.h:71
const Aws::Utils::DateTime & GetStart() const
Definition TimePeriod.h:48
AWS_BUDGETS_API TimePeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue