AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStart(const Aws::Utils::DateTime& value) { m_startHasBeenSet = true; m_start = value; }
56 inline void SetStart(Aws::Utils::DateTime&& value) { m_startHasBeenSet = true; m_start = std::move(value); }
57 inline TimePeriod& WithStart(const Aws::Utils::DateTime& value) { SetStart(value); return *this;}
58 inline TimePeriod& WithStart(Aws::Utils::DateTime&& value) { SetStart(std::move(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 inline void SetEnd(const Aws::Utils::DateTime& value) { m_endHasBeenSet = true; m_end = value; }
71 inline void SetEnd(Aws::Utils::DateTime&& value) { m_endHasBeenSet = true; m_end = std::move(value); }
72 inline TimePeriod& WithEnd(const Aws::Utils::DateTime& value) { SetEnd(value); return *this;}
73 inline TimePeriod& WithEnd(Aws::Utils::DateTime&& value) { SetEnd(std::move(value)); return *this;}
75 private:
76
78 bool m_startHasBeenSet = false;
79
81 bool m_endHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace Lightsail
86} // namespace Aws
void SetStart(const Aws::Utils::DateTime &value)
Definition TimePeriod.h:55
TimePeriod & WithStart(Aws::Utils::DateTime &&value)
Definition TimePeriod.h:58
void SetEnd(const Aws::Utils::DateTime &value)
Definition TimePeriod.h:70
AWS_LIGHTSAIL_API TimePeriod & operator=(Aws::Utils::Json::JsonView jsonValue)
TimePeriod & WithEnd(const Aws::Utils::DateTime &value)
Definition TimePeriod.h:72
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetStart() const
Definition TimePeriod.h:53
TimePeriod & WithEnd(Aws::Utils::DateTime &&value)
Definition TimePeriod.h:73
void SetEnd(Aws::Utils::DateTime &&value)
Definition TimePeriod.h:71
AWS_LIGHTSAIL_API TimePeriod()
TimePeriod & WithStart(const Aws::Utils::DateTime &value)
Definition TimePeriod.h:57
const Aws::Utils::DateTime & GetEnd() const
Definition TimePeriod.h:68
AWS_LIGHTSAIL_API TimePeriod(Aws::Utils::Json::JsonView jsonValue)
void SetStart(Aws::Utils::DateTime &&value)
Definition TimePeriod.h:56
Aws::Utils::Json::JsonValue JsonValue