/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace GuardDuty { namespace Model { /** *

Contains information about the result of the total usage based on the * feature.

See Also:

AWS * API Reference

*/ class UsageFeatureResult { public: AWS_GUARDDUTY_API UsageFeatureResult(); AWS_GUARDDUTY_API UsageFeatureResult(Aws::Utils::Json::JsonView jsonValue); AWS_GUARDDUTY_API UsageFeatureResult& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The feature that generated the usage cost.

*/ inline const UsageFeature& GetFeature() const{ return m_feature; } /** *

The feature that generated the usage cost.

*/ inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; } /** *

The feature that generated the usage cost.

*/ inline void SetFeature(const UsageFeature& value) { m_featureHasBeenSet = true; m_feature = value; } /** *

The feature that generated the usage cost.

*/ inline void SetFeature(UsageFeature&& value) { m_featureHasBeenSet = true; m_feature = std::move(value); } /** *

The feature that generated the usage cost.

*/ inline UsageFeatureResult& WithFeature(const UsageFeature& value) { SetFeature(value); return *this;} /** *

The feature that generated the usage cost.

*/ inline UsageFeatureResult& WithFeature(UsageFeature&& value) { SetFeature(std::move(value)); return *this;} inline const Total& GetTotal() const{ return m_total; } inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; } inline void SetTotal(const Total& value) { m_totalHasBeenSet = true; m_total = value; } inline void SetTotal(Total&& value) { m_totalHasBeenSet = true; m_total = std::move(value); } inline UsageFeatureResult& WithTotal(const Total& value) { SetTotal(value); return *this;} inline UsageFeatureResult& WithTotal(Total&& value) { SetTotal(std::move(value)); return *this;} private: UsageFeature m_feature; bool m_featureHasBeenSet = false; Total m_total; bool m_totalHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws