/** * 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 DescribeComplianceByConfigRuleRequest : public ConfigServiceRequest { public: AWS_CONFIGSERVICE_API DescribeComplianceByConfigRuleRequest(); // 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 "DescribeComplianceByConfigRule"; } AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override; AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Specify one or more Config rule names to filter the results by rule.

*/ inline const Aws::Vector& GetConfigRuleNames() const{ return m_configRuleNames; } /** *

Specify one or more Config rule names to filter the results by rule.

*/ inline bool ConfigRuleNamesHasBeenSet() const { return m_configRuleNamesHasBeenSet; } /** *

Specify one or more Config rule names to filter the results by rule.

*/ inline void SetConfigRuleNames(const Aws::Vector& value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames = value; } /** *

Specify one or more Config rule names to filter the results by rule.

*/ inline void SetConfigRuleNames(Aws::Vector&& value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames = std::move(value); } /** *

Specify one or more Config rule names to filter the results by rule.

*/ inline DescribeComplianceByConfigRuleRequest& WithConfigRuleNames(const Aws::Vector& value) { SetConfigRuleNames(value); return *this;} /** *

Specify one or more Config rule names to filter the results by rule.

*/ inline DescribeComplianceByConfigRuleRequest& WithConfigRuleNames(Aws::Vector&& value) { SetConfigRuleNames(std::move(value)); return *this;} /** *

Specify one or more Config rule names to filter the results by rule.

*/ inline DescribeComplianceByConfigRuleRequest& AddConfigRuleNames(const Aws::String& value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames.push_back(value); return *this; } /** *

Specify one or more Config rule names to filter the results by rule.

*/ inline DescribeComplianceByConfigRuleRequest& AddConfigRuleNames(Aws::String&& value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames.push_back(std::move(value)); return *this; } /** *

Specify one or more Config rule names to filter the results by rule.

*/ inline DescribeComplianceByConfigRuleRequest& AddConfigRuleNames(const char* value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames.push_back(value); return *this; } /** *

Filters the results by compliance.

*/ inline const Aws::Vector& GetComplianceTypes() const{ return m_complianceTypes; } /** *

Filters the results by compliance.

*/ inline bool ComplianceTypesHasBeenSet() const { return m_complianceTypesHasBeenSet; } /** *

Filters the results by compliance.

*/ inline void SetComplianceTypes(const Aws::Vector& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes = value; } /** *

Filters the results by compliance.

*/ inline void SetComplianceTypes(Aws::Vector&& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes = std::move(value); } /** *

Filters the results by compliance.

*/ inline DescribeComplianceByConfigRuleRequest& WithComplianceTypes(const Aws::Vector& value) { SetComplianceTypes(value); return *this;} /** *

Filters the results by compliance.

*/ inline DescribeComplianceByConfigRuleRequest& WithComplianceTypes(Aws::Vector&& value) { SetComplianceTypes(std::move(value)); return *this;} /** *

Filters the results by compliance.

*/ inline DescribeComplianceByConfigRuleRequest& AddComplianceTypes(const ComplianceType& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes.push_back(value); return *this; } /** *

Filters the results by compliance.

*/ inline DescribeComplianceByConfigRuleRequest& AddComplianceTypes(ComplianceType&& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes.push_back(std::move(value)); return *this; } /** *

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

*/ inline DescribeComplianceByConfigRuleRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

*/ inline DescribeComplianceByConfigRuleRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The nextToken string returned on a previous page that you use to * get the next page of results in a paginated response.

*/ inline DescribeComplianceByConfigRuleRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_configRuleNames; bool m_configRuleNamesHasBeenSet = false; Aws::Vector m_complianceTypes; bool m_complianceTypesHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws