AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
TimeRange.h
Go to the documentation of this file.
1
6#pragma once
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 CodeDeploy
22{
23namespace Model
24{
25
32 {
33 public:
38
39
44 inline const Aws::Utils::DateTime& GetStart() const{ return m_start; }
45
50 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
51
56 inline void SetStart(const Aws::Utils::DateTime& value) { m_startHasBeenSet = true; m_start = value; }
57
62 inline void SetStart(Aws::Utils::DateTime&& value) { m_startHasBeenSet = true; m_start = std::move(value); }
63
68 inline TimeRange& WithStart(const Aws::Utils::DateTime& value) { SetStart(value); return *this;}
69
74 inline TimeRange& WithStart(Aws::Utils::DateTime&& value) { SetStart(std::move(value)); return *this;}
75
76
81 inline const Aws::Utils::DateTime& GetEnd() const{ return m_end; }
82
87 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
88
93 inline void SetEnd(const Aws::Utils::DateTime& value) { m_endHasBeenSet = true; m_end = value; }
94
99 inline void SetEnd(Aws::Utils::DateTime&& value) { m_endHasBeenSet = true; m_end = std::move(value); }
100
105 inline TimeRange& WithEnd(const Aws::Utils::DateTime& value) { SetEnd(value); return *this;}
106
111 inline TimeRange& WithEnd(Aws::Utils::DateTime&& value) { SetEnd(std::move(value)); return *this;}
112
113 private:
114
115 Aws::Utils::DateTime m_start;
116 bool m_startHasBeenSet = false;
117
119 bool m_endHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace CodeDeploy
124} // namespace Aws
#define AWS_CODEDEPLOY_API
void SetStart(Aws::Utils::DateTime &&value)
Definition: TimeRange.h:62
const Aws::Utils::DateTime & GetStart() const
Definition: TimeRange.h:44
AWS_CODEDEPLOY_API TimeRange()
AWS_CODEDEPLOY_API TimeRange & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API TimeRange(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEnd() const
Definition: TimeRange.h:81
void SetEnd(const Aws::Utils::DateTime &value)
Definition: TimeRange.h:93
void SetStart(const Aws::Utils::DateTime &value)
Definition: TimeRange.h:56
TimeRange & WithEnd(const Aws::Utils::DateTime &value)
Definition: TimeRange.h:105
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEnd(Aws::Utils::DateTime &&value)
Definition: TimeRange.h:99
TimeRange & WithStart(const Aws::Utils::DateTime &value)
Definition: TimeRange.h:68
TimeRange & WithEnd(Aws::Utils::DateTime &&value)
Definition: TimeRange.h:111
TimeRange & WithStart(Aws::Utils::DateTime &&value)
Definition: TimeRange.h:74