AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
KernelGatewayAppSettings.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/ResourceSpec.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/model/CustomImage.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_SAGEMAKER_API KernelGatewayAppSettings() = default;
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
52 inline const ResourceSpec& GetDefaultResourceSpec() const { return m_defaultResourceSpec; }
53 inline bool DefaultResourceSpecHasBeenSet() const { return m_defaultResourceSpecHasBeenSet; }
54 template<typename DefaultResourceSpecT = ResourceSpec>
55 void SetDefaultResourceSpec(DefaultResourceSpecT&& value) { m_defaultResourceSpecHasBeenSet = true; m_defaultResourceSpec = std::forward<DefaultResourceSpecT>(value); }
56 template<typename DefaultResourceSpecT = ResourceSpec>
57 KernelGatewayAppSettings& WithDefaultResourceSpec(DefaultResourceSpecT&& value) { SetDefaultResourceSpec(std::forward<DefaultResourceSpecT>(value)); return *this;}
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) { m_customImagesHasBeenSet = true; m_customImages = std::forward<CustomImagesT>(value); }
71 template<typename CustomImagesT = Aws::Vector<CustomImage>>
72 KernelGatewayAppSettings& WithCustomImages(CustomImagesT&& value) { SetCustomImages(std::forward<CustomImagesT>(value)); return *this;}
73 template<typename CustomImagesT = CustomImage>
74 KernelGatewayAppSettings& AddCustomImages(CustomImagesT&& value) { m_customImagesHasBeenSet = true; m_customImages.emplace_back(std::forward<CustomImagesT>(value)); return *this; }
76
78
83 inline const Aws::Vector<Aws::String>& GetLifecycleConfigArns() const { return m_lifecycleConfigArns; }
84 inline bool LifecycleConfigArnsHasBeenSet() const { return m_lifecycleConfigArnsHasBeenSet; }
85 template<typename LifecycleConfigArnsT = Aws::Vector<Aws::String>>
86 void SetLifecycleConfigArns(LifecycleConfigArnsT&& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns = std::forward<LifecycleConfigArnsT>(value); }
87 template<typename LifecycleConfigArnsT = Aws::Vector<Aws::String>>
88 KernelGatewayAppSettings& WithLifecycleConfigArns(LifecycleConfigArnsT&& value) { SetLifecycleConfigArns(std::forward<LifecycleConfigArnsT>(value)); return *this;}
89 template<typename LifecycleConfigArnsT = Aws::String>
90 KernelGatewayAppSettings& AddLifecycleConfigArns(LifecycleConfigArnsT&& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns.emplace_back(std::forward<LifecycleConfigArnsT>(value)); return *this; }
92 private:
93
94 ResourceSpec m_defaultResourceSpec;
95 bool m_defaultResourceSpecHasBeenSet = false;
96
97 Aws::Vector<CustomImage> m_customImages;
98 bool m_customImagesHasBeenSet = false;
99
100 Aws::Vector<Aws::String> m_lifecycleConfigArns;
101 bool m_lifecycleConfigArnsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace SageMaker
106} // 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