AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Budgets
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_BUDGETS_API TimePeriod() = default;
37 AWS_BUDGETS_API TimePeriod(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BUDGETS_API TimePeriod& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
54 inline const Aws::Utils::DateTime& GetStart() const { return m_start; }
55 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
56 template<typename StartT = Aws::Utils::DateTime>
57 void SetStart(StartT&& value) { m_startHasBeenSet = true; m_start = std::forward<StartT>(value); }
58 template<typename StartT = Aws::Utils::DateTime>
59 TimePeriod& WithStart(StartT&& value) { SetStart(std::forward<StartT>(value)); return *this;}
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) { m_endHasBeenSet = true; m_end = std::forward<EndT>(value); }
75 template<typename EndT = Aws::Utils::DateTime>
76 TimePeriod& WithEnd(EndT&& value) { SetEnd(std::forward<EndT>(value)); return *this;}
78 private:
79
80 Aws::Utils::DateTime m_start{};
81 bool m_startHasBeenSet = false;
82
84 bool m_endHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace Budgets
89} // namespace Aws
TimePeriod & WithEnd(EndT &&value)
Definition TimePeriod.h:76
void SetEnd(EndT &&value)
Definition TimePeriod.h:74
TimePeriod & WithStart(StartT &&value)
Definition TimePeriod.h:59
AWS_BUDGETS_API TimePeriod(Aws::Utils::Json::JsonView jsonValue)
void SetStart(StartT &&value)
Definition TimePeriod.h:57
AWS_BUDGETS_API TimePeriod()=default
const Aws::Utils::DateTime & GetEnd() const
Definition TimePeriod.h:71
const Aws::Utils::DateTime & GetStart() const
Definition TimePeriod.h:54
AWS_BUDGETS_API TimePeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue