AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AssessmentOutcomeEntry.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Assurance {
20namespace Model {
21
28 public:
29 AWS_ASSURANCE_API AssessmentOutcomeEntry() = default;
30 AWS_ASSURANCE_API AssessmentOutcomeEntry(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_ASSURANCE_API AssessmentOutcomeEntry& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
39 inline const Aws::String& GetControlId() const { return m_controlId; }
40 inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
41 template <typename ControlIdT = Aws::String>
42 void SetControlId(ControlIdT&& value) {
43 m_controlIdHasBeenSet = true;
44 m_controlId = std::forward<ControlIdT>(value);
45 }
46 template <typename ControlIdT = Aws::String>
48 SetControlId(std::forward<ControlIdT>(value));
49 return *this;
50 }
52
54
57 inline double GetOutcomePercentage() const { return m_outcomePercentage; }
58 inline bool OutcomePercentageHasBeenSet() const { return m_outcomePercentageHasBeenSet; }
59 inline void SetOutcomePercentage(double value) {
60 m_outcomePercentageHasBeenSet = true;
61 m_outcomePercentage = value;
62 }
65 return *this;
66 }
68 private:
69 Aws::String m_controlId;
70
71 double m_outcomePercentage{0.0};
72 bool m_controlIdHasBeenSet = false;
73 bool m_outcomePercentageHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Assurance
78} // namespace Aws
AWS_ASSURANCE_API AssessmentOutcomeEntry & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetControlId(ControlIdT &&value)
AssessmentOutcomeEntry & WithOutcomePercentage(double value)
double GetOutcomePercentage() const
AWS_ASSURANCE_API AssessmentOutcomeEntry(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AssessmentOutcomeEntry & WithControlId(ControlIdT &&value)
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
bool ControlIdHasBeenSet() const
void SetOutcomePercentage(double value)
const Aws::String & GetControlId() const
AWS_ASSURANCE_API AssessmentOutcomeEntry()=default
bool OutcomePercentageHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String