AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TimeRange.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_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 CodeDeploy
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_CODEDEPLOY_API TimeRange() = default;
35 AWS_CODEDEPLOY_API TimeRange(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEDEPLOY_API TimeRange& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline const Aws::Utils::DateTime& GetStart() const { return m_start; }
46 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
47 template<typename StartT = Aws::Utils::DateTime>
48 void SetStart(StartT&& value) { m_startHasBeenSet = true; m_start = std::forward<StartT>(value); }
49 template<typename StartT = Aws::Utils::DateTime>
50 TimeRange& WithStart(StartT&& value) { SetStart(std::forward<StartT>(value)); return *this;}
52
54
58 inline const Aws::Utils::DateTime& GetEnd() const { return m_end; }
59 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
60 template<typename EndT = Aws::Utils::DateTime>
61 void SetEnd(EndT&& value) { m_endHasBeenSet = true; m_end = std::forward<EndT>(value); }
62 template<typename EndT = Aws::Utils::DateTime>
63 TimeRange& WithEnd(EndT&& value) { SetEnd(std::forward<EndT>(value)); return *this;}
65 private:
66
67 Aws::Utils::DateTime m_start{};
68 bool m_startHasBeenSet = false;
69
71 bool m_endHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CodeDeploy
76} // namespace Aws
const Aws::Utils::DateTime & GetStart() const
Definition TimeRange.h:45
TimeRange & WithStart(StartT &&value)
Definition TimeRange.h:50
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:58
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEDEPLOY_API TimeRange()=default
void SetStart(StartT &&value)
Definition TimeRange.h:48
TimeRange & WithEnd(EndT &&value)
Definition TimeRange.h:63
Aws::Utils::Json::JsonValue JsonValue