AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
TimePeriod.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lightsail {
20namespace Model {
21
33 public:
34 AWS_LIGHTSAIL_API TimePeriod() = default;
35 AWS_LIGHTSAIL_API TimePeriod(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LIGHTSAIL_API TimePeriod& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
47 inline const Aws::Utils::DateTime& GetStart() const { return m_start; }
48 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
49 template <typename StartT = Aws::Utils::DateTime>
50 void SetStart(StartT&& value) {
51 m_startHasBeenSet = true;
52 m_start = std::forward<StartT>(value);
53 }
54 template <typename StartT = Aws::Utils::DateTime>
55 TimePeriod& WithStart(StartT&& value) {
56 SetStart(std::forward<StartT>(value));
57 return *this;
58 }
60
62
68 inline const Aws::Utils::DateTime& GetEnd() const { return m_end; }
69 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
70 template <typename EndT = Aws::Utils::DateTime>
71 void SetEnd(EndT&& value) {
72 m_endHasBeenSet = true;
73 m_end = std::forward<EndT>(value);
74 }
75 template <typename EndT = Aws::Utils::DateTime>
76 TimePeriod& WithEnd(EndT&& value) {
77 SetEnd(std::forward<EndT>(value));
78 return *this;
79 }
81 private:
82 Aws::Utils::DateTime m_start{};
83
85 bool m_startHasBeenSet = false;
86 bool m_endHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace Lightsail
91} // namespace Aws
AWS_LIGHTSAIL_API TimePeriod()=default
AWS_LIGHTSAIL_API TimePeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
TimePeriod & WithStart(StartT &&value)
Definition TimePeriod.h:55
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
TimePeriod & WithEnd(EndT &&value)
Definition TimePeriod.h:76
const Aws::Utils::DateTime & GetStart() const
Definition TimePeriod.h:47
void SetStart(StartT &&value)
Definition TimePeriod.h:50
const Aws::Utils::DateTime & GetEnd() const
Definition TimePeriod.h:68
AWS_LIGHTSAIL_API TimePeriod(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue