125 lines
3.5 KiB
C++
125 lines
3.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/guardduty/GuardDuty_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/guardduty/model/Total.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace GuardDuty
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Contains information on the sum of usage based on an AWS
|
|
* resource.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UsageResourceResult">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_GUARDDUTY_API UsageResourceResult
|
|
{
|
|
public:
|
|
UsageResourceResult();
|
|
UsageResourceResult(Aws::Utils::Json::JsonView jsonValue);
|
|
UsageResourceResult& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The AWS resource that generated usage.</p>
|
|
*/
|
|
inline const Aws::String& GetResource() const{ return m_resource; }
|
|
|
|
/**
|
|
* <p>The AWS resource that generated usage.</p>
|
|
*/
|
|
inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The AWS resource that generated usage.</p>
|
|
*/
|
|
inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
|
|
|
|
/**
|
|
* <p>The AWS resource that generated usage.</p>
|
|
*/
|
|
inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
|
|
|
|
/**
|
|
* <p>The AWS resource that generated usage.</p>
|
|
*/
|
|
inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
|
|
|
|
/**
|
|
* <p>The AWS resource that generated usage.</p>
|
|
*/
|
|
inline UsageResourceResult& WithResource(const Aws::String& value) { SetResource(value); return *this;}
|
|
|
|
/**
|
|
* <p>The AWS resource that generated usage.</p>
|
|
*/
|
|
inline UsageResourceResult& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The AWS resource that generated usage.</p>
|
|
*/
|
|
inline UsageResourceResult& WithResource(const char* value) { SetResource(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Represents the sum total of usage for the specified resource type.</p>
|
|
*/
|
|
inline const Total& GetTotal() const{ return m_total; }
|
|
|
|
/**
|
|
* <p>Represents the sum total of usage for the specified resource type.</p>
|
|
*/
|
|
inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Represents the sum total of usage for the specified resource type.</p>
|
|
*/
|
|
inline void SetTotal(const Total& value) { m_totalHasBeenSet = true; m_total = value; }
|
|
|
|
/**
|
|
* <p>Represents the sum total of usage for the specified resource type.</p>
|
|
*/
|
|
inline void SetTotal(Total&& value) { m_totalHasBeenSet = true; m_total = std::move(value); }
|
|
|
|
/**
|
|
* <p>Represents the sum total of usage for the specified resource type.</p>
|
|
*/
|
|
inline UsageResourceResult& WithTotal(const Total& value) { SetTotal(value); return *this;}
|
|
|
|
/**
|
|
* <p>Represents the sum total of usage for the specified resource type.</p>
|
|
*/
|
|
inline UsageResourceResult& WithTotal(Total&& value) { SetTotal(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_resource;
|
|
bool m_resourceHasBeenSet;
|
|
|
|
Total m_total;
|
|
bool m_totalHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace GuardDuty
|
|
} // namespace Aws
|