AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AssessmentOutcomeDataPoint.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/AssessmentOutcomeEntry.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace Assurance {
22namespace Model {
23
30 public:
31 AWS_ASSURANCE_API AssessmentOutcomeDataPoint() = default;
32 AWS_ASSURANCE_API AssessmentOutcomeDataPoint(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_ASSURANCE_API AssessmentOutcomeDataPoint& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
41 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
42 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
43 template <typename TimestampT = Aws::Utils::DateTime>
44 void SetTimestamp(TimestampT&& value) {
45 m_timestampHasBeenSet = true;
46 m_timestamp = std::forward<TimestampT>(value);
47 }
48 template <typename TimestampT = Aws::Utils::DateTime>
50 SetTimestamp(std::forward<TimestampT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::Vector<AssessmentOutcomeEntry>& GetOutcomes() const { return m_outcomes; }
63 inline bool OutcomesHasBeenSet() const { return m_outcomesHasBeenSet; }
64 template <typename OutcomesT = Aws::Vector<AssessmentOutcomeEntry>>
65 void SetOutcomes(OutcomesT&& value) {
66 m_outcomesHasBeenSet = true;
67 m_outcomes = std::forward<OutcomesT>(value);
68 }
69 template <typename OutcomesT = Aws::Vector<AssessmentOutcomeEntry>>
71 SetOutcomes(std::forward<OutcomesT>(value));
72 return *this;
73 }
74 template <typename OutcomesT = AssessmentOutcomeEntry>
76 m_outcomesHasBeenSet = true;
77 m_outcomes.emplace_back(std::forward<OutcomesT>(value));
78 return *this;
79 }
81 private:
82 Aws::Utils::DateTime m_timestamp{};
83
85 bool m_timestampHasBeenSet = false;
86 bool m_outcomesHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace Assurance
91} // namespace Aws
AssessmentOutcomeDataPoint & WithOutcomes(OutcomesT &&value)
AWS_ASSURANCE_API AssessmentOutcomeDataPoint & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< AssessmentOutcomeEntry > & GetOutcomes() const
AssessmentOutcomeDataPoint & AddOutcomes(OutcomesT &&value)
AssessmentOutcomeDataPoint & WithTimestamp(TimestampT &&value)
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_ASSURANCE_API AssessmentOutcomeDataPoint()=default
AWS_ASSURANCE_API AssessmentOutcomeDataPoint(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::vector< T, Aws::Allocator< T > > Vector