AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
PointInTimeConfiguration.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
10#include <aws/eventbridgev2/model/PointType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace EventBridgeV2 {
21namespace Model {
22
30 public:
31 AWS_EVENTBRIDGEV2_API PointInTimeConfiguration() = default;
32 AWS_EVENTBRIDGEV2_API PointInTimeConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_EVENTBRIDGEV2_API PointInTimeConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline PointType GetPointType() const { return m_pointType; }
41 inline bool PointTypeHasBeenSet() const { return m_pointTypeHasBeenSet; }
42 inline void SetPointType(PointType value) {
43 m_pointTypeHasBeenSet = true;
44 m_pointType = value;
45 }
47 SetPointType(value);
48 return *this;
49 }
51
53
56 inline const Aws::Utils::DateTime& GetStartingPoint() const { return m_startingPoint; }
57 inline bool StartingPointHasBeenSet() const { return m_startingPointHasBeenSet; }
58 template <typename StartingPointT = Aws::Utils::DateTime>
59 void SetStartingPoint(StartingPointT&& value) {
60 m_startingPointHasBeenSet = true;
61 m_startingPoint = std::forward<StartingPointT>(value);
62 }
63 template <typename StartingPointT = Aws::Utils::DateTime>
65 SetStartingPoint(std::forward<StartingPointT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Utils::DateTime& GetEndPoint() const { return m_endPoint; }
75 inline bool EndPointHasBeenSet() const { return m_endPointHasBeenSet; }
76 template <typename EndPointT = Aws::Utils::DateTime>
77 void SetEndPoint(EndPointT&& value) {
78 m_endPointHasBeenSet = true;
79 m_endPoint = std::forward<EndPointT>(value);
80 }
81 template <typename EndPointT = Aws::Utils::DateTime>
83 SetEndPoint(std::forward<EndPointT>(value));
84 return *this;
85 }
87 private:
88 PointType m_pointType{PointType::NOT_SET};
89
90 Aws::Utils::DateTime m_startingPoint{};
91
92 Aws::Utils::DateTime m_endPoint{};
93 bool m_pointTypeHasBeenSet = false;
94 bool m_startingPointHasBeenSet = false;
95 bool m_endPointHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace EventBridgeV2
100} // namespace Aws
AWS_EVENTBRIDGEV2_API PointInTimeConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
PointInTimeConfiguration & WithPointType(PointType value)
PointInTimeConfiguration & WithStartingPoint(StartingPointT &&value)
AWS_EVENTBRIDGEV2_API PointInTimeConfiguration()=default
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
PointInTimeConfiguration & WithEndPoint(EndPointT &&value)
AWS_EVENTBRIDGEV2_API PointInTimeConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)