AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Range.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/monitoring/CloudWatch_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CloudWatch {
20namespace Model {
21
28class Range {
29 public:
30 AWS_CLOUDWATCH_API Range() = default;
31 AWS_CLOUDWATCH_API Range(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CLOUDWATCH_API Range& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
41 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
42 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
43 template <typename StartTimeT = Aws::Utils::DateTime>
44 void SetStartTime(StartTimeT&& value) {
45 m_startTimeHasBeenSet = true;
46 m_startTime = std::forward<StartTimeT>(value);
47 }
48 template <typename StartTimeT = Aws::Utils::DateTime>
49 Range& WithStartTime(StartTimeT&& value) {
50 SetStartTime(std::forward<StartTimeT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
62 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
63 template <typename EndTimeT = Aws::Utils::DateTime>
64 void SetEndTime(EndTimeT&& value) {
65 m_endTimeHasBeenSet = true;
66 m_endTime = std::forward<EndTimeT>(value);
67 }
68 template <typename EndTimeT = Aws::Utils::DateTime>
69 Range& WithEndTime(EndTimeT&& value) {
70 SetEndTime(std::forward<EndTimeT>(value));
71 return *this;
72 }
74 private:
75 Aws::Utils::DateTime m_startTime{};
76
77 Aws::Utils::DateTime m_endTime{};
78 bool m_startTimeHasBeenSet = false;
79 bool m_endTimeHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace CloudWatch
84} // namespace Aws
const Aws::Utils::DateTime & GetStartTime() const
Definition Range.h:41
Range & WithEndTime(EndTimeT &&value)
Definition Range.h:69
const Aws::Utils::DateTime & GetEndTime() const
Definition Range.h:61
bool StartTimeHasBeenSet() const
Definition Range.h:42
AWS_CLOUDWATCH_API Range()=default
AWS_CLOUDWATCH_API Range & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Range & WithStartTime(StartTimeT &&value)
Definition Range.h:49
AWS_CLOUDWATCH_API Range(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool EndTimeHasBeenSet() const
Definition Range.h:62
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetStartTime(StartTimeT &&value)
Definition Range.h:44
void SetEndTime(EndTimeT &&value)
Definition Range.h:64