This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-iot/include/aws/iot/model/MetricToRetain.h

125 lines
3.4 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot/IoT_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iot/model/MetricDimension.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoT
{
namespace Model
{
/**
* <p>The metric you want to retain. Dimensions are optional.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/MetricToRetain">AWS
* API Reference</a></p>
*/
class AWS_IOT_API MetricToRetain
{
public:
MetricToRetain();
MetricToRetain(Aws::Utils::Json::JsonView jsonValue);
MetricToRetain& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>What is measured by the behavior.</p>
*/
inline const Aws::String& GetMetric() const{ return m_metric; }
/**
* <p>What is measured by the behavior.</p>
*/
inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
/**
* <p>What is measured by the behavior.</p>
*/
inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; }
/**
* <p>What is measured by the behavior.</p>
*/
inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
/**
* <p>What is measured by the behavior.</p>
*/
inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); }
/**
* <p>What is measured by the behavior.</p>
*/
inline MetricToRetain& WithMetric(const Aws::String& value) { SetMetric(value); return *this;}
/**
* <p>What is measured by the behavior.</p>
*/
inline MetricToRetain& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;}
/**
* <p>What is measured by the behavior.</p>
*/
inline MetricToRetain& WithMetric(const char* value) { SetMetric(value); return *this;}
/**
* <p>The dimension of a metric.</p>
*/
inline const MetricDimension& GetMetricDimension() const{ return m_metricDimension; }
/**
* <p>The dimension of a metric.</p>
*/
inline bool MetricDimensionHasBeenSet() const { return m_metricDimensionHasBeenSet; }
/**
* <p>The dimension of a metric.</p>
*/
inline void SetMetricDimension(const MetricDimension& value) { m_metricDimensionHasBeenSet = true; m_metricDimension = value; }
/**
* <p>The dimension of a metric.</p>
*/
inline void SetMetricDimension(MetricDimension&& value) { m_metricDimensionHasBeenSet = true; m_metricDimension = std::move(value); }
/**
* <p>The dimension of a metric.</p>
*/
inline MetricToRetain& WithMetricDimension(const MetricDimension& value) { SetMetricDimension(value); return *this;}
/**
* <p>The dimension of a metric.</p>
*/
inline MetricToRetain& WithMetricDimension(MetricDimension&& value) { SetMetricDimension(std::move(value)); return *this;}
private:
Aws::String m_metric;
bool m_metricHasBeenSet;
MetricDimension m_metricDimension;
bool m_metricDimensionHasBeenSet;
};
} // namespace Model
} // namespace IoT
} // namespace Aws