AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeploymentModel.h
1
6#pragma once
7#include <aws/sagemaker-edge/SagemakerEdgeManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker-edge/model/ModelState.h>
10#include <aws/sagemaker-edge/model/DeploymentStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SagemakerEdgeManager
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SAGEMAKEREDGEMANAGER_API DeploymentModel();
37 AWS_SAGEMAKEREDGEMANAGER_API DeploymentModel(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKEREDGEMANAGER_API DeploymentModel& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKEREDGEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetModelHandle() const{ return m_modelHandle; }
47 inline bool ModelHandleHasBeenSet() const { return m_modelHandleHasBeenSet; }
48 inline void SetModelHandle(const Aws::String& value) { m_modelHandleHasBeenSet = true; m_modelHandle = value; }
49 inline void SetModelHandle(Aws::String&& value) { m_modelHandleHasBeenSet = true; m_modelHandle = std::move(value); }
50 inline void SetModelHandle(const char* value) { m_modelHandleHasBeenSet = true; m_modelHandle.assign(value); }
51 inline DeploymentModel& WithModelHandle(const Aws::String& value) { SetModelHandle(value); return *this;}
52 inline DeploymentModel& WithModelHandle(Aws::String&& value) { SetModelHandle(std::move(value)); return *this;}
53 inline DeploymentModel& WithModelHandle(const char* value) { SetModelHandle(value); return *this;}
55
57
60 inline const Aws::String& GetModelName() const{ return m_modelName; }
61 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
62 inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
63 inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); }
64 inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
65 inline DeploymentModel& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
66 inline DeploymentModel& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;}
67 inline DeploymentModel& WithModelName(const char* value) { SetModelName(value); return *this;}
69
71
74 inline const Aws::String& GetModelVersion() const{ return m_modelVersion; }
75 inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; }
76 inline void SetModelVersion(const Aws::String& value) { m_modelVersionHasBeenSet = true; m_modelVersion = value; }
77 inline void SetModelVersion(Aws::String&& value) { m_modelVersionHasBeenSet = true; m_modelVersion = std::move(value); }
78 inline void SetModelVersion(const char* value) { m_modelVersionHasBeenSet = true; m_modelVersion.assign(value); }
79 inline DeploymentModel& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;}
80 inline DeploymentModel& WithModelVersion(Aws::String&& value) { SetModelVersion(std::move(value)); return *this;}
81 inline DeploymentModel& WithModelVersion(const char* value) { SetModelVersion(value); return *this;}
83
85
88 inline const ModelState& GetDesiredState() const{ return m_desiredState; }
89 inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
90 inline void SetDesiredState(const ModelState& value) { m_desiredStateHasBeenSet = true; m_desiredState = value; }
91 inline void SetDesiredState(ModelState&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::move(value); }
92 inline DeploymentModel& WithDesiredState(const ModelState& value) { SetDesiredState(value); return *this;}
93 inline DeploymentModel& WithDesiredState(ModelState&& value) { SetDesiredState(std::move(value)); return *this;}
95
97
100 inline const ModelState& GetState() const{ return m_state; }
101 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
102 inline void SetState(const ModelState& value) { m_stateHasBeenSet = true; m_state = value; }
103 inline void SetState(ModelState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
104 inline DeploymentModel& WithState(const ModelState& value) { SetState(value); return *this;}
105 inline DeploymentModel& WithState(ModelState&& value) { SetState(std::move(value)); return *this;}
107
109
112 inline const DeploymentStatus& GetStatus() const{ return m_status; }
113 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
114 inline void SetStatus(const DeploymentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
115 inline void SetStatus(DeploymentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
116 inline DeploymentModel& WithStatus(const DeploymentStatus& value) { SetStatus(value); return *this;}
117 inline DeploymentModel& WithStatus(DeploymentStatus&& value) { SetStatus(std::move(value)); return *this;}
119
121
124 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
125 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
126 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
127 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
128 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
129 inline DeploymentModel& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
130 inline DeploymentModel& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
131 inline DeploymentModel& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
133
135
138 inline const Aws::String& GetRollbackFailureReason() const{ return m_rollbackFailureReason; }
139 inline bool RollbackFailureReasonHasBeenSet() const { return m_rollbackFailureReasonHasBeenSet; }
140 inline void SetRollbackFailureReason(const Aws::String& value) { m_rollbackFailureReasonHasBeenSet = true; m_rollbackFailureReason = value; }
141 inline void SetRollbackFailureReason(Aws::String&& value) { m_rollbackFailureReasonHasBeenSet = true; m_rollbackFailureReason = std::move(value); }
142 inline void SetRollbackFailureReason(const char* value) { m_rollbackFailureReasonHasBeenSet = true; m_rollbackFailureReason.assign(value); }
144 inline DeploymentModel& WithRollbackFailureReason(Aws::String&& value) { SetRollbackFailureReason(std::move(value)); return *this;}
145 inline DeploymentModel& WithRollbackFailureReason(const char* value) { SetRollbackFailureReason(value); return *this;}
147 private:
148
149 Aws::String m_modelHandle;
150 bool m_modelHandleHasBeenSet = false;
151
152 Aws::String m_modelName;
153 bool m_modelNameHasBeenSet = false;
154
155 Aws::String m_modelVersion;
156 bool m_modelVersionHasBeenSet = false;
157
158 ModelState m_desiredState;
159 bool m_desiredStateHasBeenSet = false;
160
161 ModelState m_state;
162 bool m_stateHasBeenSet = false;
163
164 DeploymentStatus m_status;
165 bool m_statusHasBeenSet = false;
166
167 Aws::String m_statusReason;
168 bool m_statusReasonHasBeenSet = false;
169
170 Aws::String m_rollbackFailureReason;
171 bool m_rollbackFailureReasonHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace SagemakerEdgeManager
176} // namespace Aws
DeploymentModel & WithModelHandle(Aws::String &&value)
DeploymentModel & WithState(ModelState &&value)
DeploymentModel & WithModelHandle(const Aws::String &value)
DeploymentModel & WithDesiredState(const ModelState &value)
DeploymentModel & WithStatus(DeploymentStatus &&value)
DeploymentModel & WithRollbackFailureReason(const Aws::String &value)
DeploymentModel & WithStatusReason(Aws::String &&value)
DeploymentModel & WithModelName(Aws::String &&value)
DeploymentModel & WithModelName(const Aws::String &value)
void SetRollbackFailureReason(const Aws::String &value)
DeploymentModel & WithStatus(const DeploymentStatus &value)
DeploymentModel & WithRollbackFailureReason(const char *value)
DeploymentModel & WithRollbackFailureReason(Aws::String &&value)
DeploymentModel & WithDesiredState(ModelState &&value)
DeploymentModel & WithModelName(const char *value)
DeploymentModel & WithModelHandle(const char *value)
AWS_SAGEMAKEREDGEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentModel & WithStatusReason(const char *value)
DeploymentModel & WithModelVersion(const char *value)
AWS_SAGEMAKEREDGEMANAGER_API DeploymentModel & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentModel & WithStatusReason(const Aws::String &value)
DeploymentModel & WithState(const ModelState &value)
DeploymentModel & WithModelVersion(Aws::String &&value)
AWS_SAGEMAKEREDGEMANAGER_API DeploymentModel()
void SetStatus(const DeploymentStatus &value)
DeploymentModel & WithModelVersion(const Aws::String &value)
AWS_SAGEMAKEREDGEMANAGER_API DeploymentModel(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue