AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TransformJobDefinition.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/BatchStrategy.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/sagemaker/model/TransformInput.h>
11#include <aws/sagemaker/model/TransformOutput.h>
12#include <aws/sagemaker/model/TransformResources.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_SAGEMAKER_API TransformJobDefinition() = default;
43 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline int GetMaxConcurrentTransforms() const { return m_maxConcurrentTransforms; }
52 inline bool MaxConcurrentTransformsHasBeenSet() const { return m_maxConcurrentTransformsHasBeenSet; }
53 inline void SetMaxConcurrentTransforms(int value) { m_maxConcurrentTransformsHasBeenSet = true; m_maxConcurrentTransforms = value; }
56
58
62 inline int GetMaxPayloadInMB() const { return m_maxPayloadInMB; }
63 inline bool MaxPayloadInMBHasBeenSet() const { return m_maxPayloadInMBHasBeenSet; }
64 inline void SetMaxPayloadInMB(int value) { m_maxPayloadInMBHasBeenSet = true; m_maxPayloadInMB = value; }
65 inline TransformJobDefinition& WithMaxPayloadInMB(int value) { SetMaxPayloadInMB(value); return *this;}
67
69
75 inline BatchStrategy GetBatchStrategy() const { return m_batchStrategy; }
76 inline bool BatchStrategyHasBeenSet() const { return m_batchStrategyHasBeenSet; }
77 inline void SetBatchStrategy(BatchStrategy value) { m_batchStrategyHasBeenSet = true; m_batchStrategy = value; }
80
82
86 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
87 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
88 template<typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
89 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
90 template<typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
91 TransformJobDefinition& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
92 template<typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
93 TransformJobDefinition& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
94 m_environmentHasBeenSet = true; m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value)); return *this;
95 }
97
99
103 inline const TransformInput& GetTransformInput() const { return m_transformInput; }
104 inline bool TransformInputHasBeenSet() const { return m_transformInputHasBeenSet; }
105 template<typename TransformInputT = TransformInput>
106 void SetTransformInput(TransformInputT&& value) { m_transformInputHasBeenSet = true; m_transformInput = std::forward<TransformInputT>(value); }
107 template<typename TransformInputT = TransformInput>
108 TransformJobDefinition& WithTransformInput(TransformInputT&& value) { SetTransformInput(std::forward<TransformInputT>(value)); return *this;}
110
112
116 inline const TransformOutput& GetTransformOutput() const { return m_transformOutput; }
117 inline bool TransformOutputHasBeenSet() const { return m_transformOutputHasBeenSet; }
118 template<typename TransformOutputT = TransformOutput>
119 void SetTransformOutput(TransformOutputT&& value) { m_transformOutputHasBeenSet = true; m_transformOutput = std::forward<TransformOutputT>(value); }
120 template<typename TransformOutputT = TransformOutput>
121 TransformJobDefinition& WithTransformOutput(TransformOutputT&& value) { SetTransformOutput(std::forward<TransformOutputT>(value)); return *this;}
123
125
128 inline const TransformResources& GetTransformResources() const { return m_transformResources; }
129 inline bool TransformResourcesHasBeenSet() const { return m_transformResourcesHasBeenSet; }
130 template<typename TransformResourcesT = TransformResources>
131 void SetTransformResources(TransformResourcesT&& value) { m_transformResourcesHasBeenSet = true; m_transformResources = std::forward<TransformResourcesT>(value); }
132 template<typename TransformResourcesT = TransformResources>
133 TransformJobDefinition& WithTransformResources(TransformResourcesT&& value) { SetTransformResources(std::forward<TransformResourcesT>(value)); return *this;}
135 private:
136
137 int m_maxConcurrentTransforms{0};
138 bool m_maxConcurrentTransformsHasBeenSet = false;
139
140 int m_maxPayloadInMB{0};
141 bool m_maxPayloadInMBHasBeenSet = false;
142
143 BatchStrategy m_batchStrategy{BatchStrategy::NOT_SET};
144 bool m_batchStrategyHasBeenSet = false;
145
147 bool m_environmentHasBeenSet = false;
148
149 TransformInput m_transformInput;
150 bool m_transformInputHasBeenSet = false;
151
152 TransformOutput m_transformOutput;
153 bool m_transformOutputHasBeenSet = false;
154
155 TransformResources m_transformResources;
156 bool m_transformResourcesHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace SageMaker
161} // 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