/** * 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 RedshiftServerless { namespace Model { /** */ class ListUsageLimitsRequest : public RedshiftServerlessRequest { public: AWS_REDSHIFTSERVERLESS_API ListUsageLimitsRequest(); // 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 "ListUsageLimits"; } AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override; AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

An optional parameter that specifies the maximum number of results to return. * You can use nextToken to get the next page of results. The default * is 100.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

An optional parameter that specifies the maximum number of results to return. * You can use nextToken to get the next page of results. The default * is 100.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

An optional parameter that specifies the maximum number of results to return. * You can use nextToken to get the next page of results. The default * is 100.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

An optional parameter that specifies the maximum number of results to return. * You can use nextToken to get the next page of results. The default * is 100.

*/ inline ListUsageLimitsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

If your initial ListUsageLimits operation returns a * nextToken, you can include the returned nextToken in * following ListUsageLimits operations, which returns results in the * next page.

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

If your initial ListUsageLimits operation returns a * nextToken, you can include the returned nextToken in * following ListUsageLimits operations, which returns results in the * next page.

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

If your initial ListUsageLimits operation returns a * nextToken, you can include the returned nextToken in * following ListUsageLimits operations, which returns results in the * next page.

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

If your initial ListUsageLimits operation returns a * nextToken, you can include the returned nextToken in * following ListUsageLimits operations, which returns results in the * next page.

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

If your initial ListUsageLimits operation returns a * nextToken, you can include the returned nextToken in * following ListUsageLimits operations, which returns results in the * next page.

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

If your initial ListUsageLimits operation returns a * nextToken, you can include the returned nextToken in * following ListUsageLimits operations, which returns results in the * next page.

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

If your initial ListUsageLimits operation returns a * nextToken, you can include the returned nextToken in * following ListUsageLimits operations, which returns results in the * next page.

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

If your initial ListUsageLimits operation returns a * nextToken, you can include the returned nextToken in * following ListUsageLimits operations, which returns results in the * next page.

*/ inline ListUsageLimitsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The Amazon Resource Name (ARN) associated with the resource whose usage * limits you want to list.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The Amazon Resource Name (ARN) associated with the resource whose usage * limits you want to list.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) associated with the resource whose usage * limits you want to list.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The Amazon Resource Name (ARN) associated with the resource whose usage * limits you want to list.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) associated with the resource whose usage * limits you want to list.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The Amazon Resource Name (ARN) associated with the resource whose usage * limits you want to list.

*/ inline ListUsageLimitsRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) associated with the resource whose usage * limits you want to list.

*/ inline ListUsageLimitsRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) associated with the resource whose usage * limits you want to list.

*/ inline ListUsageLimitsRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

The Amazon Redshift Serverless feature whose limits you want to see.

*/ inline const UsageLimitUsageType& GetUsageType() const{ return m_usageType; } /** *

The Amazon Redshift Serverless feature whose limits you want to see.

*/ inline bool UsageTypeHasBeenSet() const { return m_usageTypeHasBeenSet; } /** *

The Amazon Redshift Serverless feature whose limits you want to see.

*/ inline void SetUsageType(const UsageLimitUsageType& value) { m_usageTypeHasBeenSet = true; m_usageType = value; } /** *

The Amazon Redshift Serverless feature whose limits you want to see.

*/ inline void SetUsageType(UsageLimitUsageType&& value) { m_usageTypeHasBeenSet = true; m_usageType = std::move(value); } /** *

The Amazon Redshift Serverless feature whose limits you want to see.

*/ inline ListUsageLimitsRequest& WithUsageType(const UsageLimitUsageType& value) { SetUsageType(value); return *this;} /** *

The Amazon Redshift Serverless feature whose limits you want to see.

*/ inline ListUsageLimitsRequest& WithUsageType(UsageLimitUsageType&& value) { SetUsageType(std::move(value)); return *this;} private: int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; UsageLimitUsageType m_usageType; bool m_usageTypeHasBeenSet = false; }; } // namespace Model } // namespace RedshiftServerless } // namespace Aws