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

Specifies the sort order for the list of returned reports. Valid values are: *

  • ASCENDING: return reports in chronological order * based on their creation date.

  • DESCENDING: * return reports in the reverse chronological order based on their creation date. *

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

Specifies the sort order for the list of returned reports. Valid values are: *

  • ASCENDING: return reports in chronological order * based on their creation date.

  • DESCENDING: * return reports in the reverse chronological order based on their creation date. *

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

Specifies the sort order for the list of returned reports. Valid values are: *

  • ASCENDING: return reports in chronological order * based on their creation date.

  • DESCENDING: * return reports in the reverse chronological order based on their creation date. *

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

Specifies the sort order for the list of returned reports. Valid values are: *

  • ASCENDING: return reports in chronological order * based on their creation date.

  • DESCENDING: * return reports in the reverse chronological order based on their creation date. *

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

Specifies the sort order for the list of returned reports. Valid values are: *

  • ASCENDING: return reports in chronological order * based on their creation date.

  • DESCENDING: * return reports in the reverse chronological order based on their creation date. *

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

Specifies the sort order for the list of returned reports. Valid values are: *

  • ASCENDING: return reports in chronological order * based on their creation date.

  • DESCENDING: * return reports in the reverse chronological order based on their creation date. *

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

During a previous call, the maximum number of items that can be returned is * the value specified in maxResults. If there more items in the list, * then a unique string called a nextToken is returned. 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, the maximum number of items that can be returned is * the value specified in maxResults. If there more items in the list, * then a unique string called a nextToken is returned. 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, the maximum number of items that can be returned is * the value specified in maxResults. If there more items in the list, * then a unique string called a nextToken is returned. 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, the maximum number of items that can be returned is * the value specified in maxResults. If there more items in the list, * then a unique string called a nextToken is returned. 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, the maximum number of items that can be returned is * the value specified in maxResults. If there more items in the list, * then a unique string called a nextToken is returned. 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, the maximum number of items that can be returned is * the value specified in maxResults. If there more items in the list, * then a unique string called a nextToken is returned. 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 ListReportsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

During a previous call, the maximum number of items that can be returned is * the value specified in maxResults. If there more items in the list, * then a unique string called a nextToken is returned. 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 ListReportsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

During a previous call, the maximum number of items that can be returned is * the value specified in maxResults. If there more items in the list, * then a unique string called a nextToken is returned. 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 ListReportsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of paginated reports returned per response. Use * nextToken to iterate pages in the list of returned * Report objects. The default value is 100.

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

The maximum number of paginated reports returned per response. Use * nextToken to iterate pages in the list of returned * Report objects. The default value is 100.

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

The maximum number of paginated reports returned per response. Use * nextToken to iterate pages in the list of returned * Report objects. The default value is 100.

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

The maximum number of paginated reports returned per response. Use * nextToken to iterate pages in the list of returned * Report objects. The default value is 100.

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

A ReportFilter object used to filter the returned reports.

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

A ReportFilter object used to filter the returned reports.

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

A ReportFilter object used to filter the returned reports.

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

A ReportFilter object used to filter the returned reports.

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

A ReportFilter object used to filter the returned reports.

*/ inline ListReportsRequest& WithFilter(const ReportFilter& value) { SetFilter(value); return *this;} /** *

A ReportFilter object used to filter the returned reports.

*/ inline ListReportsRequest& WithFilter(ReportFilter&& value) { SetFilter(std::move(value)); return *this;} private: SortOrderType m_sortOrder; bool m_sortOrderHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; ReportFilter m_filter; bool m_filterHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws