AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
TimestampRange.h
1
6#pragma once
7#include <aws/acm/ACM_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 ACM {
20namespace Model {
21
29 public:
30 AWS_ACM_API TimestampRange() = default;
34
36
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 TimestampRange& WithStart(StartT&& value) {
48 SetStart(std::forward<StartT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Utils::DateTime& GetEnd() const { return m_end; }
58 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
59 template <typename EndT = Aws::Utils::DateTime>
60 void SetEnd(EndT&& value) {
61 m_endHasBeenSet = true;
62 m_end = std::forward<EndT>(value);
63 }
64 template <typename EndT = Aws::Utils::DateTime>
65 TimestampRange& WithEnd(EndT&& value) {
66 SetEnd(std::forward<EndT>(value));
67 return *this;
68 }
70 private:
71 Aws::Utils::DateTime m_start{};
72
74 bool m_startHasBeenSet = false;
75 bool m_endHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ACM
80} // namespace Aws
TimestampRange & WithStart(StartT &&value)
AWS_ACM_API TimestampRange(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStart() const
TimestampRange & WithEnd(EndT &&value)
AWS_ACM_API TimestampRange & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStart(StartT &&value)
AWS_ACM_API TimestampRange()=default
const Aws::Utils::DateTime & GetEnd() const
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue