/** * 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 #include namespace Aws { namespace Macie2 { namespace Model { /** */ class GetUsageStatisticsRequest : public Macie2Request { public: AWS_MACIE2_API 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_MACIE2_API Aws::String SerializePayload() const override; /** *

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

*/ 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 you specify more than one condition, Amazon Macie uses an AND * operator to join the conditions.

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

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

*/ 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 you specify more than one condition, Amazon Macie uses an AND * operator to join the conditions.

*/ 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 you specify more than one condition, Amazon Macie uses an AND * operator to join the conditions.

*/ 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 you specify more than one condition, Amazon Macie uses an AND * operator to join the conditions.

*/ 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 you specify more than one condition, Amazon Macie uses an AND * operator to join the conditions.

*/ 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 you specify more than one condition, Amazon Macie uses an AND * operator to join the conditions.

*/ 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;} /** *

The inclusive time period to query usage data for. Valid values are: * MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for * the preceding 30 days. If you don't specify a value, Amazon Macie provides usage * data for the preceding 30 days.

*/ inline const TimeRange& GetTimeRange() const{ return m_timeRange; } /** *

The inclusive time period to query usage data for. Valid values are: * MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for * the preceding 30 days. If you don't specify a value, Amazon Macie provides usage * data for the preceding 30 days.

*/ inline bool TimeRangeHasBeenSet() const { return m_timeRangeHasBeenSet; } /** *

The inclusive time period to query usage data for. Valid values are: * MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for * the preceding 30 days. If you don't specify a value, Amazon Macie provides usage * data for the preceding 30 days.

*/ inline void SetTimeRange(const TimeRange& value) { m_timeRangeHasBeenSet = true; m_timeRange = value; } /** *

The inclusive time period to query usage data for. Valid values are: * MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for * the preceding 30 days. If you don't specify a value, Amazon Macie provides usage * data for the preceding 30 days.

*/ inline void SetTimeRange(TimeRange&& value) { m_timeRangeHasBeenSet = true; m_timeRange = std::move(value); } /** *

The inclusive time period to query usage data for. Valid values are: * MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for * the preceding 30 days. If you don't specify a value, Amazon Macie provides usage * data for the preceding 30 days.

*/ inline GetUsageStatisticsRequest& WithTimeRange(const TimeRange& value) { SetTimeRange(value); return *this;} /** *

The inclusive time period to query usage data for. Valid values are: * MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for * the preceding 30 days. If you don't specify a value, Amazon Macie provides usage * data for the preceding 30 days.

*/ inline GetUsageStatisticsRequest& WithTimeRange(TimeRange&& value) { SetTimeRange(std::move(value)); return *this;} private: Aws::Vector m_filterBy; bool m_filterByHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; UsageStatisticsSortBy m_sortBy; bool m_sortByHasBeenSet = false; TimeRange m_timeRange; bool m_timeRangeHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws