/** * 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 GetUsageTotalsResult { public: AWS_MACIE2_API GetUsageTotalsResult(); AWS_MACIE2_API GetUsageTotalsResult(const Aws::AmazonWebServiceResult& result); AWS_MACIE2_API GetUsageTotalsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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 GetUsageTotalsResult& 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 GetUsageTotalsResult& WithTimeRange(TimeRange&& value) { SetTimeRange(std::move(value)); return *this;} /** *

An array of objects that contains the results of the query. Each object * contains the data for a specific usage metric.

*/ inline const Aws::Vector& GetUsageTotals() const{ return m_usageTotals; } /** *

An array of objects that contains the results of the query. Each object * contains the data for a specific usage metric.

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

An array of objects that contains the results of the query. Each object * contains the data for a specific usage metric.

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

An array of objects that contains the results of the query. Each object * contains the data for a specific usage metric.

*/ inline GetUsageTotalsResult& WithUsageTotals(const Aws::Vector& value) { SetUsageTotals(value); return *this;} /** *

An array of objects that contains the results of the query. Each object * contains the data for a specific usage metric.

*/ inline GetUsageTotalsResult& WithUsageTotals(Aws::Vector&& value) { SetUsageTotals(std::move(value)); return *this;} /** *

An array of objects that contains the results of the query. Each object * contains the data for a specific usage metric.

*/ inline GetUsageTotalsResult& AddUsageTotals(const UsageTotal& value) { m_usageTotals.push_back(value); return *this; } /** *

An array of objects that contains the results of the query. Each object * contains the data for a specific usage metric.

*/ inline GetUsageTotalsResult& AddUsageTotals(UsageTotal&& value) { m_usageTotals.push_back(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 GetUsageTotalsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetUsageTotalsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetUsageTotalsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: TimeRange m_timeRange; Aws::Vector m_usageTotals; Aws::String m_requestId; }; } // namespace Model } // namespace Macie2 } // namespace Aws