/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Inspector2 { namespace Model { /** *

The total of usage for an account ID.

See Also:

AWS * API Reference

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

The account ID of the account that usage data was retrieved for.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The account ID of the account that usage data was retrieved for.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The account ID of the account that usage data was retrieved for.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The account ID of the account that usage data was retrieved for.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The account ID of the account that usage data was retrieved for.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The account ID of the account that usage data was retrieved for.

*/ inline UsageTotal& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The account ID of the account that usage data was retrieved for.

*/ inline UsageTotal& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The account ID of the account that usage data was retrieved for.

*/ inline UsageTotal& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

An object representing the total usage for an account.

*/ inline const Aws::Vector& GetUsage() const{ return m_usage; } /** *

An object representing the total usage for an account.

*/ inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; } /** *

An object representing the total usage for an account.

*/ inline void SetUsage(const Aws::Vector& value) { m_usageHasBeenSet = true; m_usage = value; } /** *

An object representing the total usage for an account.

*/ inline void SetUsage(Aws::Vector&& value) { m_usageHasBeenSet = true; m_usage = std::move(value); } /** *

An object representing the total usage for an account.

*/ inline UsageTotal& WithUsage(const Aws::Vector& value) { SetUsage(value); return *this;} /** *

An object representing the total usage for an account.

*/ inline UsageTotal& WithUsage(Aws::Vector&& value) { SetUsage(std::move(value)); return *this;} /** *

An object representing the total usage for an account.

*/ inline UsageTotal& AddUsage(const Usage& value) { m_usageHasBeenSet = true; m_usage.push_back(value); return *this; } /** *

An object representing the total usage for an account.

*/ inline UsageTotal& AddUsage(Usage&& value) { m_usageHasBeenSet = true; m_usage.push_back(std::move(value)); return *this; } private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::Vector m_usage; bool m_usageHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws