AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStart(const Aws::Utils::DateTime& value) { m_startHasBeenSet = true; m_start = value; }
48 inline void SetStart(Aws::Utils::DateTime&& value) { m_startHasBeenSet = true; m_start = std::move(value); }
49 inline TimeRange& WithStart(const Aws::Utils::DateTime& value) { SetStart(value); return *this;}
50 inline TimeRange& WithStart(Aws::Utils::DateTime&& value) { SetStart(std::move(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 inline void SetEnd(const Aws::Utils::DateTime& value) { m_endHasBeenSet = true; m_end = value; }
61 inline void SetEnd(Aws::Utils::DateTime&& value) { m_endHasBeenSet = true; m_end = std::move(value); }
62 inline TimeRange& WithEnd(const Aws::Utils::DateTime& value) { SetEnd(value); return *this;}
63 inline TimeRange& WithEnd(Aws::Utils::DateTime&& value) { SetEnd(std::move(value)); return *this;}
65 private:
66
68 bool m_startHasBeenSet = false;
69
71 bool m_endHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CodeDeploy
76} // namespace Aws
void SetStart(Aws::Utils::DateTime &&value)
Definition TimeRange.h:48
const Aws::Utils::DateTime & GetStart() const
Definition TimeRange.h:45
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:58
void SetEnd(const Aws::Utils::DateTime &value)
Definition TimeRange.h:60
void SetStart(const Aws::Utils::DateTime &value)
Definition TimeRange.h:47
TimeRange & WithEnd(const Aws::Utils::DateTime &value)
Definition TimeRange.h:62
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEnd(Aws::Utils::DateTime &&value)
Definition TimeRange.h:61
TimeRange & WithStart(const Aws::Utils::DateTime &value)
Definition TimeRange.h:49
TimeRange & WithEnd(Aws::Utils::DateTime &&value)
Definition TimeRange.h:63
TimeRange & WithStart(Aws::Utils::DateTime &&value)
Definition TimeRange.h:50
Aws::Utils::Json::JsonValue JsonValue