/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information on the sum of usage based on an Amazon Web Services
* resource.See Also:
AWS
* API Reference
The Amazon Web Services resource that generated usage.
*/ inline const Aws::String& GetResource() const{ return m_resource; } /** *The Amazon Web Services resource that generated usage.
*/ inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; } /** *The Amazon Web Services resource that generated usage.
*/ inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; } /** *The Amazon Web Services resource that generated usage.
*/ inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); } /** *The Amazon Web Services resource that generated usage.
*/ inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); } /** *The Amazon Web Services resource that generated usage.
*/ inline UsageResourceResult& WithResource(const Aws::String& value) { SetResource(value); return *this;} /** *The Amazon Web Services resource that generated usage.
*/ inline UsageResourceResult& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;} /** *The Amazon Web Services resource that generated usage.
*/ inline UsageResourceResult& WithResource(const char* value) { SetResource(value); return *this;} /** *Represents the sum total of usage for the specified resource type.
*/ inline const Total& GetTotal() const{ return m_total; } /** *Represents the sum total of usage for the specified resource type.
*/ inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; } /** *Represents the sum total of usage for the specified resource type.
*/ inline void SetTotal(const Total& value) { m_totalHasBeenSet = true; m_total = value; } /** *Represents the sum total of usage for the specified resource type.
*/ inline void SetTotal(Total&& value) { m_totalHasBeenSet = true; m_total = std::move(value); } /** *Represents the sum total of usage for the specified resource type.
*/ inline UsageResourceResult& WithTotal(const Total& value) { SetTotal(value); return *this;} /** *Represents the sum total of usage for the specified resource type.
*/ inline UsageResourceResult& WithTotal(Total&& value) { SetTotal(std::move(value)); return *this;} private: Aws::String m_resource; bool m_resourceHasBeenSet = false; Total m_total; bool m_totalHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws