/** * 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 CloudControlApi { namespace Model { /** */ class ListResourceRequestsRequest : public CloudControlApiRequest { public: AWS_CLOUDCONTROLAPI_API ListResourceRequestsRequest(); // 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 "ListResourceRequests"; } AWS_CLOUDCONTROLAPI_API Aws::String SerializePayload() const override; AWS_CLOUDCONTROLAPI_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The maximum number of results to be returned with a single call. If the * number of available results exceeds this maximum, the response includes a * NextToken value that you can assign to the NextToken * request parameter to get the next set of results.

The default is * 20.

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

The maximum number of results to be returned with a single call. If the * number of available results exceeds this maximum, the response includes a * NextToken value that you can assign to the NextToken * request parameter to get the next set of results.

The default is * 20.

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

The maximum number of results to be returned with a single call. If the * number of available results exceeds this maximum, the response includes a * NextToken value that you can assign to the NextToken * request parameter to get the next set of results.

The default is * 20.

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

The maximum number of results to be returned with a single call. If the * number of available results exceeds this maximum, the response includes a * NextToken value that you can assign to the NextToken * request parameter to get the next set of results.

The default is * 20.

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

If the previous paginated request didn't return all of the remaining results, * the response object's NextToken parameter value is set to a token. * To retrieve the next set of results, call this action again and assign that * token to the request object's NextToken parameter. If there are no * remaining results, the previous response object's NextToken * parameter is set to null.

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

If the previous paginated request didn't return all of the remaining results, * the response object's NextToken parameter value is set to a token. * To retrieve the next set of results, call this action again and assign that * token to the request object's NextToken parameter. If there are no * remaining results, the previous response object's NextToken * parameter is set to null.

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

If the previous paginated request didn't return all of the remaining results, * the response object's NextToken parameter value is set to a token. * To retrieve the next set of results, call this action again and assign that * token to the request object's NextToken parameter. If there are no * remaining results, the previous response object's NextToken * parameter is set to null.

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

If the previous paginated request didn't return all of the remaining results, * the response object's NextToken parameter value is set to a token. * To retrieve the next set of results, call this action again and assign that * token to the request object's NextToken parameter. If there are no * remaining results, the previous response object's NextToken * parameter is set to null.

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

If the previous paginated request didn't return all of the remaining results, * the response object's NextToken parameter value is set to a token. * To retrieve the next set of results, call this action again and assign that * token to the request object's NextToken parameter. If there are no * remaining results, the previous response object's NextToken * parameter is set to null.

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

If the previous paginated request didn't return all of the remaining results, * the response object's NextToken parameter value is set to a token. * To retrieve the next set of results, call this action again and assign that * token to the request object's NextToken parameter. If there are no * remaining results, the previous response object's NextToken * parameter is set to null.

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

If the previous paginated request didn't return all of the remaining results, * the response object's NextToken parameter value is set to a token. * To retrieve the next set of results, call this action again and assign that * token to the request object's NextToken parameter. If there are no * remaining results, the previous response object's NextToken * parameter is set to null.

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

If the previous paginated request didn't return all of the remaining results, * the response object's NextToken parameter value is set to a token. * To retrieve the next set of results, call this action again and assign that * token to the request object's NextToken parameter. If there are no * remaining results, the previous response object's NextToken * parameter is set to null.

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

The filter criteria to apply to the requests returned.

*/ inline const ResourceRequestStatusFilter& GetResourceRequestStatusFilter() const{ return m_resourceRequestStatusFilter; } /** *

The filter criteria to apply to the requests returned.

*/ inline bool ResourceRequestStatusFilterHasBeenSet() const { return m_resourceRequestStatusFilterHasBeenSet; } /** *

The filter criteria to apply to the requests returned.

*/ inline void SetResourceRequestStatusFilter(const ResourceRequestStatusFilter& value) { m_resourceRequestStatusFilterHasBeenSet = true; m_resourceRequestStatusFilter = value; } /** *

The filter criteria to apply to the requests returned.

*/ inline void SetResourceRequestStatusFilter(ResourceRequestStatusFilter&& value) { m_resourceRequestStatusFilterHasBeenSet = true; m_resourceRequestStatusFilter = std::move(value); } /** *

The filter criteria to apply to the requests returned.

*/ inline ListResourceRequestsRequest& WithResourceRequestStatusFilter(const ResourceRequestStatusFilter& value) { SetResourceRequestStatusFilter(value); return *this;} /** *

The filter criteria to apply to the requests returned.

*/ inline ListResourceRequestsRequest& WithResourceRequestStatusFilter(ResourceRequestStatusFilter&& value) { SetResourceRequestStatusFilter(std::move(value)); return *this;} private: int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; ResourceRequestStatusFilter m_resourceRequestStatusFilter; bool m_resourceRequestStatusFilterHasBeenSet = false; }; } // namespace Model } // namespace CloudControlApi } // namespace Aws