AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TimePeriod.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_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 Lightsail
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_LIGHTSAIL_API TimePeriod() = default;
40 AWS_LIGHTSAIL_API TimePeriod(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LIGHTSAIL_API TimePeriod& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
53 inline const Aws::Utils::DateTime& GetStart() const { return m_start; }
54 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
55 template<typename StartT = Aws::Utils::DateTime>
56 void SetStart(StartT&& value) { m_startHasBeenSet = true; m_start = std::forward<StartT>(value); }
57 template<typename StartT = Aws::Utils::DateTime>
58 TimePeriod& WithStart(StartT&& value) { SetStart(std::forward<StartT>(value)); return *this;}
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) { m_endHasBeenSet = true; m_end = std::forward<EndT>(value); }
72 template<typename EndT = Aws::Utils::DateTime>
73 TimePeriod& WithEnd(EndT&& value) { SetEnd(std::forward<EndT>(value)); return *this;}
75 private:
76
77 Aws::Utils::DateTime m_start{};
78 bool m_startHasBeenSet = false;
79
81 bool m_endHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace Lightsail
86} // namespace Aws
AWS_LIGHTSAIL_API TimePeriod()=default
AWS_LIGHTSAIL_API TimePeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
TimePeriod & WithStart(StartT &&value)
Definition TimePeriod.h:58
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
TimePeriod & WithEnd(EndT &&value)
Definition TimePeriod.h:73
const Aws::Utils::DateTime & GetStart() const
Definition TimePeriod.h:53
void SetStart(StartT &&value)
Definition TimePeriod.h:56
const Aws::Utils::DateTime & GetEnd() const
Definition TimePeriod.h:68
AWS_LIGHTSAIL_API TimePeriod(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue