AWS SDK for C++

AWS SDK for C++ Version 1.11.740

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeDeploy {
20namespace Model {
21
27class TimeRange {
28 public:
29 AWS_CODEDEPLOY_API TimeRange() = default;
30 AWS_CODEDEPLOY_API TimeRange(Aws::Utils::Json::JsonView jsonValue);
31 AWS_CODEDEPLOY_API TimeRange& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline const Aws::Utils::DateTime& GetStart() const { return m_start; }
40 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
41 template <typename StartT = Aws::Utils::DateTime>
42 void SetStart(StartT&& value) {
43 m_startHasBeenSet = true;
44 m_start = std::forward<StartT>(value);
45 }
46 template <typename StartT = Aws::Utils::DateTime>
47 TimeRange& WithStart(StartT&& value) {
48 SetStart(std::forward<StartT>(value));
49 return *this;
50 }
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) {
62 m_endHasBeenSet = true;
63 m_end = std::forward<EndT>(value);
64 }
65 template <typename EndT = Aws::Utils::DateTime>
66 TimeRange& WithEnd(EndT&& value) {
67 SetEnd(std::forward<EndT>(value));
68 return *this;
69 }
71 private:
72 Aws::Utils::DateTime m_start{};
73
75 bool m_startHasBeenSet = false;
76 bool m_endHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace CodeDeploy
81} // namespace Aws
const Aws::Utils::DateTime & GetStart() const
Definition TimeRange.h:39
TimeRange & WithStart(StartT &&value)
Definition TimeRange.h:47
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:42
TimeRange & WithEnd(EndT &&value)
Definition TimeRange.h:66
Aws::Utils::Json::JsonValue JsonValue