/** * 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 ListBuildBatchesForProjectRequest : public CodeBuildRequest { public: AWS_CODEBUILD_API ListBuildBatchesForProjectRequest(); // 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 "ListBuildBatchesForProject"; } AWS_CODEBUILD_API Aws::String SerializePayload() const override; AWS_CODEBUILD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the project.

*/ inline const Aws::String& GetProjectName() const{ return m_projectName; } /** *

The name of the project.

*/ inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; } /** *

The name of the project.

*/ inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; } /** *

The name of the project.

*/ inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); } /** *

The name of the project.

*/ inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); } /** *

The name of the project.

*/ inline ListBuildBatchesForProjectRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;} /** *

The name of the project.

*/ inline ListBuildBatchesForProjectRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;} /** *

The name of the project.

*/ inline ListBuildBatchesForProjectRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;} /** *

A BuildBatchFilter object that specifies the filters for the * search.

*/ inline const BuildBatchFilter& GetFilter() const{ return m_filter; } /** *

A BuildBatchFilter object that specifies the filters for the * search.

*/ inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } /** *

A BuildBatchFilter object that specifies the filters for the * search.

*/ inline void SetFilter(const BuildBatchFilter& value) { m_filterHasBeenSet = true; m_filter = value; } /** *

A BuildBatchFilter object that specifies the filters for the * search.

*/ inline void SetFilter(BuildBatchFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } /** *

A BuildBatchFilter object that specifies the filters for the * search.

*/ inline ListBuildBatchesForProjectRequest& WithFilter(const BuildBatchFilter& value) { SetFilter(value); return *this;} /** *

A BuildBatchFilter object that specifies the filters for the * search.

*/ inline ListBuildBatchesForProjectRequest& WithFilter(BuildBatchFilter&& value) { SetFilter(std::move(value)); return *this;} /** *

The maximum number of results to return.

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

The maximum number of results to return.

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

The maximum number of results to return.

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

The maximum number of results to return.

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

Specifies the sort order of the returned items. Valid values include:

*
  • ASCENDING: List the batch build identifiers in * ascending order by identifier.

  • DESCENDING: List * the batch build identifiers in descending order by identifier.

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

Specifies the sort order of the returned items. Valid values include:

*
  • ASCENDING: List the batch build identifiers in * ascending order by identifier.

  • DESCENDING: List * the batch build identifiers in descending order by identifier.

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

Specifies the sort order of the returned items. Valid values include:

*
  • ASCENDING: List the batch build identifiers in * ascending order by identifier.

  • DESCENDING: List * the batch build identifiers in descending order by identifier.

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

Specifies the sort order of the returned items. Valid values include:

*
  • ASCENDING: List the batch build identifiers in * ascending order by identifier.

  • DESCENDING: List * the batch build identifiers in descending order by identifier.

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

Specifies the sort order of the returned items. Valid values include:

*
  • ASCENDING: List the batch build identifiers in * ascending order by identifier.

  • DESCENDING: List * the batch build identifiers in descending order by identifier.

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

Specifies the sort order of the returned items. Valid values include:

*
  • ASCENDING: List the batch build identifiers in * ascending order by identifier.

  • DESCENDING: List * the batch build identifiers in descending order by identifier.

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

The nextToken value returned from a previous call to * ListBuildBatchesForProject. This specifies the next item to return. * To return the beginning of the list, exclude this parameter.

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

The nextToken value returned from a previous call to * ListBuildBatchesForProject. This specifies the next item to return. * To return the beginning of the list, exclude this parameter.

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

The nextToken value returned from a previous call to * ListBuildBatchesForProject. This specifies the next item to return. * To return the beginning of the list, exclude this parameter.

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

The nextToken value returned from a previous call to * ListBuildBatchesForProject. This specifies the next item to return. * To return the beginning of the list, exclude this parameter.

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

The nextToken value returned from a previous call to * ListBuildBatchesForProject. This specifies the next item to return. * To return the beginning of the list, exclude this parameter.

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

The nextToken value returned from a previous call to * ListBuildBatchesForProject. This specifies the next item to return. * To return the beginning of the list, exclude this parameter.

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

The nextToken value returned from a previous call to * ListBuildBatchesForProject. This specifies the next item to return. * To return the beginning of the list, exclude this parameter.

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

The nextToken value returned from a previous call to * ListBuildBatchesForProject. This specifies the next item to return. * To return the beginning of the list, exclude this parameter.

*/ inline ListBuildBatchesForProjectRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_projectName; bool m_projectNameHasBeenSet = false; BuildBatchFilter m_filter; bool m_filterHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; SortOrderType m_sortOrder; bool m_sortOrderHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws