AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
AggregateEvaluationResult.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
34 public:
35 AWS_CONFIGSERVICE_API AggregateEvaluationResult() = default;
36 AWS_CONFIGSERVICE_API AggregateEvaluationResult(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const EvaluationResultIdentifier& GetEvaluationResultIdentifier() const { return m_evaluationResultIdentifier; }
45 inline bool EvaluationResultIdentifierHasBeenSet() const { return m_evaluationResultIdentifierHasBeenSet; }
46 template <typename EvaluationResultIdentifierT = EvaluationResultIdentifier>
47 void SetEvaluationResultIdentifier(EvaluationResultIdentifierT&& value) {
48 m_evaluationResultIdentifierHasBeenSet = true;
49 m_evaluationResultIdentifier = std::forward<EvaluationResultIdentifierT>(value);
50 }
51 template <typename EvaluationResultIdentifierT = EvaluationResultIdentifier>
52 AggregateEvaluationResult& WithEvaluationResultIdentifier(EvaluationResultIdentifierT&& value) {
53 SetEvaluationResultIdentifier(std::forward<EvaluationResultIdentifierT>(value));
54 return *this;
55 }
57
59
65 inline ComplianceType GetComplianceType() const { return m_complianceType; }
66 inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
67 inline void SetComplianceType(ComplianceType value) {
68 m_complianceTypeHasBeenSet = true;
69 m_complianceType = value;
70 }
72 SetComplianceType(value);
73 return *this;
74 }
76
78
81 inline const Aws::Utils::DateTime& GetResultRecordedTime() const { return m_resultRecordedTime; }
82 inline bool ResultRecordedTimeHasBeenSet() const { return m_resultRecordedTimeHasBeenSet; }
83 template <typename ResultRecordedTimeT = Aws::Utils::DateTime>
84 void SetResultRecordedTime(ResultRecordedTimeT&& value) {
85 m_resultRecordedTimeHasBeenSet = true;
86 m_resultRecordedTime = std::forward<ResultRecordedTimeT>(value);
87 }
88 template <typename ResultRecordedTimeT = Aws::Utils::DateTime>
89 AggregateEvaluationResult& WithResultRecordedTime(ResultRecordedTimeT&& value) {
90 SetResultRecordedTime(std::forward<ResultRecordedTimeT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Utils::DateTime& GetConfigRuleInvokedTime() const { return m_configRuleInvokedTime; }
100 inline bool ConfigRuleInvokedTimeHasBeenSet() const { return m_configRuleInvokedTimeHasBeenSet; }
101 template <typename ConfigRuleInvokedTimeT = Aws::Utils::DateTime>
102 void SetConfigRuleInvokedTime(ConfigRuleInvokedTimeT&& value) {
103 m_configRuleInvokedTimeHasBeenSet = true;
104 m_configRuleInvokedTime = std::forward<ConfigRuleInvokedTimeT>(value);
105 }
106 template <typename ConfigRuleInvokedTimeT = Aws::Utils::DateTime>
107 AggregateEvaluationResult& WithConfigRuleInvokedTime(ConfigRuleInvokedTimeT&& value) {
108 SetConfigRuleInvokedTime(std::forward<ConfigRuleInvokedTimeT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetAnnotation() const { return m_annotation; }
119 inline bool AnnotationHasBeenSet() const { return m_annotationHasBeenSet; }
120 template <typename AnnotationT = Aws::String>
121 void SetAnnotation(AnnotationT&& value) {
122 m_annotationHasBeenSet = true;
123 m_annotation = std::forward<AnnotationT>(value);
124 }
125 template <typename AnnotationT = Aws::String>
127 SetAnnotation(std::forward<AnnotationT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetAccountId() const { return m_accountId; }
137 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
138 template <typename AccountIdT = Aws::String>
139 void SetAccountId(AccountIdT&& value) {
140 m_accountIdHasBeenSet = true;
141 m_accountId = std::forward<AccountIdT>(value);
142 }
143 template <typename AccountIdT = Aws::String>
145 SetAccountId(std::forward<AccountIdT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
155 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
156 template <typename AwsRegionT = Aws::String>
157 void SetAwsRegion(AwsRegionT&& value) {
158 m_awsRegionHasBeenSet = true;
159 m_awsRegion = std::forward<AwsRegionT>(value);
160 }
161 template <typename AwsRegionT = Aws::String>
163 SetAwsRegion(std::forward<AwsRegionT>(value));
164 return *this;
165 }
167 private:
168 EvaluationResultIdentifier m_evaluationResultIdentifier;
169
170 ComplianceType m_complianceType{ComplianceType::NOT_SET};
171
172 Aws::Utils::DateTime m_resultRecordedTime{};
173
174 Aws::Utils::DateTime m_configRuleInvokedTime{};
175
176 Aws::String m_annotation;
177
178 Aws::String m_accountId;
179
180 Aws::String m_awsRegion;
181 bool m_evaluationResultIdentifierHasBeenSet = false;
182 bool m_complianceTypeHasBeenSet = false;
183 bool m_resultRecordedTimeHasBeenSet = false;
184 bool m_configRuleInvokedTimeHasBeenSet = false;
185 bool m_annotationHasBeenSet = false;
186 bool m_accountIdHasBeenSet = false;
187 bool m_awsRegionHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace ConfigService
192} // namespace Aws
AggregateEvaluationResult & WithConfigRuleInvokedTime(ConfigRuleInvokedTimeT &&value)
const Aws::Utils::DateTime & GetConfigRuleInvokedTime() const
AWS_CONFIGSERVICE_API AggregateEvaluationResult(Aws::Utils::Json::JsonView jsonValue)
const EvaluationResultIdentifier & GetEvaluationResultIdentifier() const
AggregateEvaluationResult & WithAwsRegion(AwsRegionT &&value)
void SetEvaluationResultIdentifier(EvaluationResultIdentifierT &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONFIGSERVICE_API AggregateEvaluationResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API AggregateEvaluationResult()=default
AggregateEvaluationResult & WithAccountId(AccountIdT &&value)
AggregateEvaluationResult & WithResultRecordedTime(ResultRecordedTimeT &&value)
AggregateEvaluationResult & WithComplianceType(ComplianceType value)
AggregateEvaluationResult & WithEvaluationResultIdentifier(EvaluationResultIdentifierT &&value)
AggregateEvaluationResult & WithAnnotation(AnnotationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue