AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
KernelGatewayAppSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/CustomImage.h>
11#include <aws/sagemaker/model/ResourceSpec.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
31 public:
32 AWS_SAGEMAKER_API KernelGatewayAppSettings() = default;
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
46 inline const ResourceSpec& GetDefaultResourceSpec() const { return m_defaultResourceSpec; }
47 inline bool DefaultResourceSpecHasBeenSet() const { return m_defaultResourceSpecHasBeenSet; }
48 template <typename DefaultResourceSpecT = ResourceSpec>
49 void SetDefaultResourceSpec(DefaultResourceSpecT&& value) {
50 m_defaultResourceSpecHasBeenSet = true;
51 m_defaultResourceSpec = std::forward<DefaultResourceSpecT>(value);
52 }
53 template <typename DefaultResourceSpecT = ResourceSpec>
54 KernelGatewayAppSettings& WithDefaultResourceSpec(DefaultResourceSpecT&& value) {
55 SetDefaultResourceSpec(std::forward<DefaultResourceSpecT>(value));
56 return *this;
57 }
59
61
67 inline const Aws::Vector<CustomImage>& GetCustomImages() const { return m_customImages; }
68 inline bool CustomImagesHasBeenSet() const { return m_customImagesHasBeenSet; }
69 template <typename CustomImagesT = Aws::Vector<CustomImage>>
70 void SetCustomImages(CustomImagesT&& value) {
71 m_customImagesHasBeenSet = true;
72 m_customImages = std::forward<CustomImagesT>(value);
73 }
74 template <typename CustomImagesT = Aws::Vector<CustomImage>>
76 SetCustomImages(std::forward<CustomImagesT>(value));
77 return *this;
78 }
79 template <typename CustomImagesT = CustomImage>
80 KernelGatewayAppSettings& AddCustomImages(CustomImagesT&& value) {
81 m_customImagesHasBeenSet = true;
82 m_customImages.emplace_back(std::forward<CustomImagesT>(value));
83 return *this;
84 }
86
88
93 inline const Aws::Vector<Aws::String>& GetLifecycleConfigArns() const { return m_lifecycleConfigArns; }
94 inline bool LifecycleConfigArnsHasBeenSet() const { return m_lifecycleConfigArnsHasBeenSet; }
95 template <typename LifecycleConfigArnsT = Aws::Vector<Aws::String>>
96 void SetLifecycleConfigArns(LifecycleConfigArnsT&& value) {
97 m_lifecycleConfigArnsHasBeenSet = true;
98 m_lifecycleConfigArns = std::forward<LifecycleConfigArnsT>(value);
99 }
100 template <typename LifecycleConfigArnsT = Aws::Vector<Aws::String>>
101 KernelGatewayAppSettings& WithLifecycleConfigArns(LifecycleConfigArnsT&& value) {
102 SetLifecycleConfigArns(std::forward<LifecycleConfigArnsT>(value));
103 return *this;
104 }
105 template <typename LifecycleConfigArnsT = Aws::String>
106 KernelGatewayAppSettings& AddLifecycleConfigArns(LifecycleConfigArnsT&& value) {
107 m_lifecycleConfigArnsHasBeenSet = true;
108 m_lifecycleConfigArns.emplace_back(std::forward<LifecycleConfigArnsT>(value));
109 return *this;
110 }
112 private:
113 ResourceSpec m_defaultResourceSpec;
114
115 Aws::Vector<CustomImage> m_customImages;
116
117 Aws::Vector<Aws::String> m_lifecycleConfigArns;
118 bool m_defaultResourceSpecHasBeenSet = false;
119 bool m_customImagesHasBeenSet = false;
120 bool m_lifecycleConfigArnsHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace SageMaker
125} // namespace Aws
AWS_SAGEMAKER_API KernelGatewayAppSettings()=default
KernelGatewayAppSettings & WithDefaultResourceSpec(DefaultResourceSpecT &&value)
KernelGatewayAppSettings & AddCustomImages(CustomImagesT &&value)
void SetDefaultResourceSpec(DefaultResourceSpecT &&value)
AWS_SAGEMAKER_API KernelGatewayAppSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
KernelGatewayAppSettings & WithLifecycleConfigArns(LifecycleConfigArnsT &&value)
KernelGatewayAppSettings & WithCustomImages(CustomImagesT &&value)
const Aws::Vector< Aws::String > & GetLifecycleConfigArns() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLifecycleConfigArns(LifecycleConfigArnsT &&value)
AWS_SAGEMAKER_API KernelGatewayAppSettings(Aws::Utils::Json::JsonView jsonValue)
KernelGatewayAppSettings & AddLifecycleConfigArns(LifecycleConfigArnsT &&value)
const Aws::Vector< CustomImage > & GetCustomImages() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue