AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
OutputConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/TargetDevice.h>
10#include <aws/sagemaker/model/TargetPlatform.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
37 public:
38 AWS_SAGEMAKER_API OutputConfig() = default;
39 AWS_SAGEMAKER_API OutputConfig(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API OutputConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
48 inline const Aws::String& GetS3OutputLocation() const { return m_s3OutputLocation; }
49 inline bool S3OutputLocationHasBeenSet() const { return m_s3OutputLocationHasBeenSet; }
50 template <typename S3OutputLocationT = Aws::String>
51 void SetS3OutputLocation(S3OutputLocationT&& value) {
52 m_s3OutputLocationHasBeenSet = true;
53 m_s3OutputLocation = std::forward<S3OutputLocationT>(value);
54 }
55 template <typename S3OutputLocationT = Aws::String>
56 OutputConfig& WithS3OutputLocation(S3OutputLocationT&& value) {
57 SetS3OutputLocation(std::forward<S3OutputLocationT>(value));
58 return *this;
59 }
61
63
73 inline TargetDevice GetTargetDevice() const { return m_targetDevice; }
74 inline bool TargetDeviceHasBeenSet() const { return m_targetDeviceHasBeenSet; }
75 inline void SetTargetDevice(TargetDevice value) {
76 m_targetDeviceHasBeenSet = true;
77 m_targetDevice = value;
78 }
80 SetTargetDevice(value);
81 return *this;
82 }
84
86
108 inline const TargetPlatform& GetTargetPlatform() const { return m_targetPlatform; }
109 inline bool TargetPlatformHasBeenSet() const { return m_targetPlatformHasBeenSet; }
110 template <typename TargetPlatformT = TargetPlatform>
111 void SetTargetPlatform(TargetPlatformT&& value) {
112 m_targetPlatformHasBeenSet = true;
113 m_targetPlatform = std::forward<TargetPlatformT>(value);
114 }
115 template <typename TargetPlatformT = TargetPlatform>
116 OutputConfig& WithTargetPlatform(TargetPlatformT&& value) {
117 SetTargetPlatform(std::forward<TargetPlatformT>(value));
118 return *this;
119 }
121
123
170 inline const Aws::String& GetCompilerOptions() const { return m_compilerOptions; }
171 inline bool CompilerOptionsHasBeenSet() const { return m_compilerOptionsHasBeenSet; }
172 template <typename CompilerOptionsT = Aws::String>
173 void SetCompilerOptions(CompilerOptionsT&& value) {
174 m_compilerOptionsHasBeenSet = true;
175 m_compilerOptions = std::forward<CompilerOptionsT>(value);
176 }
177 template <typename CompilerOptionsT = Aws::String>
178 OutputConfig& WithCompilerOptions(CompilerOptionsT&& value) {
179 SetCompilerOptions(std::forward<CompilerOptionsT>(value));
180 return *this;
181 }
183
185
202 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
203 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
204 template <typename KmsKeyIdT = Aws::String>
205 void SetKmsKeyId(KmsKeyIdT&& value) {
206 m_kmsKeyIdHasBeenSet = true;
207 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
208 }
209 template <typename KmsKeyIdT = Aws::String>
210 OutputConfig& WithKmsKeyId(KmsKeyIdT&& value) {
211 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
212 return *this;
213 }
215 private:
216 Aws::String m_s3OutputLocation;
217
218 TargetDevice m_targetDevice{TargetDevice::NOT_SET};
219
220 TargetPlatform m_targetPlatform;
221
222 Aws::String m_compilerOptions;
223
224 Aws::String m_kmsKeyId;
225 bool m_s3OutputLocationHasBeenSet = false;
226 bool m_targetDeviceHasBeenSet = false;
227 bool m_targetPlatformHasBeenSet = false;
228 bool m_compilerOptionsHasBeenSet = false;
229 bool m_kmsKeyIdHasBeenSet = false;
230};
231
232} // namespace Model
233} // namespace SageMaker
234} // namespace Aws
OutputConfig & WithTargetPlatform(TargetPlatformT &&value)
OutputConfig & WithTargetDevice(TargetDevice value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
OutputConfig & WithCompilerOptions(CompilerOptionsT &&value)
void SetKmsKeyId(KmsKeyIdT &&value)
const Aws::String & GetS3OutputLocation() const
void SetCompilerOptions(CompilerOptionsT &&value)
AWS_SAGEMAKER_API OutputConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const TargetPlatform & GetTargetPlatform() const
const Aws::String & GetCompilerOptions() const
void SetTargetDevice(TargetDevice value)
const Aws::String & GetKmsKeyId() const
OutputConfig & WithKmsKeyId(KmsKeyIdT &&value)
void SetTargetPlatform(TargetPlatformT &&value)
AWS_SAGEMAKER_API OutputConfig()=default
OutputConfig & WithS3OutputLocation(S3OutputLocationT &&value)
TargetDevice GetTargetDevice() const
AWS_SAGEMAKER_API OutputConfig(Aws::Utils::Json::JsonView jsonValue)
void SetS3OutputLocation(S3OutputLocationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue