PageRenderTime 26ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/aws-cpp-sdk-config/include/aws/config/model/EvaluationResult.h

https://gitlab.com/vectorci/aws-sdk-cpp
C Header | 282 lines | 77 code | 38 blank | 167 comment | 0 complexity | 7fc627c8d6fb2b5c56b424126d9941aa MD5 | raw file
  1. /*
  2. * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License").
  5. * You may not use this file except in compliance with the License.
  6. * A copy of the License is located at
  7. *
  8. * http://aws.amazon.com/apache2.0
  9. *
  10. * or in the "license" file accompanying this file. This file is distributed
  11. * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  12. * express or implied. See the License for the specific language governing
  13. * permissions and limitations under the License.
  14. */
  15. #pragma once
  16. #include <aws/config/ConfigService_EXPORTS.h>
  17. #include <aws/config/model/EvaluationResultIdentifier.h>
  18. #include <aws/config/model/ComplianceType.h>
  19. #include <aws/core/utils/DateTime.h>
  20. #include <aws/core/utils/memory/stl/AWSString.h>
  21. namespace Aws
  22. {
  23. namespace Utils
  24. {
  25. namespace Json
  26. {
  27. class JsonValue;
  28. } // namespace Json
  29. } // namespace Utils
  30. namespace ConfigService
  31. {
  32. namespace Model
  33. {
  34. /**
  35. * <p>The details of an AWS Config evaluation. Provides the AWS resource that was
  36. * evaluated, the compliance of the resource, related timestamps, and supplementary
  37. * information. </p>
  38. */
  39. class AWS_CONFIGSERVICE_API EvaluationResult
  40. {
  41. public:
  42. EvaluationResult();
  43. EvaluationResult(const Aws::Utils::Json::JsonValue& jsonValue);
  44. EvaluationResult& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
  45. Aws::Utils::Json::JsonValue Jsonize() const;
  46. /**
  47. * <p>Uniquely identifies the evaluation result.</p>
  48. */
  49. inline const EvaluationResultIdentifier& GetEvaluationResultIdentifier() const{ return m_evaluationResultIdentifier; }
  50. /**
  51. * <p>Uniquely identifies the evaluation result.</p>
  52. */
  53. inline void SetEvaluationResultIdentifier(const EvaluationResultIdentifier& value) { m_evaluationResultIdentifierHasBeenSet = true; m_evaluationResultIdentifier = value; }
  54. /**
  55. * <p>Uniquely identifies the evaluation result.</p>
  56. */
  57. inline void SetEvaluationResultIdentifier(EvaluationResultIdentifier&& value) { m_evaluationResultIdentifierHasBeenSet = true; m_evaluationResultIdentifier = value; }
  58. /**
  59. * <p>Uniquely identifies the evaluation result.</p>
  60. */
  61. inline EvaluationResult& WithEvaluationResultIdentifier(const EvaluationResultIdentifier& value) { SetEvaluationResultIdentifier(value); return *this;}
  62. /**
  63. * <p>Uniquely identifies the evaluation result.</p>
  64. */
  65. inline EvaluationResult& WithEvaluationResultIdentifier(EvaluationResultIdentifier&& value) { SetEvaluationResultIdentifier(value); return *this;}
  66. /**
  67. * <p>Indicates whether the AWS resource complies with the AWS Config rule that
  68. * evaluated it.</p> <p>For the <code>EvaluationResult</code> data type, AWS Config
  69. * supports only the <code>COMPLIANT</code>, <code>NON_COMPLIANT</code>, and
  70. * <code>NOT_APPLICABLE</code> values. AWS Config does not support the
  71. * <code>INSUFFICIENT_DATA</code> value for the <code>EvaluationResult</code> data
  72. * type.</p>
  73. */
  74. inline const ComplianceType& GetComplianceType() const{ return m_complianceType; }
  75. /**
  76. * <p>Indicates whether the AWS resource complies with the AWS Config rule that
  77. * evaluated it.</p> <p>For the <code>EvaluationResult</code> data type, AWS Config
  78. * supports only the <code>COMPLIANT</code>, <code>NON_COMPLIANT</code>, and
  79. * <code>NOT_APPLICABLE</code> values. AWS Config does not support the
  80. * <code>INSUFFICIENT_DATA</code> value for the <code>EvaluationResult</code> data
  81. * type.</p>
  82. */
  83. inline void SetComplianceType(const ComplianceType& value) { m_complianceTypeHasBeenSet = true; m_complianceType = value; }
  84. /**
  85. * <p>Indicates whether the AWS resource complies with the AWS Config rule that
  86. * evaluated it.</p> <p>For the <code>EvaluationResult</code> data type, AWS Config
  87. * supports only the <code>COMPLIANT</code>, <code>NON_COMPLIANT</code>, and
  88. * <code>NOT_APPLICABLE</code> values. AWS Config does not support the
  89. * <code>INSUFFICIENT_DATA</code> value for the <code>EvaluationResult</code> data
  90. * type.</p>
  91. */
  92. inline void SetComplianceType(ComplianceType&& value) { m_complianceTypeHasBeenSet = true; m_complianceType = value; }
  93. /**
  94. * <p>Indicates whether the AWS resource complies with the AWS Config rule that
  95. * evaluated it.</p> <p>For the <code>EvaluationResult</code> data type, AWS Config
  96. * supports only the <code>COMPLIANT</code>, <code>NON_COMPLIANT</code>, and
  97. * <code>NOT_APPLICABLE</code> values. AWS Config does not support the
  98. * <code>INSUFFICIENT_DATA</code> value for the <code>EvaluationResult</code> data
  99. * type.</p>
  100. */
  101. inline EvaluationResult& WithComplianceType(const ComplianceType& value) { SetComplianceType(value); return *this;}
  102. /**
  103. * <p>Indicates whether the AWS resource complies with the AWS Config rule that
  104. * evaluated it.</p> <p>For the <code>EvaluationResult</code> data type, AWS Config
  105. * supports only the <code>COMPLIANT</code>, <code>NON_COMPLIANT</code>, and
  106. * <code>NOT_APPLICABLE</code> values. AWS Config does not support the
  107. * <code>INSUFFICIENT_DATA</code> value for the <code>EvaluationResult</code> data
  108. * type.</p>
  109. */
  110. inline EvaluationResult& WithComplianceType(ComplianceType&& value) { SetComplianceType(value); return *this;}
  111. /**
  112. * <p>The time when AWS Config recorded the evaluation result.</p>
  113. */
  114. inline const Aws::Utils::DateTime& GetResultRecordedTime() const{ return m_resultRecordedTime; }
  115. /**
  116. * <p>The time when AWS Config recorded the evaluation result.</p>
  117. */
  118. inline void SetResultRecordedTime(const Aws::Utils::DateTime& value) { m_resultRecordedTimeHasBeenSet = true; m_resultRecordedTime = value; }
  119. /**
  120. * <p>The time when AWS Config recorded the evaluation result.</p>
  121. */
  122. inline void SetResultRecordedTime(Aws::Utils::DateTime&& value) { m_resultRecordedTimeHasBeenSet = true; m_resultRecordedTime = value; }
  123. /**
  124. * <p>The time when AWS Config recorded the evaluation result.</p>
  125. */
  126. inline EvaluationResult& WithResultRecordedTime(const Aws::Utils::DateTime& value) { SetResultRecordedTime(value); return *this;}
  127. /**
  128. * <p>The time when AWS Config recorded the evaluation result.</p>
  129. */
  130. inline EvaluationResult& WithResultRecordedTime(Aws::Utils::DateTime&& value) { SetResultRecordedTime(value); return *this;}
  131. /**
  132. * <p>The time when the AWS Config rule evaluated the AWS resource.</p>
  133. */
  134. inline const Aws::Utils::DateTime& GetConfigRuleInvokedTime() const{ return m_configRuleInvokedTime; }
  135. /**
  136. * <p>The time when the AWS Config rule evaluated the AWS resource.</p>
  137. */
  138. inline void SetConfigRuleInvokedTime(const Aws::Utils::DateTime& value) { m_configRuleInvokedTimeHasBeenSet = true; m_configRuleInvokedTime = value; }
  139. /**
  140. * <p>The time when the AWS Config rule evaluated the AWS resource.</p>
  141. */
  142. inline void SetConfigRuleInvokedTime(Aws::Utils::DateTime&& value) { m_configRuleInvokedTimeHasBeenSet = true; m_configRuleInvokedTime = value; }
  143. /**
  144. * <p>The time when the AWS Config rule evaluated the AWS resource.</p>
  145. */
  146. inline EvaluationResult& WithConfigRuleInvokedTime(const Aws::Utils::DateTime& value) { SetConfigRuleInvokedTime(value); return *this;}
  147. /**
  148. * <p>The time when the AWS Config rule evaluated the AWS resource.</p>
  149. */
  150. inline EvaluationResult& WithConfigRuleInvokedTime(Aws::Utils::DateTime&& value) { SetConfigRuleInvokedTime(value); return *this;}
  151. /**
  152. * <p>Supplementary information about how the evaluation determined the
  153. * compliance.</p>
  154. */
  155. inline const Aws::String& GetAnnotation() const{ return m_annotation; }
  156. /**
  157. * <p>Supplementary information about how the evaluation determined the
  158. * compliance.</p>
  159. */
  160. inline void SetAnnotation(const Aws::String& value) { m_annotationHasBeenSet = true; m_annotation = value; }
  161. /**
  162. * <p>Supplementary information about how the evaluation determined the
  163. * compliance.</p>
  164. */
  165. inline void SetAnnotation(Aws::String&& value) { m_annotationHasBeenSet = true; m_annotation = value; }
  166. /**
  167. * <p>Supplementary information about how the evaluation determined the
  168. * compliance.</p>
  169. */
  170. inline void SetAnnotation(const char* value) { m_annotationHasBeenSet = true; m_annotation.assign(value); }
  171. /**
  172. * <p>Supplementary information about how the evaluation determined the
  173. * compliance.</p>
  174. */
  175. inline EvaluationResult& WithAnnotation(const Aws::String& value) { SetAnnotation(value); return *this;}
  176. /**
  177. * <p>Supplementary information about how the evaluation determined the
  178. * compliance.</p>
  179. */
  180. inline EvaluationResult& WithAnnotation(Aws::String&& value) { SetAnnotation(value); return *this;}
  181. /**
  182. * <p>Supplementary information about how the evaluation determined the
  183. * compliance.</p>
  184. */
  185. inline EvaluationResult& WithAnnotation(const char* value) { SetAnnotation(value); return *this;}
  186. /**
  187. * <p>An encrypted token that associates an evaluation with an AWS Config rule. The
  188. * token identifies the rule, the AWS resource being evaluated, and the event that
  189. * triggered the evaluation.</p>
  190. */
  191. inline const Aws::String& GetResultToken() const{ return m_resultToken; }
  192. /**
  193. * <p>An encrypted token that associates an evaluation with an AWS Config rule. The
  194. * token identifies the rule, the AWS resource being evaluated, and the event that
  195. * triggered the evaluation.</p>
  196. */
  197. inline void SetResultToken(const Aws::String& value) { m_resultTokenHasBeenSet = true; m_resultToken = value; }
  198. /**
  199. * <p>An encrypted token that associates an evaluation with an AWS Config rule. The
  200. * token identifies the rule, the AWS resource being evaluated, and the event that
  201. * triggered the evaluation.</p>
  202. */
  203. inline void SetResultToken(Aws::String&& value) { m_resultTokenHasBeenSet = true; m_resultToken = value; }
  204. /**
  205. * <p>An encrypted token that associates an evaluation with an AWS Config rule. The
  206. * token identifies the rule, the AWS resource being evaluated, and the event that
  207. * triggered the evaluation.</p>
  208. */
  209. inline void SetResultToken(const char* value) { m_resultTokenHasBeenSet = true; m_resultToken.assign(value); }
  210. /**
  211. * <p>An encrypted token that associates an evaluation with an AWS Config rule. The
  212. * token identifies the rule, the AWS resource being evaluated, and the event that
  213. * triggered the evaluation.</p>
  214. */
  215. inline EvaluationResult& WithResultToken(const Aws::String& value) { SetResultToken(value); return *this;}
  216. /**
  217. * <p>An encrypted token that associates an evaluation with an AWS Config rule. The
  218. * token identifies the rule, the AWS resource being evaluated, and the event that
  219. * triggered the evaluation.</p>
  220. */
  221. inline EvaluationResult& WithResultToken(Aws::String&& value) { SetResultToken(value); return *this;}
  222. /**
  223. * <p>An encrypted token that associates an evaluation with an AWS Config rule. The
  224. * token identifies the rule, the AWS resource being evaluated, and the event that
  225. * triggered the evaluation.</p>
  226. */
  227. inline EvaluationResult& WithResultToken(const char* value) { SetResultToken(value); return *this;}
  228. private:
  229. EvaluationResultIdentifier m_evaluationResultIdentifier;
  230. bool m_evaluationResultIdentifierHasBeenSet;
  231. ComplianceType m_complianceType;
  232. bool m_complianceTypeHasBeenSet;
  233. Aws::Utils::DateTime m_resultRecordedTime;
  234. bool m_resultRecordedTimeHasBeenSet;
  235. Aws::Utils::DateTime m_configRuleInvokedTime;
  236. bool m_configRuleInvokedTimeHasBeenSet;
  237. Aws::String m_annotation;
  238. bool m_annotationHasBeenSet;
  239. Aws::String m_resultToken;
  240. bool m_resultTokenHasBeenSet;
  241. };
  242. } // namespace Model
  243. } // namespace ConfigService
  244. } // namespace Aws