AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TransformJobDefinition.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/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/BatchStrategy.h>
11#include <aws/sagemaker/model/TransformInput.h>
12#include <aws/sagemaker/model/TransformOutput.h>
13#include <aws/sagemaker/model/TransformResources.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker {
25namespace Model {
26
34 public:
35 AWS_SAGEMAKER_API TransformJobDefinition() = default;
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline int GetMaxConcurrentTransforms() const { return m_maxConcurrentTransforms; }
46 inline bool MaxConcurrentTransformsHasBeenSet() const { return m_maxConcurrentTransformsHasBeenSet; }
47 inline void SetMaxConcurrentTransforms(int value) {
48 m_maxConcurrentTransformsHasBeenSet = true;
49 m_maxConcurrentTransforms = value;
50 }
53 return *this;
54 }
56
58
62 inline int GetMaxPayloadInMB() const { return m_maxPayloadInMB; }
63 inline bool MaxPayloadInMBHasBeenSet() const { return m_maxPayloadInMBHasBeenSet; }
64 inline void SetMaxPayloadInMB(int value) {
65 m_maxPayloadInMBHasBeenSet = true;
66 m_maxPayloadInMB = value;
67 }
69 SetMaxPayloadInMB(value);
70 return *this;
71 }
73
75
81 inline BatchStrategy GetBatchStrategy() const { return m_batchStrategy; }
82 inline bool BatchStrategyHasBeenSet() const { return m_batchStrategyHasBeenSet; }
83 inline void SetBatchStrategy(BatchStrategy value) {
84 m_batchStrategyHasBeenSet = true;
85 m_batchStrategy = value;
86 }
88 SetBatchStrategy(value);
89 return *this;
90 }
92
94
98 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
99 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
100 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
101 void SetEnvironment(EnvironmentT&& value) {
102 m_environmentHasBeenSet = true;
103 m_environment = std::forward<EnvironmentT>(value);
104 }
105 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
107 SetEnvironment(std::forward<EnvironmentT>(value));
108 return *this;
109 }
110 template <typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
111 TransformJobDefinition& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
112 m_environmentHasBeenSet = true;
113 m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value));
114 return *this;
115 }
117
119
123 inline const TransformInput& GetTransformInput() const { return m_transformInput; }
124 inline bool TransformInputHasBeenSet() const { return m_transformInputHasBeenSet; }
125 template <typename TransformInputT = TransformInput>
126 void SetTransformInput(TransformInputT&& value) {
127 m_transformInputHasBeenSet = true;
128 m_transformInput = std::forward<TransformInputT>(value);
129 }
130 template <typename TransformInputT = TransformInput>
131 TransformJobDefinition& WithTransformInput(TransformInputT&& value) {
132 SetTransformInput(std::forward<TransformInputT>(value));
133 return *this;
134 }
136
138
142 inline const TransformOutput& GetTransformOutput() const { return m_transformOutput; }
143 inline bool TransformOutputHasBeenSet() const { return m_transformOutputHasBeenSet; }
144 template <typename TransformOutputT = TransformOutput>
145 void SetTransformOutput(TransformOutputT&& value) {
146 m_transformOutputHasBeenSet = true;
147 m_transformOutput = std::forward<TransformOutputT>(value);
148 }
149 template <typename TransformOutputT = TransformOutput>
150 TransformJobDefinition& WithTransformOutput(TransformOutputT&& value) {
151 SetTransformOutput(std::forward<TransformOutputT>(value));
152 return *this;
153 }
155
157
160 inline const TransformResources& GetTransformResources() const { return m_transformResources; }
161 inline bool TransformResourcesHasBeenSet() const { return m_transformResourcesHasBeenSet; }
162 template <typename TransformResourcesT = TransformResources>
163 void SetTransformResources(TransformResourcesT&& value) {
164 m_transformResourcesHasBeenSet = true;
165 m_transformResources = std::forward<TransformResourcesT>(value);
166 }
167 template <typename TransformResourcesT = TransformResources>
168 TransformJobDefinition& WithTransformResources(TransformResourcesT&& value) {
169 SetTransformResources(std::forward<TransformResourcesT>(value));
170 return *this;
171 }
173 private:
174 int m_maxConcurrentTransforms{0};
175
176 int m_maxPayloadInMB{0};
177
178 BatchStrategy m_batchStrategy{BatchStrategy::NOT_SET};
179
181
182 TransformInput m_transformInput;
183
184 TransformOutput m_transformOutput;
185
186 TransformResources m_transformResources;
187 bool m_maxConcurrentTransformsHasBeenSet = false;
188 bool m_maxPayloadInMBHasBeenSet = false;
189 bool m_batchStrategyHasBeenSet = false;
190 bool m_environmentHasBeenSet = false;
191 bool m_transformInputHasBeenSet = false;
192 bool m_transformOutputHasBeenSet = false;
193 bool m_transformResourcesHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace SageMaker
198} // namespace Aws
TransformJobDefinition & WithEnvironment(EnvironmentT &&value)
TransformJobDefinition & WithMaxConcurrentTransforms(int value)
AWS_SAGEMAKER_API TransformJobDefinition(Aws::Utils::Json::JsonView jsonValue)
TransformJobDefinition & WithMaxPayloadInMB(int value)
TransformJobDefinition & WithTransformInput(TransformInputT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API TransformJobDefinition()=default
TransformJobDefinition & WithTransformResources(TransformResourcesT &&value)
AWS_SAGEMAKER_API TransformJobDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetEnvironment() const
TransformJobDefinition & WithBatchStrategy(BatchStrategy value)
TransformJobDefinition & AddEnvironment(EnvironmentKeyT &&key, EnvironmentValueT &&value)
const TransformResources & GetTransformResources() const
TransformJobDefinition & WithTransformOutput(TransformOutputT &&value)
void SetTransformResources(TransformResourcesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue