/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { class GetUsageStatisticsResult { public: AWS_MACIE2_API GetUsageStatisticsResult(); AWS_MACIE2_API GetUsageStatisticsResult(const Aws::AmazonWebServiceResult& result); AWS_MACIE2_API GetUsageStatisticsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The string to use in a subsequent request to get the next page of results in * a paginated response. This value is null if there are no additional pages.

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

The string to use in a subsequent request to get the next page of results in * a paginated response. This value is null if there are no additional pages.

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

The string to use in a subsequent request to get the next page of results in * a paginated response. This value is null if there are no additional pages.

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

The string to use in a subsequent request to get the next page of results in * a paginated response. This value is null if there are no additional pages.

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

The string to use in a subsequent request to get the next page of results in * a paginated response. This value is null if there are no additional pages.

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

The string to use in a subsequent request to get the next page of results in * a paginated response. This value is null if there are no additional pages.

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

The string to use in a subsequent request to get the next page of results in * a paginated response. This value is null if there are no additional pages.

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

An array of objects that contains the results of the query. Each object * contains the data for an account that matches the filter criteria specified in * the request.

*/ inline const Aws::Vector& GetRecords() const{ return m_records; } /** *

An array of objects that contains the results of the query. Each object * contains the data for an account that matches the filter criteria specified in * the request.

*/ inline void SetRecords(const Aws::Vector& value) { m_records = value; } /** *

An array of objects that contains the results of the query. Each object * contains the data for an account that matches the filter criteria specified in * the request.

*/ inline void SetRecords(Aws::Vector&& value) { m_records = std::move(value); } /** *

An array of objects that contains the results of the query. Each object * contains the data for an account that matches the filter criteria specified in * the request.

*/ inline GetUsageStatisticsResult& WithRecords(const Aws::Vector& value) { SetRecords(value); return *this;} /** *

An array of objects that contains the results of the query. Each object * contains the data for an account that matches the filter criteria specified in * the request.

*/ inline GetUsageStatisticsResult& WithRecords(Aws::Vector&& value) { SetRecords(std::move(value)); return *this;} /** *

An array of objects that contains the results of the query. Each object * contains the data for an account that matches the filter criteria specified in * the request.

*/ inline GetUsageStatisticsResult& AddRecords(const UsageRecord& value) { m_records.push_back(value); return *this; } /** *

An array of objects that contains the results of the query. Each object * contains the data for an account that matches the filter criteria specified in * the request.

*/ inline GetUsageStatisticsResult& AddRecords(UsageRecord&& value) { m_records.push_back(std::move(value)); return *this; } /** *

The inclusive time period that the usage data applies to. Possible values * are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, * for the preceding 30 days.

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

The inclusive time period that the usage data applies to. Possible values * are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, * for the preceding 30 days.

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

The inclusive time period that the usage data applies to. Possible values * are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, * for the preceding 30 days.

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

The inclusive time period that the usage data applies to. Possible values * are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, * for the preceding 30 days.

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

The inclusive time period that the usage data applies to. Possible values * are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, * for the preceding 30 days.

*/ inline GetUsageStatisticsResult& WithTimeRange(TimeRange&& value) { SetTimeRange(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetUsageStatisticsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetUsageStatisticsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetUsageStatisticsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_nextToken; Aws::Vector m_records; TimeRange m_timeRange; Aws::String m_requestId; }; } // namespace Model } // namespace Macie2 } // namespace Aws