AWS SDK for C++

AWS SDK for C++ Version 1.11.804

Loading...
Searching...
No Matches
AIRecommendationDeploymentConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/AIRecommendationDeploymentS3Channel.h>
12#include <aws/sagemaker/model/AIRecommendationInstanceType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker {
24namespace Model {
25
33 public:
34 AWS_SAGEMAKER_API AIRecommendationDeploymentConfiguration() = default;
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<AIRecommendationDeploymentS3Channel>& GetS3() const { return m_s3; }
44 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
45 template <typename S3T = Aws::Vector<AIRecommendationDeploymentS3Channel>>
46 void SetS3(S3T&& value) {
47 m_s3HasBeenSet = true;
48 m_s3 = std::forward<S3T>(value);
49 }
50 template <typename S3T = Aws::Vector<AIRecommendationDeploymentS3Channel>>
52 SetS3(std::forward<S3T>(value));
53 return *this;
54 }
55 template <typename S3T = AIRecommendationDeploymentS3Channel>
57 m_s3HasBeenSet = true;
58 m_s3.emplace_back(std::forward<S3T>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetImageUri() const { return m_imageUri; }
68 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
69 template <typename ImageUriT = Aws::String>
70 void SetImageUri(ImageUriT&& value) {
71 m_imageUriHasBeenSet = true;
72 m_imageUri = std::forward<ImageUriT>(value);
73 }
74 template <typename ImageUriT = Aws::String>
76 SetImageUri(std::forward<ImageUriT>(value));
77 return *this;
78 }
80
82
85 inline AIRecommendationInstanceType GetInstanceType() const { return m_instanceType; }
86 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
88 m_instanceTypeHasBeenSet = true;
89 m_instanceType = value;
90 }
92 SetInstanceType(value);
93 return *this;
94 }
96
98
101 inline int GetInstanceCount() const { return m_instanceCount; }
102 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
103 inline void SetInstanceCount(int value) {
104 m_instanceCountHasBeenSet = true;
105 m_instanceCount = value;
106 }
108 SetInstanceCount(value);
109 return *this;
110 }
112
114
117 inline int GetCopyCountPerInstance() const { return m_copyCountPerInstance; }
118 inline bool CopyCountPerInstanceHasBeenSet() const { return m_copyCountPerInstanceHasBeenSet; }
119 inline void SetCopyCountPerInstance(int value) {
120 m_copyCountPerInstanceHasBeenSet = true;
121 m_copyCountPerInstance = value;
122 }
125 return *this;
126 }
128
130
133 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
134 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
135 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
136 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
137 m_environmentVariablesHasBeenSet = true;
138 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
139 }
140 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
142 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
143 return *this;
144 }
145 template <typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
146 AIRecommendationDeploymentConfiguration& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
147 m_environmentVariablesHasBeenSet = true;
148 m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
149 return *this;
150 }
152 private:
154
155 Aws::String m_imageUri;
156
158
159 int m_instanceCount{0};
160
161 int m_copyCountPerInstance{0};
162
163 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
164 bool m_s3HasBeenSet = false;
165 bool m_imageUriHasBeenSet = false;
166 bool m_instanceTypeHasBeenSet = false;
167 bool m_instanceCountHasBeenSet = false;
168 bool m_copyCountPerInstanceHasBeenSet = false;
169 bool m_environmentVariablesHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace SageMaker
174} // namespace Aws
AIRecommendationDeploymentConfiguration & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
AWS_SAGEMAKER_API AIRecommendationDeploymentConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AIRecommendationDeploymentS3Channel > & GetS3() const
AWS_SAGEMAKER_API AIRecommendationDeploymentConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AIRecommendationDeploymentConfiguration & WithInstanceType(AIRecommendationInstanceType value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AIRecommendationDeploymentConfiguration & WithEnvironmentVariables(EnvironmentVariablesT &&value)
AIRecommendationDeploymentConfiguration & WithImageUri(ImageUriT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue