AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AccountOutcome.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
29 public:
30 AWS_ASSURANCE_API AccountOutcome() = default;
31 AWS_ASSURANCE_API AccountOutcome(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_ASSURANCE_API AccountOutcome& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const Aws::String& GetAccountId() const { return m_accountId; }
40 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
41 template <typename AccountIdT = Aws::String>
42 void SetAccountId(AccountIdT&& value) {
43 m_accountIdHasBeenSet = true;
44 m_accountId = std::forward<AccountIdT>(value);
45 }
46 template <typename AccountIdT = Aws::String>
47 AccountOutcome& WithAccountId(AccountIdT&& value) {
48 SetAccountId(std::forward<AccountIdT>(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 }
63 inline AccountOutcome& WithOutcomePercentage(double value) {
65 return *this;
66 }
68
70
73 inline const Aws::String& GetFindingsSummary() const { return m_findingsSummary; }
74 inline bool FindingsSummaryHasBeenSet() const { return m_findingsSummaryHasBeenSet; }
75 template <typename FindingsSummaryT = Aws::String>
76 void SetFindingsSummary(FindingsSummaryT&& value) {
77 m_findingsSummaryHasBeenSet = true;
78 m_findingsSummary = std::forward<FindingsSummaryT>(value);
79 }
80 template <typename FindingsSummaryT = Aws::String>
81 AccountOutcome& WithFindingsSummary(FindingsSummaryT&& value) {
82 SetFindingsSummary(std::forward<FindingsSummaryT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_accountId;
88
89 double m_outcomePercentage{0.0};
90
91 Aws::String m_findingsSummary;
92 bool m_accountIdHasBeenSet = false;
93 bool m_outcomePercentageHasBeenSet = false;
94 bool m_findingsSummaryHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Assurance
99} // namespace Aws
const Aws::String & GetFindingsSummary() const
void SetFindingsSummary(FindingsSummaryT &&value)
AccountOutcome & WithOutcomePercentage(double value)
void SetAccountId(AccountIdT &&value)
const Aws::String & GetAccountId() const
AccountOutcome & WithAccountId(AccountIdT &&value)
AccountOutcome & WithFindingsSummary(FindingsSummaryT &&value)
AWS_ASSURANCE_API AccountOutcome & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_ASSURANCE_API AccountOutcome()=default
AWS_ASSURANCE_API AccountOutcome(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String