108 lines
3.3 KiB
C
108 lines
3.3 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/lightsail/Lightsail_EXPORTS.h>
|
|||
|
|
#include <aws/lightsail/model/InstanceMetricName.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/lightsail/model/MetricDatapoint.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
template<typename RESULT_TYPE>
|
|||
|
|
class AmazonWebServiceResult;
|
|||
|
|
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace Lightsail
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
class AWS_LIGHTSAIL_API GetInstanceMetricDataResult
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
GetInstanceMetricDataResult();
|
|||
|
|
GetInstanceMetricDataResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|||
|
|
GetInstanceMetricDataResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the metric returned.</p>
|
|||
|
|
*/
|
|||
|
|
inline const InstanceMetricName& GetMetricName() const{ return m_metricName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the metric returned.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetMetricName(const InstanceMetricName& value) { m_metricName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the metric returned.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetMetricName(InstanceMetricName&& value) { m_metricName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the metric returned.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetInstanceMetricDataResult& WithMetricName(const InstanceMetricName& value) { SetMetricName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the metric returned.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetInstanceMetricDataResult& WithMetricName(InstanceMetricName&& value) { SetMetricName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An array of objects that describe the metric data returned.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<MetricDatapoint>& GetMetricData() const{ return m_metricData; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An array of objects that describe the metric data returned.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetMetricData(const Aws::Vector<MetricDatapoint>& value) { m_metricData = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An array of objects that describe the metric data returned.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetMetricData(Aws::Vector<MetricDatapoint>&& value) { m_metricData = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An array of objects that describe the metric data returned.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetInstanceMetricDataResult& WithMetricData(const Aws::Vector<MetricDatapoint>& value) { SetMetricData(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An array of objects that describe the metric data returned.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetInstanceMetricDataResult& WithMetricData(Aws::Vector<MetricDatapoint>&& value) { SetMetricData(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An array of objects that describe the metric data returned.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetInstanceMetricDataResult& AddMetricData(const MetricDatapoint& value) { m_metricData.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An array of objects that describe the metric data returned.</p>
|
|||
|
|
*/
|
|||
|
|
inline GetInstanceMetricDataResult& AddMetricData(MetricDatapoint&& value) { m_metricData.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
InstanceMetricName m_metricName;
|
|||
|
|
|
|||
|
|
Aws::Vector<MetricDatapoint> m_metricData;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace Lightsail
|
|||
|
|
} // namespace Aws
|