/** * 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 CodeBuild { namespace Model { /** */ class ListProjectsRequest : public CodeBuildRequest { public: AWS_CODEBUILD_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_CODEBUILD_API Aws::String SerializePayload() const override; AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The criterion to be used to list build project names. Valid values * include:

  • CREATED_TIME: List based on when each * build project was created.

  • LAST_MODIFIED_TIME: * List based on when information about each build project was last changed.

    *
  • NAME: List based on each build project's name.

    *

Use sortOrder to specify in what order to list the * build project names based on the preceding criteria.

*/ inline const ProjectSortByType& GetSortBy() const{ return m_sortBy; } /** *

The criterion to be used to list build project names. Valid values * include:

  • CREATED_TIME: List based on when each * build project was created.

  • LAST_MODIFIED_TIME: * List based on when information about each build project was last changed.

    *
  • NAME: List based on each build project's name.

    *

Use sortOrder to specify in what order to list the * build project names based on the preceding criteria.

*/ inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } /** *

The criterion to be used to list build project names. Valid values * include:

  • CREATED_TIME: List based on when each * build project was created.

  • LAST_MODIFIED_TIME: * List based on when information about each build project was last changed.

    *
  • NAME: List based on each build project's name.

    *

Use sortOrder to specify in what order to list the * build project names based on the preceding criteria.

*/ inline void SetSortBy(const ProjectSortByType& value) { m_sortByHasBeenSet = true; m_sortBy = value; } /** *

The criterion to be used to list build project names. Valid values * include:

  • CREATED_TIME: List based on when each * build project was created.

  • LAST_MODIFIED_TIME: * List based on when information about each build project was last changed.

    *
  • NAME: List based on each build project's name.

    *

Use sortOrder to specify in what order to list the * build project names based on the preceding criteria.

*/ inline void SetSortBy(ProjectSortByType&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } /** *

The criterion to be used to list build project names. Valid values * include:

  • CREATED_TIME: List based on when each * build project was created.

  • LAST_MODIFIED_TIME: * List based on when information about each build project was last changed.

    *
  • NAME: List based on each build project's name.

    *

Use sortOrder to specify in what order to list the * build project names based on the preceding criteria.

*/ inline ListProjectsRequest& WithSortBy(const ProjectSortByType& value) { SetSortBy(value); return *this;} /** *

The criterion to be used to list build project names. Valid values * include:

  • CREATED_TIME: List based on when each * build project was created.

  • LAST_MODIFIED_TIME: * List based on when information about each build project was last changed.

    *
  • NAME: List based on each build project's name.

    *

Use sortOrder to specify in what order to list the * build project names based on the preceding criteria.

*/ inline ListProjectsRequest& WithSortBy(ProjectSortByType&& value) { SetSortBy(std::move(value)); return *this;} /** *

The order in which to list build projects. Valid values include:

    *
  • ASCENDING: List in ascending order.

  • * DESCENDING: List in descending order.

Use * sortBy to specify the criterion to be used to list build project * names.

*/ inline const SortOrderType& GetSortOrder() const{ return m_sortOrder; } /** *

The order in which to list build projects. Valid values include:

    *
  • ASCENDING: List in ascending order.

  • * DESCENDING: List in descending order.

Use * sortBy to specify the criterion to be used to list build project * names.

*/ inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; } /** *

The order in which to list build projects. Valid values include:

    *
  • ASCENDING: List in ascending order.

  • * DESCENDING: List in descending order.

Use * sortBy to specify the criterion to be used to list build project * names.

*/ inline void SetSortOrder(const SortOrderType& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } /** *

The order in which to list build projects. Valid values include:

    *
  • ASCENDING: List in ascending order.

  • * DESCENDING: List in descending order.

Use * sortBy to specify the criterion to be used to list build project * names.

*/ inline void SetSortOrder(SortOrderType&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); } /** *

The order in which to list build projects. Valid values include:

    *
  • ASCENDING: List in ascending order.

  • * DESCENDING: List in descending order.

Use * sortBy to specify the criterion to be used to list build project * names.

*/ inline ListProjectsRequest& WithSortOrder(const SortOrderType& value) { SetSortOrder(value); return *this;} /** *

The order in which to list build projects. Valid values include:

    *
  • ASCENDING: List in ascending order.

  • * DESCENDING: List in descending order.

Use * sortBy to specify the criterion to be used to list build project * names.

*/ inline ListProjectsRequest& WithSortOrder(SortOrderType&& value) { SetSortOrder(std::move(value)); return *this;} /** *

During a previous call, if there are more than 100 items in the list, only * the first 100 items are returned, along with a unique string called a * nextToken. To get the next batch of items in the list, call this * operation again, adding the next token to the call. To get all of the items in * the list, keep calling this operation with each subsequent next token that is * returned, until no more next tokens are returned.

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

During a previous call, if there are more than 100 items in the list, only * the first 100 items are returned, along with a unique string called a * nextToken. To get the next batch of items in the list, call this * operation again, adding the next token to the call. To get all of the items in * the list, keep calling this operation with each subsequent next token that is * returned, until no more next tokens are returned.

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

During a previous call, if there are more than 100 items in the list, only * the first 100 items are returned, along with a unique string called a * nextToken. To get the next batch of items in the list, call this * operation again, adding the next token to the call. To get all of the items in * the list, keep calling this operation with each subsequent next token that is * returned, until no more next tokens are returned.

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

During a previous call, if there are more than 100 items in the list, only * the first 100 items are returned, along with a unique string called a * nextToken. To get the next batch of items in the list, call this * operation again, adding the next token to the call. To get all of the items in * the list, keep calling this operation with each subsequent next token that is * returned, until no more next tokens are returned.

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

During a previous call, if there are more than 100 items in the list, only * the first 100 items are returned, along with a unique string called a * nextToken. To get the next batch of items in the list, call this * operation again, adding the next token to the call. To get all of the items in * the list, keep calling this operation with each subsequent next token that is * returned, until no more next tokens are returned.

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

During a previous call, if there are more than 100 items in the list, only * the first 100 items are returned, along with a unique string called a * nextToken. To get the next batch of items in the list, call this * operation again, adding the next token to the call. To get all of the items in * the list, keep calling this operation with each subsequent next token that is * returned, until no more next tokens are returned.

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

During a previous call, if there are more than 100 items in the list, only * the first 100 items are returned, along with a unique string called a * nextToken. To get the next batch of items in the list, call this * operation again, adding the next token to the call. To get all of the items in * the list, keep calling this operation with each subsequent next token that is * returned, until no more next tokens are returned.

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

During a previous call, if there are more than 100 items in the list, only * the first 100 items are returned, along with a unique string called a * nextToken. To get the next batch of items in the list, call this * operation again, adding the next token to the call. To get all of the items in * the list, keep calling this operation with each subsequent next token that is * returned, until no more next tokens are returned.

*/ inline ListProjectsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: ProjectSortByType m_sortBy; bool m_sortByHasBeenSet = false; SortOrderType m_sortOrder; bool m_sortOrderHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws