/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace ConfigService { namespace Model { /** */ class DescribeRetentionConfigurationsRequest : public ConfigServiceRequest { public: AWS_CONFIGSERVICE_API DescribeRetentionConfigurationsRequest(); // 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 "DescribeRetentionConfigurations"; } AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override; AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A list of names of retention configurations for which you want details. If * you do not specify a name, Config returns details for all the retention * configurations for that account.

Currently, Config supports only * one retention configuration per region in your account.

*/ inline const Aws::Vector& GetRetentionConfigurationNames() const{ return m_retentionConfigurationNames; } /** *

A list of names of retention configurations for which you want details. If * you do not specify a name, Config returns details for all the retention * configurations for that account.

Currently, Config supports only * one retention configuration per region in your account.

*/ inline bool RetentionConfigurationNamesHasBeenSet() const { return m_retentionConfigurationNamesHasBeenSet; } /** *

A list of names of retention configurations for which you want details. If * you do not specify a name, Config returns details for all the retention * configurations for that account.

Currently, Config supports only * one retention configuration per region in your account.

*/ inline void SetRetentionConfigurationNames(const Aws::Vector& value) { m_retentionConfigurationNamesHasBeenSet = true; m_retentionConfigurationNames = value; } /** *

A list of names of retention configurations for which you want details. If * you do not specify a name, Config returns details for all the retention * configurations for that account.

Currently, Config supports only * one retention configuration per region in your account.

*/ inline void SetRetentionConfigurationNames(Aws::Vector&& value) { m_retentionConfigurationNamesHasBeenSet = true; m_retentionConfigurationNames = std::move(value); } /** *

A list of names of retention configurations for which you want details. If * you do not specify a name, Config returns details for all the retention * configurations for that account.

Currently, Config supports only * one retention configuration per region in your account.

*/ inline DescribeRetentionConfigurationsRequest& WithRetentionConfigurationNames(const Aws::Vector& value) { SetRetentionConfigurationNames(value); return *this;} /** *

A list of names of retention configurations for which you want details. If * you do not specify a name, Config returns details for all the retention * configurations for that account.

Currently, Config supports only * one retention configuration per region in your account.

*/ inline DescribeRetentionConfigurationsRequest& WithRetentionConfigurationNames(Aws::Vector&& value) { SetRetentionConfigurationNames(std::move(value)); return *this;} /** *

A list of names of retention configurations for which you want details. If * you do not specify a name, Config returns details for all the retention * configurations for that account.

Currently, Config supports only * one retention configuration per region in your account.

*/ inline DescribeRetentionConfigurationsRequest& AddRetentionConfigurationNames(const Aws::String& value) { m_retentionConfigurationNamesHasBeenSet = true; m_retentionConfigurationNames.push_back(value); return *this; } /** *

A list of names of retention configurations for which you want details. If * you do not specify a name, Config returns details for all the retention * configurations for that account.

Currently, Config supports only * one retention configuration per region in your account.

*/ inline DescribeRetentionConfigurationsRequest& AddRetentionConfigurationNames(Aws::String&& value) { m_retentionConfigurationNamesHasBeenSet = true; m_retentionConfigurationNames.push_back(std::move(value)); return *this; } /** *

A list of names of retention configurations for which you want details. If * you do not specify a name, Config returns details for all the retention * configurations for that account.

Currently, Config supports only * one retention configuration per region in your account.

*/ inline DescribeRetentionConfigurationsRequest& AddRetentionConfigurationNames(const char* value) { m_retentionConfigurationNamesHasBeenSet = true; m_retentionConfigurationNames.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 DescribeRetentionConfigurationsRequest& 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 DescribeRetentionConfigurationsRequest& 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 DescribeRetentionConfigurationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_retentionConfigurationNames; bool m_retentionConfigurationNamesHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws