AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EdgeDeployment.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/DeploymentType.h>
10#include <aws/sagemaker-edge/model/FailureHandlingPolicy.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker-edge/model/Definition.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SagemakerEdgeManager
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_SAGEMAKEREDGEMANAGER_API EdgeDeployment() = default;
40 AWS_SAGEMAKEREDGEMANAGER_API EdgeDeployment(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SAGEMAKEREDGEMANAGER_API EdgeDeployment& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SAGEMAKEREDGEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetDeploymentName() const { return m_deploymentName; }
50 inline bool DeploymentNameHasBeenSet() const { return m_deploymentNameHasBeenSet; }
51 template<typename DeploymentNameT = Aws::String>
52 void SetDeploymentName(DeploymentNameT&& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = std::forward<DeploymentNameT>(value); }
53 template<typename DeploymentNameT = Aws::String>
54 EdgeDeployment& WithDeploymentName(DeploymentNameT&& value) { SetDeploymentName(std::forward<DeploymentNameT>(value)); return *this;}
56
58
61 inline DeploymentType GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(DeploymentType value) { m_typeHasBeenSet = true; m_type = value; }
64 inline EdgeDeployment& WithType(DeploymentType value) { SetType(value); return *this;}
66
68
72 inline FailureHandlingPolicy GetFailureHandlingPolicy() const { return m_failureHandlingPolicy; }
73 inline bool FailureHandlingPolicyHasBeenSet() const { return m_failureHandlingPolicyHasBeenSet; }
74 inline void SetFailureHandlingPolicy(FailureHandlingPolicy value) { m_failureHandlingPolicyHasBeenSet = true; m_failureHandlingPolicy = value; }
77
79
82 inline const Aws::Vector<Definition>& GetDefinitions() const { return m_definitions; }
83 inline bool DefinitionsHasBeenSet() const { return m_definitionsHasBeenSet; }
84 template<typename DefinitionsT = Aws::Vector<Definition>>
85 void SetDefinitions(DefinitionsT&& value) { m_definitionsHasBeenSet = true; m_definitions = std::forward<DefinitionsT>(value); }
86 template<typename DefinitionsT = Aws::Vector<Definition>>
87 EdgeDeployment& WithDefinitions(DefinitionsT&& value) { SetDefinitions(std::forward<DefinitionsT>(value)); return *this;}
88 template<typename DefinitionsT = Definition>
89 EdgeDeployment& AddDefinitions(DefinitionsT&& value) { m_definitionsHasBeenSet = true; m_definitions.emplace_back(std::forward<DefinitionsT>(value)); return *this; }
91 private:
92
93 Aws::String m_deploymentName;
94 bool m_deploymentNameHasBeenSet = false;
95
97 bool m_typeHasBeenSet = false;
98
100 bool m_failureHandlingPolicyHasBeenSet = false;
101
102 Aws::Vector<Definition> m_definitions;
103 bool m_definitionsHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace SagemakerEdgeManager
108} // 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