/** * 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 an AWS Config evaluation. Provides the AWS resource that was * evaluated, the compliance of the resource, related time stamps, and * supplementary information.

See Also:

AWS * API Reference

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

Uniquely identifies the evaluation result.

*/ inline const EvaluationResultIdentifier& GetEvaluationResultIdentifier() const{ return m_evaluationResultIdentifier; } /** *

Uniquely identifies the evaluation result.

*/ inline bool EvaluationResultIdentifierHasBeenSet() const { return m_evaluationResultIdentifierHasBeenSet; } /** *

Uniquely identifies the evaluation result.

*/ inline void SetEvaluationResultIdentifier(const EvaluationResultIdentifier& value) { m_evaluationResultIdentifierHasBeenSet = true; m_evaluationResultIdentifier = value; } /** *

Uniquely identifies the evaluation result.

*/ inline void SetEvaluationResultIdentifier(EvaluationResultIdentifier&& value) { m_evaluationResultIdentifierHasBeenSet = true; m_evaluationResultIdentifier = std::move(value); } /** *

Uniquely identifies the evaluation result.

*/ inline EvaluationResult& WithEvaluationResultIdentifier(const EvaluationResultIdentifier& value) { SetEvaluationResultIdentifier(value); return *this;} /** *

Uniquely identifies the evaluation result.

*/ inline EvaluationResult& WithEvaluationResultIdentifier(EvaluationResultIdentifier&& value) { SetEvaluationResultIdentifier(std::move(value)); return *this;} /** *

Indicates whether the AWS resource complies with the AWS Config rule that * evaluated it.

For the EvaluationResult data type, AWS Config * supports only the COMPLIANT, NON_COMPLIANT, and * NOT_APPLICABLE values. AWS Config does not support the * INSUFFICIENT_DATA value for the EvaluationResult data * type.

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

Indicates whether the AWS resource complies with the AWS Config rule that * evaluated it.

For the EvaluationResult data type, AWS Config * supports only the COMPLIANT, NON_COMPLIANT, and * NOT_APPLICABLE values. AWS Config does not support the * INSUFFICIENT_DATA value for the EvaluationResult data * type.

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

Indicates whether the AWS resource complies with the AWS Config rule that * evaluated it.

For the EvaluationResult data type, AWS Config * supports only the COMPLIANT, NON_COMPLIANT, and * NOT_APPLICABLE values. AWS Config does not support the * INSUFFICIENT_DATA value for the EvaluationResult data * type.

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

Indicates whether the AWS resource complies with the AWS Config rule that * evaluated it.

For the EvaluationResult data type, AWS Config * supports only the COMPLIANT, NON_COMPLIANT, and * NOT_APPLICABLE values. AWS Config does not support the * INSUFFICIENT_DATA value for the EvaluationResult data * type.

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

Indicates whether the AWS resource complies with the AWS Config rule that * evaluated it.

For the EvaluationResult data type, AWS Config * supports only the COMPLIANT, NON_COMPLIANT, and * NOT_APPLICABLE values. AWS Config does not support the * INSUFFICIENT_DATA value for the EvaluationResult data * type.

*/ inline EvaluationResult& WithComplianceType(const ComplianceType& value) { SetComplianceType(value); return *this;} /** *

Indicates whether the AWS resource complies with the AWS Config rule that * evaluated it.

For the EvaluationResult data type, AWS Config * supports only the COMPLIANT, NON_COMPLIANT, and * NOT_APPLICABLE values. AWS Config does not support the * INSUFFICIENT_DATA value for the EvaluationResult data * type.

*/ inline EvaluationResult& WithComplianceType(ComplianceType&& value) { SetComplianceType(std::move(value)); return *this;} /** *

The time when AWS Config recorded the evaluation result.

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

The time when AWS Config recorded the evaluation result.

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

The time when AWS Config recorded the evaluation result.

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

The time when AWS Config recorded the evaluation result.

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

The time when AWS Config recorded the evaluation result.

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

The time when AWS Config recorded the evaluation result.

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

The time when the AWS Config rule evaluated the AWS resource.

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

The time when the AWS Config rule evaluated the AWS resource.

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

The time when the AWS Config rule evaluated the AWS resource.

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

The time when the AWS Config rule evaluated the AWS resource.

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

The time when the AWS Config rule evaluated the AWS resource.

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

The time when the AWS Config rule evaluated the AWS resource.

*/ inline EvaluationResult& WithConfigRuleInvokedTime(Aws::Utils::DateTime&& value) { SetConfigRuleInvokedTime(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 EvaluationResult& WithAnnotation(const Aws::String& value) { SetAnnotation(value); return *this;} /** *

Supplementary information about how the evaluation determined the * compliance.

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

Supplementary information about how the evaluation determined the * compliance.

*/ inline EvaluationResult& WithAnnotation(const char* value) { SetAnnotation(value); return *this;} /** *

An encrypted token that associates an evaluation with an AWS Config rule. The * token identifies the rule, the AWS resource being evaluated, and the event that * triggered the evaluation.

*/ inline const Aws::String& GetResultToken() const{ return m_resultToken; } /** *

An encrypted token that associates an evaluation with an AWS Config rule. The * token identifies the rule, the AWS resource being evaluated, and the event that * triggered the evaluation.

*/ inline bool ResultTokenHasBeenSet() const { return m_resultTokenHasBeenSet; } /** *

An encrypted token that associates an evaluation with an AWS Config rule. The * token identifies the rule, the AWS resource being evaluated, and the event that * triggered the evaluation.

*/ inline void SetResultToken(const Aws::String& value) { m_resultTokenHasBeenSet = true; m_resultToken = value; } /** *

An encrypted token that associates an evaluation with an AWS Config rule. The * token identifies the rule, the AWS resource being evaluated, and the event that * triggered the evaluation.

*/ inline void SetResultToken(Aws::String&& value) { m_resultTokenHasBeenSet = true; m_resultToken = std::move(value); } /** *

An encrypted token that associates an evaluation with an AWS Config rule. The * token identifies the rule, the AWS resource being evaluated, and the event that * triggered the evaluation.

*/ inline void SetResultToken(const char* value) { m_resultTokenHasBeenSet = true; m_resultToken.assign(value); } /** *

An encrypted token that associates an evaluation with an AWS Config rule. The * token identifies the rule, the AWS resource being evaluated, and the event that * triggered the evaluation.

*/ inline EvaluationResult& WithResultToken(const Aws::String& value) { SetResultToken(value); return *this;} /** *

An encrypted token that associates an evaluation with an AWS Config rule. The * token identifies the rule, the AWS resource being evaluated, and the event that * triggered the evaluation.

*/ inline EvaluationResult& WithResultToken(Aws::String&& value) { SetResultToken(std::move(value)); return *this;} /** *

An encrypted token that associates an evaluation with an AWS Config rule. The * token identifies the rule, the AWS resource being evaluated, and the event that * triggered the evaluation.

*/ inline EvaluationResult& WithResultToken(const char* value) { SetResultToken(value); return *this;} private: EvaluationResultIdentifier m_evaluationResultIdentifier; bool m_evaluationResultIdentifierHasBeenSet; ComplianceType m_complianceType; bool m_complianceTypeHasBeenSet; Aws::Utils::DateTime m_resultRecordedTime; bool m_resultRecordedTimeHasBeenSet; Aws::Utils::DateTime m_configRuleInvokedTime; bool m_configRuleInvokedTimeHasBeenSet; Aws::String m_annotation; bool m_annotationHasBeenSet; Aws::String m_resultToken; bool m_resultTokenHasBeenSet; }; } // namespace Model } // namespace ConfigService } // namespace Aws