AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDeploymentName(const Aws::String& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = value; }
52 inline void SetDeploymentName(Aws::String&& value) { m_deploymentNameHasBeenSet = true; m_deploymentName = std::move(value); }
53 inline void SetDeploymentName(const char* value) { m_deploymentNameHasBeenSet = true; m_deploymentName.assign(value); }
54 inline EdgeDeployment& WithDeploymentName(const Aws::String& value) { SetDeploymentName(value); return *this;}
55 inline EdgeDeployment& WithDeploymentName(Aws::String&& value) { SetDeploymentName(std::move(value)); return *this;}
56 inline EdgeDeployment& WithDeploymentName(const char* value) { SetDeploymentName(value); return *this;}
58
60
63 inline const DeploymentType& GetType() const{ return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 inline void SetType(const DeploymentType& value) { m_typeHasBeenSet = true; m_type = value; }
66 inline void SetType(DeploymentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
67 inline EdgeDeployment& WithType(const DeploymentType& value) { SetType(value); return *this;}
68 inline EdgeDeployment& WithType(DeploymentType&& value) { SetType(std::move(value)); return *this;}
70
72
76 inline const FailureHandlingPolicy& GetFailureHandlingPolicy() const{ return m_failureHandlingPolicy; }
77 inline bool FailureHandlingPolicyHasBeenSet() const { return m_failureHandlingPolicyHasBeenSet; }
78 inline void SetFailureHandlingPolicy(const FailureHandlingPolicy& value) { m_failureHandlingPolicyHasBeenSet = true; m_failureHandlingPolicy = value; }
79 inline void SetFailureHandlingPolicy(FailureHandlingPolicy&& value) { m_failureHandlingPolicyHasBeenSet = true; m_failureHandlingPolicy = std::move(value); }
83
85
88 inline const Aws::Vector<Definition>& GetDefinitions() const{ return m_definitions; }
89 inline bool DefinitionsHasBeenSet() const { return m_definitionsHasBeenSet; }
90 inline void SetDefinitions(const Aws::Vector<Definition>& value) { m_definitionsHasBeenSet = true; m_definitions = value; }
91 inline void SetDefinitions(Aws::Vector<Definition>&& value) { m_definitionsHasBeenSet = true; m_definitions = std::move(value); }
92 inline EdgeDeployment& WithDefinitions(const Aws::Vector<Definition>& value) { SetDefinitions(value); return *this;}
93 inline EdgeDeployment& WithDefinitions(Aws::Vector<Definition>&& value) { SetDefinitions(std::move(value)); return *this;}
94 inline EdgeDeployment& AddDefinitions(const Definition& value) { m_definitionsHasBeenSet = true; m_definitions.push_back(value); return *this; }
95 inline EdgeDeployment& AddDefinitions(Definition&& value) { m_definitionsHasBeenSet = true; m_definitions.push_back(std::move(value)); return *this; }
97 private:
98
99 Aws::String m_deploymentName;
100 bool m_deploymentNameHasBeenSet = false;
101
102 DeploymentType m_type;
103 bool m_typeHasBeenSet = false;
104
105 FailureHandlingPolicy m_failureHandlingPolicy;
106 bool m_failureHandlingPolicyHasBeenSet = false;
107
108 Aws::Vector<Definition> m_definitions;
109 bool m_definitionsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SagemakerEdgeManager
114} // namespace Aws
void SetDefinitions(Aws::Vector< Definition > &&value)
EdgeDeployment & AddDefinitions(const Definition &value)
AWS_SAGEMAKEREDGEMANAGER_API EdgeDeployment(Aws::Utils::Json::JsonView jsonValue)
EdgeDeployment & WithType(DeploymentType &&value)
EdgeDeployment & WithDeploymentName(const char *value)
const FailureHandlingPolicy & GetFailureHandlingPolicy() const
void SetDeploymentName(const Aws::String &value)
EdgeDeployment & WithDefinitions(Aws::Vector< Definition > &&value)
EdgeDeployment & WithDeploymentName(Aws::String &&value)
EdgeDeployment & WithDefinitions(const Aws::Vector< Definition > &value)
void SetType(const DeploymentType &value)
AWS_SAGEMAKEREDGEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFailureHandlingPolicy(FailureHandlingPolicy &&value)
EdgeDeployment & AddDefinitions(Definition &&value)
AWS_SAGEMAKEREDGEMANAGER_API EdgeDeployment()
AWS_SAGEMAKEREDGEMANAGER_API EdgeDeployment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFailureHandlingPolicy(const FailureHandlingPolicy &value)
EdgeDeployment & WithDeploymentName(const Aws::String &value)
EdgeDeployment & WithFailureHandlingPolicy(const FailureHandlingPolicy &value)
EdgeDeployment & WithFailureHandlingPolicy(FailureHandlingPolicy &&value)
void SetDefinitions(const Aws::Vector< Definition > &value)
const Aws::Vector< Definition > & GetDefinitions() const
EdgeDeployment & WithType(const DeploymentType &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