AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const ResourceSpec& GetDefaultResourceSpec() const{ return m_defaultResourceSpec; }
52 inline bool DefaultResourceSpecHasBeenSet() const { return m_defaultResourceSpecHasBeenSet; }
53 inline void SetDefaultResourceSpec(const ResourceSpec& value) { m_defaultResourceSpecHasBeenSet = true; m_defaultResourceSpec = value; }
54 inline void SetDefaultResourceSpec(ResourceSpec&& value) { m_defaultResourceSpecHasBeenSet = true; m_defaultResourceSpec = std::move(value); }
56 inline KernelGatewayAppSettings& WithDefaultResourceSpec(ResourceSpec&& value) { SetDefaultResourceSpec(std::move(value)); return *this;}
58
60
64 inline const Aws::Vector<CustomImage>& GetCustomImages() const{ return m_customImages; }
65 inline bool CustomImagesHasBeenSet() const { return m_customImagesHasBeenSet; }
66 inline void SetCustomImages(const Aws::Vector<CustomImage>& value) { m_customImagesHasBeenSet = true; m_customImages = value; }
67 inline void SetCustomImages(Aws::Vector<CustomImage>&& value) { m_customImagesHasBeenSet = true; m_customImages = std::move(value); }
69 inline KernelGatewayAppSettings& WithCustomImages(Aws::Vector<CustomImage>&& value) { SetCustomImages(std::move(value)); return *this;}
70 inline KernelGatewayAppSettings& AddCustomImages(const CustomImage& value) { m_customImagesHasBeenSet = true; m_customImages.push_back(value); return *this; }
71 inline KernelGatewayAppSettings& AddCustomImages(CustomImage&& value) { m_customImagesHasBeenSet = true; m_customImages.push_back(std::move(value)); return *this; }
73
75
80 inline const Aws::Vector<Aws::String>& GetLifecycleConfigArns() const{ return m_lifecycleConfigArns; }
81 inline bool LifecycleConfigArnsHasBeenSet() const { return m_lifecycleConfigArnsHasBeenSet; }
82 inline void SetLifecycleConfigArns(const Aws::Vector<Aws::String>& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns = value; }
83 inline void SetLifecycleConfigArns(Aws::Vector<Aws::String>&& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns = std::move(value); }
86 inline KernelGatewayAppSettings& AddLifecycleConfigArns(const Aws::String& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns.push_back(value); return *this; }
87 inline KernelGatewayAppSettings& AddLifecycleConfigArns(Aws::String&& value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns.push_back(std::move(value)); return *this; }
88 inline KernelGatewayAppSettings& AddLifecycleConfigArns(const char* value) { m_lifecycleConfigArnsHasBeenSet = true; m_lifecycleConfigArns.push_back(value); return *this; }
90 private:
91
92 ResourceSpec m_defaultResourceSpec;
93 bool m_defaultResourceSpecHasBeenSet = false;
94
95 Aws::Vector<CustomImage> m_customImages;
96 bool m_customImagesHasBeenSet = false;
97
98 Aws::Vector<Aws::String> m_lifecycleConfigArns;
99 bool m_lifecycleConfigArnsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace SageMaker
104} // namespace Aws
KernelGatewayAppSettings & WithLifecycleConfigArns(Aws::Vector< Aws::String > &&value)
KernelGatewayAppSettings & WithDefaultResourceSpec(ResourceSpec &&value)
KernelGatewayAppSettings & AddLifecycleConfigArns(const Aws::String &value)
void SetCustomImages(const Aws::Vector< CustomImage > &value)
KernelGatewayAppSettings & AddCustomImages(const CustomImage &value)
KernelGatewayAppSettings & AddCustomImages(CustomImage &&value)
AWS_SAGEMAKER_API KernelGatewayAppSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetLifecycleConfigArns() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
KernelGatewayAppSettings & WithCustomImages(const Aws::Vector< CustomImage > &value)
KernelGatewayAppSettings & AddLifecycleConfigArns(const char *value)
void SetLifecycleConfigArns(Aws::Vector< Aws::String > &&value)
AWS_SAGEMAKER_API KernelGatewayAppSettings(Aws::Utils::Json::JsonView jsonValue)
KernelGatewayAppSettings & AddLifecycleConfigArns(Aws::String &&value)
KernelGatewayAppSettings & WithCustomImages(Aws::Vector< CustomImage > &&value)
const Aws::Vector< CustomImage > & GetCustomImages() const
void SetLifecycleConfigArns(const Aws::Vector< Aws::String > &value)
KernelGatewayAppSettings & WithDefaultResourceSpec(const ResourceSpec &value)
KernelGatewayAppSettings & WithLifecycleConfigArns(const Aws::Vector< Aws::String > &value)
void SetCustomImages(Aws::Vector< CustomImage > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue