/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

Status of edge devices with this model.

See Also:

AWS * API Reference

*/ class EdgeModelStat { public: AWS_SAGEMAKER_API EdgeModelStat(); AWS_SAGEMAKER_API EdgeModelStat(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API EdgeModelStat& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the model.

*/ inline const Aws::String& GetModelName() const{ return m_modelName; } /** *

The name of the model.

*/ inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; } /** *

The name of the model.

*/ inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; } /** *

The name of the model.

*/ inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); } /** *

The name of the model.

*/ inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); } /** *

The name of the model.

*/ inline EdgeModelStat& WithModelName(const Aws::String& value) { SetModelName(value); return *this;} /** *

The name of the model.

*/ inline EdgeModelStat& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;} /** *

The name of the model.

*/ inline EdgeModelStat& WithModelName(const char* value) { SetModelName(value); return *this;} /** *

The model version.

*/ inline const Aws::String& GetModelVersion() const{ return m_modelVersion; } /** *

The model version.

*/ inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; } /** *

The model version.

*/ inline void SetModelVersion(const Aws::String& value) { m_modelVersionHasBeenSet = true; m_modelVersion = value; } /** *

The model version.

*/ inline void SetModelVersion(Aws::String&& value) { m_modelVersionHasBeenSet = true; m_modelVersion = std::move(value); } /** *

The model version.

*/ inline void SetModelVersion(const char* value) { m_modelVersionHasBeenSet = true; m_modelVersion.assign(value); } /** *

The model version.

*/ inline EdgeModelStat& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;} /** *

The model version.

*/ inline EdgeModelStat& WithModelVersion(Aws::String&& value) { SetModelVersion(std::move(value)); return *this;} /** *

The model version.

*/ inline EdgeModelStat& WithModelVersion(const char* value) { SetModelVersion(value); return *this;} /** *

The number of devices that have this model version and do not have a heart * beat.

*/ inline long long GetOfflineDeviceCount() const{ return m_offlineDeviceCount; } /** *

The number of devices that have this model version and do not have a heart * beat.

*/ inline bool OfflineDeviceCountHasBeenSet() const { return m_offlineDeviceCountHasBeenSet; } /** *

The number of devices that have this model version and do not have a heart * beat.

*/ inline void SetOfflineDeviceCount(long long value) { m_offlineDeviceCountHasBeenSet = true; m_offlineDeviceCount = value; } /** *

The number of devices that have this model version and do not have a heart * beat.

*/ inline EdgeModelStat& WithOfflineDeviceCount(long long value) { SetOfflineDeviceCount(value); return *this;} /** *

The number of devices that have this model version and have a heart beat. *

*/ inline long long GetConnectedDeviceCount() const{ return m_connectedDeviceCount; } /** *

The number of devices that have this model version and have a heart beat. *

*/ inline bool ConnectedDeviceCountHasBeenSet() const { return m_connectedDeviceCountHasBeenSet; } /** *

The number of devices that have this model version and have a heart beat. *

*/ inline void SetConnectedDeviceCount(long long value) { m_connectedDeviceCountHasBeenSet = true; m_connectedDeviceCount = value; } /** *

The number of devices that have this model version and have a heart beat. *

*/ inline EdgeModelStat& WithConnectedDeviceCount(long long value) { SetConnectedDeviceCount(value); return *this;} /** *

The number of devices that have this model version, a heart beat, and are * currently running.

*/ inline long long GetActiveDeviceCount() const{ return m_activeDeviceCount; } /** *

The number of devices that have this model version, a heart beat, and are * currently running.

*/ inline bool ActiveDeviceCountHasBeenSet() const { return m_activeDeviceCountHasBeenSet; } /** *

The number of devices that have this model version, a heart beat, and are * currently running.

*/ inline void SetActiveDeviceCount(long long value) { m_activeDeviceCountHasBeenSet = true; m_activeDeviceCount = value; } /** *

The number of devices that have this model version, a heart beat, and are * currently running.

*/ inline EdgeModelStat& WithActiveDeviceCount(long long value) { SetActiveDeviceCount(value); return *this;} /** *

The number of devices with this model version and are producing sample * data.

*/ inline long long GetSamplingDeviceCount() const{ return m_samplingDeviceCount; } /** *

The number of devices with this model version and are producing sample * data.

*/ inline bool SamplingDeviceCountHasBeenSet() const { return m_samplingDeviceCountHasBeenSet; } /** *

The number of devices with this model version and are producing sample * data.

*/ inline void SetSamplingDeviceCount(long long value) { m_samplingDeviceCountHasBeenSet = true; m_samplingDeviceCount = value; } /** *

The number of devices with this model version and are producing sample * data.

*/ inline EdgeModelStat& WithSamplingDeviceCount(long long value) { SetSamplingDeviceCount(value); return *this;} private: Aws::String m_modelName; bool m_modelNameHasBeenSet = false; Aws::String m_modelVersion; bool m_modelVersionHasBeenSet = false; long long m_offlineDeviceCount; bool m_offlineDeviceCountHasBeenSet = false; long long m_connectedDeviceCount; bool m_connectedDeviceCountHasBeenSet = false; long long m_activeDeviceCount; bool m_activeDeviceCountHasBeenSet = false; long long m_samplingDeviceCount; bool m_samplingDeviceCountHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws