/** * 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 CodeCatalyst { namespace Model { /** */ class ListProjectsRequest : public CodeCatalystRequest { public: AWS_CODECATALYST_API ListProjectsRequest(); // 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 "ListProjects"; } AWS_CODECATALYST_API Aws::String SerializePayload() const override; /** *

The name of the space.

*/ inline const Aws::String& GetSpaceName() const{ return m_spaceName; } /** *

The name of the space.

*/ inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; } /** *

The name of the space.

*/ inline void SetSpaceName(const Aws::String& value) { m_spaceNameHasBeenSet = true; m_spaceName = value; } /** *

The name of the space.

*/ inline void SetSpaceName(Aws::String&& value) { m_spaceNameHasBeenSet = true; m_spaceName = std::move(value); } /** *

The name of the space.

*/ inline void SetSpaceName(const char* value) { m_spaceNameHasBeenSet = true; m_spaceName.assign(value); } /** *

The name of the space.

*/ inline ListProjectsRequest& WithSpaceName(const Aws::String& value) { SetSpaceName(value); return *this;} /** *

The name of the space.

*/ inline ListProjectsRequest& WithSpaceName(Aws::String&& value) { SetSpaceName(std::move(value)); return *this;} /** *

The name of the space.

*/ inline ListProjectsRequest& WithSpaceName(const char* value) { SetSpaceName(value); return *this;} /** *

A token returned from a call to this API to indicate the next batch of * results to return, if any.

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

A token returned from a call to this API to indicate the next batch of * results to return, if any.

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

A token returned from a call to this API to indicate the next batch of * results to return, if any.

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

A token returned from a call to this API to indicate the next batch of * results to return, if any.

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

A token returned from a call to this API to indicate the next batch of * results to return, if any.

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

A token returned from a call to this API to indicate the next batch of * results to return, if any.

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

A token returned from a call to this API to indicate the next batch of * results to return, if any.

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

A token returned from a call to this API to indicate the next batch of * results to return, if any.

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

The maximum number of results to show in a single call to this API. If the * number of results is larger than the number you specified, the response will * include a NextToken element, which you can use to obtain additional * results.

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

The maximum number of results to show in a single call to this API. If the * number of results is larger than the number you specified, the response will * include a NextToken element, which you can use to obtain additional * results.

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

The maximum number of results to show in a single call to this API. If the * number of results is larger than the number you specified, the response will * include a NextToken element, which you can use to obtain additional * results.

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

The maximum number of results to show in a single call to this API. If the * number of results is larger than the number you specified, the response will * include a NextToken element, which you can use to obtain additional * results.

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

Information about filters to apply to narrow the results returned in the * list.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

Information about filters to apply to narrow the results returned in the * list.

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

Information about filters to apply to narrow the results returned in the * list.

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

Information about filters to apply to narrow the results returned in the * list.

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

Information about filters to apply to narrow the results returned in the * list.

*/ inline ListProjectsRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

Information about filters to apply to narrow the results returned in the * list.

*/ inline ListProjectsRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

Information about filters to apply to narrow the results returned in the * list.

*/ inline ListProjectsRequest& AddFilters(const ProjectListFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

Information about filters to apply to narrow the results returned in the * list.

*/ inline ListProjectsRequest& AddFilters(ProjectListFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } private: Aws::String m_spaceName; bool m_spaceNameHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; }; } // namespace Model } // namespace CodeCatalyst } // namespace Aws