/** * 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 ConfigService { namespace Model { /** *

See Also:

AWS * API Reference

*/ class AWS_CONFIGSERVICE_API PutEvaluationsRequest : public ConfigServiceRequest { public: PutEvaluationsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutEvaluations"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The assessments that the AWS Lambda function performs. Each evaluation * identifies an AWS resource and indicates whether it complies with the AWS Config * rule that invokes the AWS Lambda function.

*/ inline const Aws::Vector& GetEvaluations() const{ return m_evaluations; } /** *

The assessments that the AWS Lambda function performs. Each evaluation * identifies an AWS resource and indicates whether it complies with the AWS Config * rule that invokes the AWS Lambda function.

*/ inline bool EvaluationsHasBeenSet() const { return m_evaluationsHasBeenSet; } /** *

The assessments that the AWS Lambda function performs. Each evaluation * identifies an AWS resource and indicates whether it complies with the AWS Config * rule that invokes the AWS Lambda function.

*/ inline void SetEvaluations(const Aws::Vector& value) { m_evaluationsHasBeenSet = true; m_evaluations = value; } /** *

The assessments that the AWS Lambda function performs. Each evaluation * identifies an AWS resource and indicates whether it complies with the AWS Config * rule that invokes the AWS Lambda function.

*/ inline void SetEvaluations(Aws::Vector&& value) { m_evaluationsHasBeenSet = true; m_evaluations = std::move(value); } /** *

The assessments that the AWS Lambda function performs. Each evaluation * identifies an AWS resource and indicates whether it complies with the AWS Config * rule that invokes the AWS Lambda function.

*/ inline PutEvaluationsRequest& WithEvaluations(const Aws::Vector& value) { SetEvaluations(value); return *this;} /** *

The assessments that the AWS Lambda function performs. Each evaluation * identifies an AWS resource and indicates whether it complies with the AWS Config * rule that invokes the AWS Lambda function.

*/ inline PutEvaluationsRequest& WithEvaluations(Aws::Vector&& value) { SetEvaluations(std::move(value)); return *this;} /** *

The assessments that the AWS Lambda function performs. Each evaluation * identifies an AWS resource and indicates whether it complies with the AWS Config * rule that invokes the AWS Lambda function.

*/ inline PutEvaluationsRequest& AddEvaluations(const Evaluation& value) { m_evaluationsHasBeenSet = true; m_evaluations.push_back(value); return *this; } /** *

The assessments that the AWS Lambda function performs. Each evaluation * identifies an AWS resource and indicates whether it complies with the AWS Config * rule that invokes the AWS Lambda function.

*/ inline PutEvaluationsRequest& AddEvaluations(Evaluation&& value) { m_evaluationsHasBeenSet = true; m_evaluations.push_back(std::move(value)); return *this; } /** *

An encrypted token that associates an evaluation with an AWS Config rule. * Identifies the rule 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. * Identifies the rule 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. * Identifies the rule 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. * Identifies the rule 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. * Identifies the rule 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. * Identifies the rule and the event that triggered the evaluation.

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

An encrypted token that associates an evaluation with an AWS Config rule. * Identifies the rule and the event that triggered the evaluation.

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

An encrypted token that associates an evaluation with an AWS Config rule. * Identifies the rule and the event that triggered the evaluation.

*/ inline PutEvaluationsRequest& WithResultToken(const char* value) { SetResultToken(value); return *this;} /** *

Use this parameter to specify a test run for PutEvaluations. You * can verify whether your AWS Lambda function will deliver evaluation results to * AWS Config. No updates occur to your existing evaluations, and evaluation * results are not sent to AWS Config.

When TestMode is * true, PutEvaluations doesn't require a valid value for * the ResultToken parameter, but the value cannot be null.

* */ inline bool GetTestMode() const{ return m_testMode; } /** *

Use this parameter to specify a test run for PutEvaluations. You * can verify whether your AWS Lambda function will deliver evaluation results to * AWS Config. No updates occur to your existing evaluations, and evaluation * results are not sent to AWS Config.

When TestMode is * true, PutEvaluations doesn't require a valid value for * the ResultToken parameter, but the value cannot be null.

* */ inline bool TestModeHasBeenSet() const { return m_testModeHasBeenSet; } /** *

Use this parameter to specify a test run for PutEvaluations. You * can verify whether your AWS Lambda function will deliver evaluation results to * AWS Config. No updates occur to your existing evaluations, and evaluation * results are not sent to AWS Config.

When TestMode is * true, PutEvaluations doesn't require a valid value for * the ResultToken parameter, but the value cannot be null.

* */ inline void SetTestMode(bool value) { m_testModeHasBeenSet = true; m_testMode = value; } /** *

Use this parameter to specify a test run for PutEvaluations. You * can verify whether your AWS Lambda function will deliver evaluation results to * AWS Config. No updates occur to your existing evaluations, and evaluation * results are not sent to AWS Config.

When TestMode is * true, PutEvaluations doesn't require a valid value for * the ResultToken parameter, but the value cannot be null.

* */ inline PutEvaluationsRequest& WithTestMode(bool value) { SetTestMode(value); return *this;} private: Aws::Vector m_evaluations; bool m_evaluationsHasBeenSet; Aws::String m_resultToken; bool m_resultTokenHasBeenSet; bool m_testMode; bool m_testModeHasBeenSet; }; } // namespace Model } // namespace ConfigService } // namespace Aws