AWS SDK for C++

AWS SDK for C++ Version 1.11.847

Loading...
Searching...
No Matches
RuleVerdictToEvaluate.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/mailmanager/MailManager_EXPORTS.h>
9#include <aws/mailmanager/model/Analysis.h>
10#include <aws/mailmanager/model/RuleVerdictAttribute.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace MailManager {
21namespace Model {
22
30 public:
31 AWS_MAILMANAGER_API RuleVerdictToEvaluate() = default;
32 AWS_MAILMANAGER_API RuleVerdictToEvaluate(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_MAILMANAGER_API RuleVerdictToEvaluate& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_MAILMANAGER_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline RuleVerdictAttribute GetAttribute() const { return m_attribute; }
41 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
43 m_attributeHasBeenSet = true;
44 m_attribute = value;
45 }
47 SetAttribute(value);
48 return *this;
49 }
51
53
57 inline const Analysis& GetAnalysis() const { return m_analysis; }
58 inline bool AnalysisHasBeenSet() const { return m_analysisHasBeenSet; }
59 template <typename AnalysisT = Analysis>
60 void SetAnalysis(AnalysisT&& value) {
61 m_analysisHasBeenSet = true;
62 m_analysis = std::forward<AnalysisT>(value);
63 }
64 template <typename AnalysisT = Analysis>
65 RuleVerdictToEvaluate& WithAnalysis(AnalysisT&& value) {
66 SetAnalysis(std::forward<AnalysisT>(value));
67 return *this;
68 }
70 private:
72
73 Analysis m_analysis;
74 bool m_attributeHasBeenSet = false;
75 bool m_analysisHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace MailManager
80} // namespace Aws
RuleVerdictToEvaluate & WithAttribute(RuleVerdictAttribute value)
AWS_MAILMANAGER_API RuleVerdictToEvaluate(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
RuleVerdictToEvaluate & WithAnalysis(AnalysisT &&value)
AWS_MAILMANAGER_API RuleVerdictToEvaluate & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_MAILMANAGER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_MAILMANAGER_API RuleVerdictToEvaluate()=default