AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
EdgeModelStat.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker {
20namespace Model {
21
28 public:
29 AWS_SAGEMAKER_API EdgeModelStat() = default;
30 AWS_SAGEMAKER_API EdgeModelStat(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SAGEMAKER_API EdgeModelStat& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetModelName() const { return m_modelName; }
39 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
40 template <typename ModelNameT = Aws::String>
41 void SetModelName(ModelNameT&& value) {
42 m_modelNameHasBeenSet = true;
43 m_modelName = std::forward<ModelNameT>(value);
44 }
45 template <typename ModelNameT = Aws::String>
46 EdgeModelStat& WithModelName(ModelNameT&& value) {
47 SetModelName(std::forward<ModelNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetModelVersion() const { return m_modelVersion; }
57 inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; }
58 template <typename ModelVersionT = Aws::String>
59 void SetModelVersion(ModelVersionT&& value) {
60 m_modelVersionHasBeenSet = true;
61 m_modelVersion = std::forward<ModelVersionT>(value);
62 }
63 template <typename ModelVersionT = Aws::String>
64 EdgeModelStat& WithModelVersion(ModelVersionT&& value) {
65 SetModelVersion(std::forward<ModelVersionT>(value));
66 return *this;
67 }
69
71
75 inline long long GetOfflineDeviceCount() const { return m_offlineDeviceCount; }
76 inline bool OfflineDeviceCountHasBeenSet() const { return m_offlineDeviceCountHasBeenSet; }
77 inline void SetOfflineDeviceCount(long long value) {
78 m_offlineDeviceCountHasBeenSet = true;
79 m_offlineDeviceCount = value;
80 }
81 inline EdgeModelStat& WithOfflineDeviceCount(long long value) {
83 return *this;
84 }
86
88
92 inline long long GetConnectedDeviceCount() const { return m_connectedDeviceCount; }
93 inline bool ConnectedDeviceCountHasBeenSet() const { return m_connectedDeviceCountHasBeenSet; }
94 inline void SetConnectedDeviceCount(long long value) {
95 m_connectedDeviceCountHasBeenSet = true;
96 m_connectedDeviceCount = value;
97 }
98 inline EdgeModelStat& WithConnectedDeviceCount(long long value) {
100 return *this;
101 }
103
105
109 inline long long GetActiveDeviceCount() const { return m_activeDeviceCount; }
110 inline bool ActiveDeviceCountHasBeenSet() const { return m_activeDeviceCountHasBeenSet; }
111 inline void SetActiveDeviceCount(long long value) {
112 m_activeDeviceCountHasBeenSet = true;
113 m_activeDeviceCount = value;
114 }
115 inline EdgeModelStat& WithActiveDeviceCount(long long value) {
117 return *this;
118 }
120
122
126 inline long long GetSamplingDeviceCount() const { return m_samplingDeviceCount; }
127 inline bool SamplingDeviceCountHasBeenSet() const { return m_samplingDeviceCountHasBeenSet; }
128 inline void SetSamplingDeviceCount(long long value) {
129 m_samplingDeviceCountHasBeenSet = true;
130 m_samplingDeviceCount = value;
131 }
132 inline EdgeModelStat& WithSamplingDeviceCount(long long value) {
134 return *this;
135 }
137 private:
138 Aws::String m_modelName;
139
140 Aws::String m_modelVersion;
141
142 long long m_offlineDeviceCount{0};
143
144 long long m_connectedDeviceCount{0};
145
146 long long m_activeDeviceCount{0};
147
148 long long m_samplingDeviceCount{0};
149 bool m_modelNameHasBeenSet = false;
150 bool m_modelVersionHasBeenSet = false;
151 bool m_offlineDeviceCountHasBeenSet = false;
152 bool m_connectedDeviceCountHasBeenSet = false;
153 bool m_activeDeviceCountHasBeenSet = false;
154 bool m_samplingDeviceCountHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace SageMaker
159} // namespace Aws
void SetModelVersion(ModelVersionT &&value)
AWS_SAGEMAKER_API EdgeModelStat & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetActiveDeviceCount(long long value)
AWS_SAGEMAKER_API EdgeModelStat()=default
const Aws::String & GetModelName() const
AWS_SAGEMAKER_API EdgeModelStat(Aws::Utils::Json::JsonView jsonValue)
EdgeModelStat & WithConnectedDeviceCount(long long value)
void SetSamplingDeviceCount(long long value)
EdgeModelStat & WithSamplingDeviceCount(long long value)
EdgeModelStat & WithActiveDeviceCount(long long value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetModelName(ModelNameT &&value)
void SetConnectedDeviceCount(long long value)
void SetOfflineDeviceCount(long long value)
EdgeModelStat & WithModelName(ModelNameT &&value)
const Aws::String & GetModelVersion() const
EdgeModelStat & WithOfflineDeviceCount(long long value)
EdgeModelStat & WithModelVersion(ModelVersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue