/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Macie2 { namespace Model { /** */ class AWS_MACIE2_API GetUsageStatisticsRequest : public Macie2Request { public: GetUsageStatisticsRequest(); // 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 "GetUsageStatistics"; } Aws::String SerializePayload() const override; /** *

An array of objects, one for each condition to use to filter the query * results. If the array contains more than one object, Amazon Macie uses an AND * operator to join the conditions specified by the objects.

*/ inline const Aws::Vector& GetFilterBy() const{ return m_filterBy; } /** *

An array of objects, one for each condition to use to filter the query * results. If the array contains more than one object, Amazon Macie uses an AND * operator to join the conditions specified by the objects.

*/ inline bool FilterByHasBeenSet() const { return m_filterByHasBeenSet; } /** *

An array of objects, one for each condition to use to filter the query * results. If the array contains more than one object, Amazon Macie uses an AND * operator to join the conditions specified by the objects.

*/ inline void SetFilterBy(const Aws::Vector& value) { m_filterByHasBeenSet = true; m_filterBy = value; } /** *

An array of objects, one for each condition to use to filter the query * results. If the array contains more than one object, Amazon Macie uses an AND * operator to join the conditions specified by the objects.

*/ inline void SetFilterBy(Aws::Vector&& value) { m_filterByHasBeenSet = true; m_filterBy = std::move(value); } /** *

An array of objects, one for each condition to use to filter the query * results. If the array contains more than one object, Amazon Macie uses an AND * operator to join the conditions specified by the objects.

*/ inline GetUsageStatisticsRequest& WithFilterBy(const Aws::Vector& value) { SetFilterBy(value); return *this;} /** *

An array of objects, one for each condition to use to filter the query * results. If the array contains more than one object, Amazon Macie uses an AND * operator to join the conditions specified by the objects.

*/ inline GetUsageStatisticsRequest& WithFilterBy(Aws::Vector&& value) { SetFilterBy(std::move(value)); return *this;} /** *

An array of objects, one for each condition to use to filter the query * results. If the array contains more than one object, Amazon Macie uses an AND * operator to join the conditions specified by the objects.

*/ inline GetUsageStatisticsRequest& AddFilterBy(const UsageStatisticsFilter& value) { m_filterByHasBeenSet = true; m_filterBy.push_back(value); return *this; } /** *

An array of objects, one for each condition to use to filter the query * results. If the array contains more than one object, Amazon Macie uses an AND * operator to join the conditions specified by the objects.

*/ inline GetUsageStatisticsRequest& AddFilterBy(UsageStatisticsFilter&& value) { m_filterByHasBeenSet = true; m_filterBy.push_back(std::move(value)); return *this; } /** *

The maximum number of items to include in each page of the response.

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

The maximum number of items to include in each page of the response.

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

The maximum number of items to include in each page of the response.

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

The maximum number of items to include in each page of the response.

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

The nextToken string that specifies which page of results to return in a * paginated response.

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

The nextToken string that specifies which page of results to return in a * paginated response.

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

The nextToken string that specifies which page of results to return in a * paginated response.

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

The nextToken string that specifies which page of results to return in a * paginated response.

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

The nextToken string that specifies which page of results to return in a * paginated response.

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

The nextToken string that specifies which page of results to return in a * paginated response.

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

The nextToken string that specifies which page of results to return in a * paginated response.

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

The nextToken string that specifies which page of results to return in a * paginated response.

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

The criteria to use to sort the query results.

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

The criteria to use to sort the query results.

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

The criteria to use to sort the query results.

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

The criteria to use to sort the query results.

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

The criteria to use to sort the query results.

*/ inline GetUsageStatisticsRequest& WithSortBy(const UsageStatisticsSortBy& value) { SetSortBy(value); return *this;} /** *

The criteria to use to sort the query results.

*/ inline GetUsageStatisticsRequest& WithSortBy(UsageStatisticsSortBy&& value) { SetSortBy(std::move(value)); return *this;} private: Aws::Vector m_filterBy; bool m_filterByHasBeenSet; int m_maxResults; bool m_maxResultsHasBeenSet; Aws::String m_nextToken; bool m_nextTokenHasBeenSet; UsageStatisticsSortBy m_sortBy; bool m_sortByHasBeenSet; }; } // namespace Model } // namespace Macie2 } // namespace Aws