/** * 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 { namespace GuardDuty { namespace Model { /** */ class AWS_GUARDDUTY_API GetUsageStatisticsRequest : public GuardDutyRequest { 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; /** *

The ID of the detector that specifies the GuardDuty service whose usage * statistics you want to retrieve.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } /** *

The ID of the detector that specifies the GuardDuty service whose usage * statistics you want to retrieve.

*/ inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } /** *

The ID of the detector that specifies the GuardDuty service whose usage * statistics you want to retrieve.

*/ inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; } /** *

The ID of the detector that specifies the GuardDuty service whose usage * statistics you want to retrieve.

*/ inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); } /** *

The ID of the detector that specifies the GuardDuty service whose usage * statistics you want to retrieve.

*/ inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); } /** *

The ID of the detector that specifies the GuardDuty service whose usage * statistics you want to retrieve.

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

The ID of the detector that specifies the GuardDuty service whose usage * statistics you want to retrieve.

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

The ID of the detector that specifies the GuardDuty service whose usage * statistics you want to retrieve.

*/ inline GetUsageStatisticsRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;} /** *

The type of usage statistics to retrieve.

*/ inline const UsageStatisticType& GetUsageStatisticType() const{ return m_usageStatisticType; } /** *

The type of usage statistics to retrieve.

*/ inline bool UsageStatisticTypeHasBeenSet() const { return m_usageStatisticTypeHasBeenSet; } /** *

The type of usage statistics to retrieve.

*/ inline void SetUsageStatisticType(const UsageStatisticType& value) { m_usageStatisticTypeHasBeenSet = true; m_usageStatisticType = value; } /** *

The type of usage statistics to retrieve.

*/ inline void SetUsageStatisticType(UsageStatisticType&& value) { m_usageStatisticTypeHasBeenSet = true; m_usageStatisticType = std::move(value); } /** *

The type of usage statistics to retrieve.

*/ inline GetUsageStatisticsRequest& WithUsageStatisticType(const UsageStatisticType& value) { SetUsageStatisticType(value); return *this;} /** *

The type of usage statistics to retrieve.

*/ inline GetUsageStatisticsRequest& WithUsageStatisticType(UsageStatisticType&& value) { SetUsageStatisticType(std::move(value)); return *this;} /** *

Represents the criteria used for querying usage.

*/ inline const UsageCriteria& GetUsageCriteria() const{ return m_usageCriteria; } /** *

Represents the criteria used for querying usage.

*/ inline bool UsageCriteriaHasBeenSet() const { return m_usageCriteriaHasBeenSet; } /** *

Represents the criteria used for querying usage.

*/ inline void SetUsageCriteria(const UsageCriteria& value) { m_usageCriteriaHasBeenSet = true; m_usageCriteria = value; } /** *

Represents the criteria used for querying usage.

*/ inline void SetUsageCriteria(UsageCriteria&& value) { m_usageCriteriaHasBeenSet = true; m_usageCriteria = std::move(value); } /** *

Represents the criteria used for querying usage.

*/ inline GetUsageStatisticsRequest& WithUsageCriteria(const UsageCriteria& value) { SetUsageCriteria(value); return *this;} /** *

Represents the criteria used for querying usage.

*/ inline GetUsageStatisticsRequest& WithUsageCriteria(UsageCriteria&& value) { SetUsageCriteria(std::move(value)); return *this;} /** *

The currency unit you would like to view your usage statistics in. Current * valid values are USD.

*/ inline const Aws::String& GetUnit() const{ return m_unit; } /** *

The currency unit you would like to view your usage statistics in. Current * valid values are USD.

*/ inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } /** *

The currency unit you would like to view your usage statistics in. Current * valid values are USD.

*/ inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; } /** *

The currency unit you would like to view your usage statistics in. Current * valid values are USD.

*/ inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } /** *

The currency unit you would like to view your usage statistics in. Current * valid values are USD.

*/ inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); } /** *

The currency unit you would like to view your usage statistics in. Current * valid values are USD.

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

The currency unit you would like to view your usage statistics in. Current * valid values are USD.

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

The currency unit you would like to view your usage statistics in. Current * valid values are USD.

*/ inline GetUsageStatisticsRequest& WithUnit(const char* value) { SetUnit(value); return *this;} /** *

The maximum number of results to return in the response.

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

The maximum number of results to return in the response.

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

The maximum number of results to return in the response.

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

The maximum number of results to return in the response.

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

A token to use for paginating results that are returned in the response. Set * the value of this parameter to null for the first request to a list action. For * subsequent calls, use the NextToken value returned from the previous request to * continue listing results after the first page.

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

A token to use for paginating results that are returned in the response. Set * the value of this parameter to null for the first request to a list action. For * subsequent calls, use the NextToken value returned from the previous request to * continue listing results after the first page.

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

A token to use for paginating results that are returned in the response. Set * the value of this parameter to null for the first request to a list action. For * subsequent calls, use the NextToken value returned from the previous request to * continue listing results after the first page.

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

A token to use for paginating results that are returned in the response. Set * the value of this parameter to null for the first request to a list action. For * subsequent calls, use the NextToken value returned from the previous request to * continue listing results after the first page.

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

A token to use for paginating results that are returned in the response. Set * the value of this parameter to null for the first request to a list action. For * subsequent calls, use the NextToken value returned from the previous request to * continue listing results after the first page.

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

A token to use for paginating results that are returned in the response. Set * the value of this parameter to null for the first request to a list action. For * subsequent calls, use the NextToken value returned from the previous request to * continue listing results after the first page.

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

A token to use for paginating results that are returned in the response. Set * the value of this parameter to null for the first request to a list action. For * subsequent calls, use the NextToken value returned from the previous request to * continue listing results after the first page.

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

A token to use for paginating results that are returned in the response. Set * the value of this parameter to null for the first request to a list action. For * subsequent calls, use the NextToken value returned from the previous request to * continue listing results after the first page.

*/ inline GetUsageStatisticsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_detectorId; bool m_detectorIdHasBeenSet; UsageStatisticType m_usageStatisticType; bool m_usageStatisticTypeHasBeenSet; UsageCriteria m_usageCriteria; bool m_usageCriteriaHasBeenSet; Aws::String m_unit; bool m_unitHasBeenSet; int m_maxResults; bool m_maxResultsHasBeenSet; Aws::String m_nextToken; bool m_nextTokenHasBeenSet; }; } // namespace Model } // namespace GuardDuty } // namespace Aws