178 lines
5.6 KiB
C++
178 lines
5.6 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/macie2/Macie2_EXPORTS.h>
|
|
#include <aws/macie2/model/Currency.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/macie2/model/UsageType.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace Macie2
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Provides aggregated data for a usage metric. The value for the metric reports
|
|
* usage data for an account during the past 30 days.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UsageTotal">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_MACIE2_API UsageTotal
|
|
{
|
|
public:
|
|
UsageTotal();
|
|
UsageTotal(Aws::Utils::Json::JsonView jsonValue);
|
|
UsageTotal& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The type of currency that the value for the metric (estimatedCost) is
|
|
* reported in.</p>
|
|
*/
|
|
inline const Currency& GetCurrency() const{ return m_currency; }
|
|
|
|
/**
|
|
* <p>The type of currency that the value for the metric (estimatedCost) is
|
|
* reported in.</p>
|
|
*/
|
|
inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The type of currency that the value for the metric (estimatedCost) is
|
|
* reported in.</p>
|
|
*/
|
|
inline void SetCurrency(const Currency& value) { m_currencyHasBeenSet = true; m_currency = value; }
|
|
|
|
/**
|
|
* <p>The type of currency that the value for the metric (estimatedCost) is
|
|
* reported in.</p>
|
|
*/
|
|
inline void SetCurrency(Currency&& value) { m_currencyHasBeenSet = true; m_currency = std::move(value); }
|
|
|
|
/**
|
|
* <p>The type of currency that the value for the metric (estimatedCost) is
|
|
* reported in.</p>
|
|
*/
|
|
inline UsageTotal& WithCurrency(const Currency& value) { SetCurrency(value); return *this;}
|
|
|
|
/**
|
|
* <p>The type of currency that the value for the metric (estimatedCost) is
|
|
* reported in.</p>
|
|
*/
|
|
inline UsageTotal& WithCurrency(Currency&& value) { SetCurrency(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The estimated value for the metric.</p>
|
|
*/
|
|
inline const Aws::String& GetEstimatedCost() const{ return m_estimatedCost; }
|
|
|
|
/**
|
|
* <p>The estimated value for the metric.</p>
|
|
*/
|
|
inline bool EstimatedCostHasBeenSet() const { return m_estimatedCostHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The estimated value for the metric.</p>
|
|
*/
|
|
inline void SetEstimatedCost(const Aws::String& value) { m_estimatedCostHasBeenSet = true; m_estimatedCost = value; }
|
|
|
|
/**
|
|
* <p>The estimated value for the metric.</p>
|
|
*/
|
|
inline void SetEstimatedCost(Aws::String&& value) { m_estimatedCostHasBeenSet = true; m_estimatedCost = std::move(value); }
|
|
|
|
/**
|
|
* <p>The estimated value for the metric.</p>
|
|
*/
|
|
inline void SetEstimatedCost(const char* value) { m_estimatedCostHasBeenSet = true; m_estimatedCost.assign(value); }
|
|
|
|
/**
|
|
* <p>The estimated value for the metric.</p>
|
|
*/
|
|
inline UsageTotal& WithEstimatedCost(const Aws::String& value) { SetEstimatedCost(value); return *this;}
|
|
|
|
/**
|
|
* <p>The estimated value for the metric.</p>
|
|
*/
|
|
inline UsageTotal& WithEstimatedCost(Aws::String&& value) { SetEstimatedCost(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The estimated value for the metric.</p>
|
|
*/
|
|
inline UsageTotal& WithEstimatedCost(const char* value) { SetEstimatedCost(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The name of the metric. Possible values are: DATA_INVENTORY_EVALUATION, for
|
|
* monitoring S3 buckets; and, SENSITIVE_DATA_DISCOVERY, for analyzing sensitive
|
|
* data.</p>
|
|
*/
|
|
inline const UsageType& GetType() const{ return m_type; }
|
|
|
|
/**
|
|
* <p>The name of the metric. Possible values are: DATA_INVENTORY_EVALUATION, for
|
|
* monitoring S3 buckets; and, SENSITIVE_DATA_DISCOVERY, for analyzing sensitive
|
|
* data.</p>
|
|
*/
|
|
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the metric. Possible values are: DATA_INVENTORY_EVALUATION, for
|
|
* monitoring S3 buckets; and, SENSITIVE_DATA_DISCOVERY, for analyzing sensitive
|
|
* data.</p>
|
|
*/
|
|
inline void SetType(const UsageType& value) { m_typeHasBeenSet = true; m_type = value; }
|
|
|
|
/**
|
|
* <p>The name of the metric. Possible values are: DATA_INVENTORY_EVALUATION, for
|
|
* monitoring S3 buckets; and, SENSITIVE_DATA_DISCOVERY, for analyzing sensitive
|
|
* data.</p>
|
|
*/
|
|
inline void SetType(UsageType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the metric. Possible values are: DATA_INVENTORY_EVALUATION, for
|
|
* monitoring S3 buckets; and, SENSITIVE_DATA_DISCOVERY, for analyzing sensitive
|
|
* data.</p>
|
|
*/
|
|
inline UsageTotal& WithType(const UsageType& value) { SetType(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the metric. Possible values are: DATA_INVENTORY_EVALUATION, for
|
|
* monitoring S3 buckets; and, SENSITIVE_DATA_DISCOVERY, for analyzing sensitive
|
|
* data.</p>
|
|
*/
|
|
inline UsageTotal& WithType(UsageType&& value) { SetType(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Currency m_currency;
|
|
bool m_currencyHasBeenSet;
|
|
|
|
Aws::String m_estimatedCost;
|
|
bool m_estimatedCostHasBeenSet;
|
|
|
|
UsageType m_type;
|
|
bool m_typeHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Macie2
|
|
} // namespace Aws
|