/** * 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 on the total of usage based on account * IDs.

See Also:

AWS * API Reference

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

The Account ID that generated usage.

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

The Account ID that generated usage.

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

The Account ID that generated usage.

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

The Account ID that generated usage.

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

The Account ID that generated usage.

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

The Account ID that generated usage.

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

The Account ID that generated usage.

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

The Account ID that generated usage.

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

Represents the total of usage for the Account ID.

*/ inline const Total& GetTotal() const{ return m_total; } /** *

Represents the total of usage for the Account ID.

*/ inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; } /** *

Represents the total of usage for the Account ID.

*/ inline void SetTotal(const Total& value) { m_totalHasBeenSet = true; m_total = value; } /** *

Represents the total of usage for the Account ID.

*/ inline void SetTotal(Total&& value) { m_totalHasBeenSet = true; m_total = std::move(value); } /** *

Represents the total of usage for the Account ID.

*/ inline UsageAccountResult& WithTotal(const Total& value) { SetTotal(value); return *this;} /** *

Represents the total of usage for the Account ID.

*/ inline UsageAccountResult& WithTotal(Total&& value) { SetTotal(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Total m_total; bool m_totalHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws