AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
KernelGatewayImageConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/FileSystemConfig.h>
10#include <aws/sagemaker/model/KernelSpec.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
31 public:
32 AWS_SAGEMAKER_API KernelGatewayImageConfig() = default;
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<KernelSpec>& GetKernelSpecs() const { return m_kernelSpecs; }
42 inline bool KernelSpecsHasBeenSet() const { return m_kernelSpecsHasBeenSet; }
43 template <typename KernelSpecsT = Aws::Vector<KernelSpec>>
44 void SetKernelSpecs(KernelSpecsT&& value) {
45 m_kernelSpecsHasBeenSet = true;
46 m_kernelSpecs = std::forward<KernelSpecsT>(value);
47 }
48 template <typename KernelSpecsT = Aws::Vector<KernelSpec>>
50 SetKernelSpecs(std::forward<KernelSpecsT>(value));
51 return *this;
52 }
53 template <typename KernelSpecsT = KernelSpec>
55 m_kernelSpecsHasBeenSet = true;
56 m_kernelSpecs.emplace_back(std::forward<KernelSpecsT>(value));
57 return *this;
58 }
60
62
66 inline const FileSystemConfig& GetFileSystemConfig() const { return m_fileSystemConfig; }
67 inline bool FileSystemConfigHasBeenSet() const { return m_fileSystemConfigHasBeenSet; }
68 template <typename FileSystemConfigT = FileSystemConfig>
69 void SetFileSystemConfig(FileSystemConfigT&& value) {
70 m_fileSystemConfigHasBeenSet = true;
71 m_fileSystemConfig = std::forward<FileSystemConfigT>(value);
72 }
73 template <typename FileSystemConfigT = FileSystemConfig>
74 KernelGatewayImageConfig& WithFileSystemConfig(FileSystemConfigT&& value) {
75 SetFileSystemConfig(std::forward<FileSystemConfigT>(value));
76 return *this;
77 }
79 private:
80 Aws::Vector<KernelSpec> m_kernelSpecs;
81
82 FileSystemConfig m_fileSystemConfig;
83 bool m_kernelSpecsHasBeenSet = false;
84 bool m_fileSystemConfigHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace SageMaker
89} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
KernelGatewayImageConfig & WithKernelSpecs(KernelSpecsT &&value)
KernelGatewayImageConfig & WithFileSystemConfig(FileSystemConfigT &&value)
const Aws::Vector< KernelSpec > & GetKernelSpecs() const
AWS_SAGEMAKER_API KernelGatewayImageConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API KernelGatewayImageConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API KernelGatewayImageConfig()=default
KernelGatewayImageConfig & AddKernelSpecs(KernelSpecsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue