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

The inclusive time period to retrieve the 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 for this parameter, Amazon * Macie provides aggregated usage data for the preceding 30 days.

*/ inline const Aws::String& GetTimeRange() const{ return m_timeRange; } /** *

The inclusive time period to retrieve the 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 for this parameter, Amazon * Macie provides aggregated usage data for the preceding 30 days.

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

The inclusive time period to retrieve the 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 for this parameter, Amazon * Macie provides aggregated usage data for the preceding 30 days.

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

The inclusive time period to retrieve the 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 for this parameter, Amazon * Macie provides aggregated usage data for the preceding 30 days.

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

The inclusive time period to retrieve the 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 for this parameter, Amazon * Macie provides aggregated usage data for the preceding 30 days.

*/ inline void SetTimeRange(const char* value) { m_timeRangeHasBeenSet = true; m_timeRange.assign(value); } /** *

The inclusive time period to retrieve the 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 for this parameter, Amazon * Macie provides aggregated usage data for the preceding 30 days.

*/ inline GetUsageTotalsRequest& WithTimeRange(const Aws::String& value) { SetTimeRange(value); return *this;} /** *

The inclusive time period to retrieve the 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 for this parameter, Amazon * Macie provides aggregated usage data for the preceding 30 days.

*/ inline GetUsageTotalsRequest& WithTimeRange(Aws::String&& value) { SetTimeRange(std::move(value)); return *this;} /** *

The inclusive time period to retrieve the 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 for this parameter, Amazon * Macie provides aggregated usage data for the preceding 30 days.

*/ inline GetUsageTotalsRequest& WithTimeRange(const char* value) { SetTimeRange(value); return *this;} private: Aws::String m_timeRange; bool m_timeRangeHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws