AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EvaluationResult.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/model/ComplianceType.h>
9#include <aws/config/model/EvaluationResultIdentifier.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConfigService {
23namespace Model {
24
33 public:
34 AWS_CONFIGSERVICE_API EvaluationResult() = default;
35 AWS_CONFIGSERVICE_API EvaluationResult(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONFIGSERVICE_API EvaluationResult& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const EvaluationResultIdentifier& GetEvaluationResultIdentifier() const { return m_evaluationResultIdentifier; }
44 inline bool EvaluationResultIdentifierHasBeenSet() const { return m_evaluationResultIdentifierHasBeenSet; }
45 template <typename EvaluationResultIdentifierT = EvaluationResultIdentifier>
46 void SetEvaluationResultIdentifier(EvaluationResultIdentifierT&& value) {
47 m_evaluationResultIdentifierHasBeenSet = true;
48 m_evaluationResultIdentifier = std::forward<EvaluationResultIdentifierT>(value);
49 }
50 template <typename EvaluationResultIdentifierT = EvaluationResultIdentifier>
51 EvaluationResult& WithEvaluationResultIdentifier(EvaluationResultIdentifierT&& value) {
52 SetEvaluationResultIdentifier(std::forward<EvaluationResultIdentifierT>(value));
53 return *this;
54 }
56
58
66 inline ComplianceType GetComplianceType() const { return m_complianceType; }
67 inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
68 inline void SetComplianceType(ComplianceType value) {
69 m_complianceTypeHasBeenSet = true;
70 m_complianceType = value;
71 }
73 SetComplianceType(value);
74 return *this;
75 }
77
79
82 inline const Aws::Utils::DateTime& GetResultRecordedTime() const { return m_resultRecordedTime; }
83 inline bool ResultRecordedTimeHasBeenSet() const { return m_resultRecordedTimeHasBeenSet; }
84 template <typename ResultRecordedTimeT = Aws::Utils::DateTime>
85 void SetResultRecordedTime(ResultRecordedTimeT&& value) {
86 m_resultRecordedTimeHasBeenSet = true;
87 m_resultRecordedTime = std::forward<ResultRecordedTimeT>(value);
88 }
89 template <typename ResultRecordedTimeT = Aws::Utils::DateTime>
90 EvaluationResult& WithResultRecordedTime(ResultRecordedTimeT&& value) {
91 SetResultRecordedTime(std::forward<ResultRecordedTimeT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Utils::DateTime& GetConfigRuleInvokedTime() const { return m_configRuleInvokedTime; }
101 inline bool ConfigRuleInvokedTimeHasBeenSet() const { return m_configRuleInvokedTimeHasBeenSet; }
102 template <typename ConfigRuleInvokedTimeT = Aws::Utils::DateTime>
103 void SetConfigRuleInvokedTime(ConfigRuleInvokedTimeT&& value) {
104 m_configRuleInvokedTimeHasBeenSet = true;
105 m_configRuleInvokedTime = std::forward<ConfigRuleInvokedTimeT>(value);
106 }
107 template <typename ConfigRuleInvokedTimeT = Aws::Utils::DateTime>
108 EvaluationResult& WithConfigRuleInvokedTime(ConfigRuleInvokedTimeT&& value) {
109 SetConfigRuleInvokedTime(std::forward<ConfigRuleInvokedTimeT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetAnnotation() const { return m_annotation; }
120 inline bool AnnotationHasBeenSet() const { return m_annotationHasBeenSet; }
121 template <typename AnnotationT = Aws::String>
122 void SetAnnotation(AnnotationT&& value) {
123 m_annotationHasBeenSet = true;
124 m_annotation = std::forward<AnnotationT>(value);
125 }
126 template <typename AnnotationT = Aws::String>
127 EvaluationResult& WithAnnotation(AnnotationT&& value) {
128 SetAnnotation(std::forward<AnnotationT>(value));
129 return *this;
130 }
132
134
139 inline const Aws::String& GetResultToken() const { return m_resultToken; }
140 inline bool ResultTokenHasBeenSet() const { return m_resultTokenHasBeenSet; }
141 template <typename ResultTokenT = Aws::String>
142 void SetResultToken(ResultTokenT&& value) {
143 m_resultTokenHasBeenSet = true;
144 m_resultToken = std::forward<ResultTokenT>(value);
145 }
146 template <typename ResultTokenT = Aws::String>
147 EvaluationResult& WithResultToken(ResultTokenT&& value) {
148 SetResultToken(std::forward<ResultTokenT>(value));
149 return *this;
150 }
152 private:
153 EvaluationResultIdentifier m_evaluationResultIdentifier;
154
155 ComplianceType m_complianceType{ComplianceType::NOT_SET};
156
157 Aws::Utils::DateTime m_resultRecordedTime{};
158
159 Aws::Utils::DateTime m_configRuleInvokedTime{};
160
161 Aws::String m_annotation;
162
163 Aws::String m_resultToken;
164 bool m_evaluationResultIdentifierHasBeenSet = false;
165 bool m_complianceTypeHasBeenSet = false;
166 bool m_resultRecordedTimeHasBeenSet = false;
167 bool m_configRuleInvokedTimeHasBeenSet = false;
168 bool m_annotationHasBeenSet = false;
169 bool m_resultTokenHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace ConfigService
174} // namespace Aws
AWS_CONFIGSERVICE_API EvaluationResult(Aws::Utils::Json::JsonView jsonValue)
EvaluationResult & WithResultToken(ResultTokenT &&value)
const EvaluationResultIdentifier & GetEvaluationResultIdentifier() const
void SetEvaluationResultIdentifier(EvaluationResultIdentifierT &&value)
EvaluationResult & WithComplianceType(ComplianceType value)
const Aws::Utils::DateTime & GetConfigRuleInvokedTime() const
const Aws::Utils::DateTime & GetResultRecordedTime() const
void SetResultRecordedTime(ResultRecordedTimeT &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
EvaluationResult & WithConfigRuleInvokedTime(ConfigRuleInvokedTimeT &&value)
AWS_CONFIGSERVICE_API EvaluationResult & operator=(Aws::Utils::Json::JsonView jsonValue)
EvaluationResult & WithResultRecordedTime(ResultRecordedTimeT &&value)
void SetConfigRuleInvokedTime(ConfigRuleInvokedTimeT &&value)
AWS_CONFIGSERVICE_API EvaluationResult()=default
EvaluationResult & WithEvaluationResultIdentifier(EvaluationResultIdentifierT &&value)
EvaluationResult & WithAnnotation(AnnotationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue