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

The names of the Config rules for which you want details. If you do not * specify any names, Config returns details for all your rules.

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

The names of the Config rules for which you want details. If you do not * specify any names, Config returns details for all your rules.

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

The names of the Config rules for which you want details. If you do not * specify any names, Config returns details for all your rules.

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

The names of the Config rules for which you want details. If you do not * specify any names, Config returns details for all your rules.

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

The names of the Config rules for which you want details. If you do not * specify any names, Config returns details for all your rules.

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

The names of the Config rules for which you want details. If you do not * specify any names, Config returns details for all your rules.

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

The names of the Config rules for which you want details. If you do not * specify any names, Config returns details for all your rules.

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

The names of the Config rules for which you want details. If you do not * specify any names, Config returns details for all your rules.

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

The names of the Config rules for which you want details. If you do not * specify any names, Config returns details for all your rules.

*/ inline DescribeConfigRulesRequest& AddConfigRuleNames(const char* value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames.push_back(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 DescribeConfigRulesRequest& 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 DescribeConfigRulesRequest& 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 DescribeConfigRulesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

Returns a list of Detective or Proactive Config rules. By default, this API * returns an unfiltered list. For more information on Detective or Proactive * Config rules, see * Evaluation Mode in the Config Developer Guide.

*/ inline const DescribeConfigRulesFilters& GetFilters() const{ return m_filters; } /** *

Returns a list of Detective or Proactive Config rules. By default, this API * returns an unfiltered list. For more information on Detective or Proactive * Config rules, see * Evaluation Mode in the Config Developer Guide.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

Returns a list of Detective or Proactive Config rules. By default, this API * returns an unfiltered list. For more information on Detective or Proactive * Config rules, see * Evaluation Mode in the Config Developer Guide.

*/ inline void SetFilters(const DescribeConfigRulesFilters& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

Returns a list of Detective or Proactive Config rules. By default, this API * returns an unfiltered list. For more information on Detective or Proactive * Config rules, see * Evaluation Mode in the Config Developer Guide.

*/ inline void SetFilters(DescribeConfigRulesFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

Returns a list of Detective or Proactive Config rules. By default, this API * returns an unfiltered list. For more information on Detective or Proactive * Config rules, see * Evaluation Mode in the Config Developer Guide.

*/ inline DescribeConfigRulesRequest& WithFilters(const DescribeConfigRulesFilters& value) { SetFilters(value); return *this;} /** *

Returns a list of Detective or Proactive Config rules. By default, this API * returns an unfiltered list. For more information on Detective or Proactive * Config rules, see * Evaluation Mode in the Config Developer Guide.

*/ inline DescribeConfigRulesRequest& WithFilters(DescribeConfigRulesFilters&& value) { SetFilters(std::move(value)); return *this;} private: Aws::Vector m_configRuleNames; bool m_configRuleNamesHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; DescribeConfigRulesFilters m_filters; bool m_filtersHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws