AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EdgeDeployment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker-edge/SagemakerEdgeManager_EXPORTS.h>
10#include <aws/sagemaker-edge/model/Definition.h>
11#include <aws/sagemaker-edge/model/DeploymentType.h>
12#include <aws/sagemaker-edge/model/FailureHandlingPolicy.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SagemakerEdgeManager {
24namespace Model {
25
33 public:
34 AWS_SAGEMAKEREDGEMANAGER_API EdgeDeployment() = default;
35 AWS_SAGEMAKEREDGEMANAGER_API EdgeDeployment(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SAGEMAKEREDGEMANAGER_API EdgeDeployment& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKEREDGEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetDeploymentName() const { return m_deploymentName; }
44 inline bool DeploymentNameHasBeenSet() const { return m_deploymentNameHasBeenSet; }
45 template <typename DeploymentNameT = Aws::String>
46 void SetDeploymentName(DeploymentNameT&& value) {
47 m_deploymentNameHasBeenSet = true;
48 m_deploymentName = std::forward<DeploymentNameT>(value);
49 }
50 template <typename DeploymentNameT = Aws::String>
51 EdgeDeployment& WithDeploymentName(DeploymentNameT&& value) {
52 SetDeploymentName(std::forward<DeploymentNameT>(value));
53 return *this;
54 }
56
58
61 inline DeploymentType GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(DeploymentType value) {
64 m_typeHasBeenSet = true;
65 m_type = value;
66 }
68 SetType(value);
69 return *this;
70 }
72
74
78 inline FailureHandlingPolicy GetFailureHandlingPolicy() const { return m_failureHandlingPolicy; }
79 inline bool FailureHandlingPolicyHasBeenSet() const { return m_failureHandlingPolicyHasBeenSet; }
81 m_failureHandlingPolicyHasBeenSet = true;
82 m_failureHandlingPolicy = value;
83 }
86 return *this;
87 }
89
91
94 inline const Aws::Vector<Definition>& GetDefinitions() const { return m_definitions; }
95 inline bool DefinitionsHasBeenSet() const { return m_definitionsHasBeenSet; }
96 template <typename DefinitionsT = Aws::Vector<Definition>>
97 void SetDefinitions(DefinitionsT&& value) {
98 m_definitionsHasBeenSet = true;
99 m_definitions = std::forward<DefinitionsT>(value);
100 }
101 template <typename DefinitionsT = Aws::Vector<Definition>>
102 EdgeDeployment& WithDefinitions(DefinitionsT&& value) {
103 SetDefinitions(std::forward<DefinitionsT>(value));
104 return *this;
105 }
106 template <typename DefinitionsT = Definition>
107 EdgeDeployment& AddDefinitions(DefinitionsT&& value) {
108 m_definitionsHasBeenSet = true;
109 m_definitions.emplace_back(std::forward<DefinitionsT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_deploymentName;
115
117
119
120 Aws::Vector<Definition> m_definitions;
121 bool m_deploymentNameHasBeenSet = false;
122 bool m_typeHasBeenSet = false;
123 bool m_failureHandlingPolicyHasBeenSet = false;
124 bool m_definitionsHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace SagemakerEdgeManager
129} // namespace Aws
void SetDeploymentName(DeploymentNameT &&value)
AWS_SAGEMAKEREDGEMANAGER_API EdgeDeployment(Aws::Utils::Json::JsonView jsonValue)
EdgeDeployment & WithDefinitions(DefinitionsT &&value)
AWS_SAGEMAKEREDGEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKEREDGEMANAGER_API EdgeDeployment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKEREDGEMANAGER_API EdgeDeployment()=default
EdgeDeployment & AddDefinitions(DefinitionsT &&value)
EdgeDeployment & WithType(DeploymentType value)
void SetFailureHandlingPolicy(FailureHandlingPolicy value)
EdgeDeployment & WithDeploymentName(DeploymentNameT &&value)
FailureHandlingPolicy GetFailureHandlingPolicy() const
const Aws::Vector< Definition > & GetDefinitions() const
EdgeDeployment & WithFailureHandlingPolicy(FailureHandlingPolicy value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue