/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ConfigService { namespace Model { /** *

The details of a conformance pack evaluation. Provides Config rule and Amazon * Web Services resource type that was evaluated, the compliance of the conformance * pack, related time stamps, and supplementary information.

See * Also:

AWS * API Reference

*/ class ConformancePackEvaluationResult { public: AWS_CONFIGSERVICE_API ConformancePackEvaluationResult(); AWS_CONFIGSERVICE_API ConformancePackEvaluationResult(Aws::Utils::Json::JsonView jsonValue); AWS_CONFIGSERVICE_API ConformancePackEvaluationResult& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The compliance type. The allowed values are COMPLIANT and * NON_COMPLIANT. INSUFFICIENT_DATA is not supported.

*/ inline const ConformancePackComplianceType& GetComplianceType() const{ return m_complianceType; } /** *

The compliance type. The allowed values are COMPLIANT and * NON_COMPLIANT. INSUFFICIENT_DATA is not supported.

*/ inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; } /** *

The compliance type. The allowed values are COMPLIANT and * NON_COMPLIANT. INSUFFICIENT_DATA is not supported.

*/ inline void SetComplianceType(const ConformancePackComplianceType& value) { m_complianceTypeHasBeenSet = true; m_complianceType = value; } /** *

The compliance type. The allowed values are COMPLIANT and * NON_COMPLIANT. INSUFFICIENT_DATA is not supported.

*/ inline void SetComplianceType(ConformancePackComplianceType&& value) { m_complianceTypeHasBeenSet = true; m_complianceType = std::move(value); } /** *

The compliance type. The allowed values are COMPLIANT and * NON_COMPLIANT. INSUFFICIENT_DATA is not supported.

*/ inline ConformancePackEvaluationResult& WithComplianceType(const ConformancePackComplianceType& value) { SetComplianceType(value); return *this;} /** *

The compliance type. The allowed values are COMPLIANT and * NON_COMPLIANT. INSUFFICIENT_DATA is not supported.

*/ inline ConformancePackEvaluationResult& WithComplianceType(ConformancePackComplianceType&& value) { SetComplianceType(std::move(value)); return *this;} inline const EvaluationResultIdentifier& GetEvaluationResultIdentifier() const{ return m_evaluationResultIdentifier; } inline bool EvaluationResultIdentifierHasBeenSet() const { return m_evaluationResultIdentifierHasBeenSet; } inline void SetEvaluationResultIdentifier(const EvaluationResultIdentifier& value) { m_evaluationResultIdentifierHasBeenSet = true; m_evaluationResultIdentifier = value; } inline void SetEvaluationResultIdentifier(EvaluationResultIdentifier&& value) { m_evaluationResultIdentifierHasBeenSet = true; m_evaluationResultIdentifier = std::move(value); } inline ConformancePackEvaluationResult& WithEvaluationResultIdentifier(const EvaluationResultIdentifier& value) { SetEvaluationResultIdentifier(value); return *this;} inline ConformancePackEvaluationResult& WithEvaluationResultIdentifier(EvaluationResultIdentifier&& value) { SetEvaluationResultIdentifier(std::move(value)); return *this;} /** *

The time when Config rule evaluated Amazon Web Services resource.

*/ inline const Aws::Utils::DateTime& GetConfigRuleInvokedTime() const{ return m_configRuleInvokedTime; } /** *

The time when Config rule evaluated Amazon Web Services resource.

*/ inline bool ConfigRuleInvokedTimeHasBeenSet() const { return m_configRuleInvokedTimeHasBeenSet; } /** *

The time when Config rule evaluated Amazon Web Services resource.

*/ inline void SetConfigRuleInvokedTime(const Aws::Utils::DateTime& value) { m_configRuleInvokedTimeHasBeenSet = true; m_configRuleInvokedTime = value; } /** *

The time when Config rule evaluated Amazon Web Services resource.

*/ inline void SetConfigRuleInvokedTime(Aws::Utils::DateTime&& value) { m_configRuleInvokedTimeHasBeenSet = true; m_configRuleInvokedTime = std::move(value); } /** *

The time when Config rule evaluated Amazon Web Services resource.

*/ inline ConformancePackEvaluationResult& WithConfigRuleInvokedTime(const Aws::Utils::DateTime& value) { SetConfigRuleInvokedTime(value); return *this;} /** *

The time when Config rule evaluated Amazon Web Services resource.

*/ inline ConformancePackEvaluationResult& WithConfigRuleInvokedTime(Aws::Utils::DateTime&& value) { SetConfigRuleInvokedTime(std::move(value)); return *this;} /** *

The time when Config recorded the evaluation result.

*/ inline const Aws::Utils::DateTime& GetResultRecordedTime() const{ return m_resultRecordedTime; } /** *

The time when Config recorded the evaluation result.

*/ inline bool ResultRecordedTimeHasBeenSet() const { return m_resultRecordedTimeHasBeenSet; } /** *

The time when Config recorded the evaluation result.

*/ inline void SetResultRecordedTime(const Aws::Utils::DateTime& value) { m_resultRecordedTimeHasBeenSet = true; m_resultRecordedTime = value; } /** *

The time when Config recorded the evaluation result.

*/ inline void SetResultRecordedTime(Aws::Utils::DateTime&& value) { m_resultRecordedTimeHasBeenSet = true; m_resultRecordedTime = std::move(value); } /** *

The time when Config recorded the evaluation result.

*/ inline ConformancePackEvaluationResult& WithResultRecordedTime(const Aws::Utils::DateTime& value) { SetResultRecordedTime(value); return *this;} /** *

The time when Config recorded the evaluation result.

*/ inline ConformancePackEvaluationResult& WithResultRecordedTime(Aws::Utils::DateTime&& value) { SetResultRecordedTime(std::move(value)); return *this;} /** *

Supplementary information about how the evaluation determined the compliance. *

*/ inline const Aws::String& GetAnnotation() const{ return m_annotation; } /** *

Supplementary information about how the evaluation determined the compliance. *

*/ inline bool AnnotationHasBeenSet() const { return m_annotationHasBeenSet; } /** *

Supplementary information about how the evaluation determined the compliance. *

*/ inline void SetAnnotation(const Aws::String& value) { m_annotationHasBeenSet = true; m_annotation = value; } /** *

Supplementary information about how the evaluation determined the compliance. *

*/ inline void SetAnnotation(Aws::String&& value) { m_annotationHasBeenSet = true; m_annotation = std::move(value); } /** *

Supplementary information about how the evaluation determined the compliance. *

*/ inline void SetAnnotation(const char* value) { m_annotationHasBeenSet = true; m_annotation.assign(value); } /** *

Supplementary information about how the evaluation determined the compliance. *

*/ inline ConformancePackEvaluationResult& WithAnnotation(const Aws::String& value) { SetAnnotation(value); return *this;} /** *

Supplementary information about how the evaluation determined the compliance. *

*/ inline ConformancePackEvaluationResult& WithAnnotation(Aws::String&& value) { SetAnnotation(std::move(value)); return *this;} /** *

Supplementary information about how the evaluation determined the compliance. *

*/ inline ConformancePackEvaluationResult& WithAnnotation(const char* value) { SetAnnotation(value); return *this;} private: ConformancePackComplianceType m_complianceType; bool m_complianceTypeHasBeenSet = false; EvaluationResultIdentifier m_evaluationResultIdentifier; bool m_evaluationResultIdentifierHasBeenSet = false; Aws::Utils::DateTime m_configRuleInvokedTime; bool m_configRuleInvokedTimeHasBeenSet = false; Aws::Utils::DateTime m_resultRecordedTime; bool m_resultRecordedTimeHasBeenSet = false; Aws::String m_annotation; bool m_annotationHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws