AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateAppImageConfigRequest.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/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/CodeEditorAppImageConfig.h>
12#include <aws/sagemaker/model/JupyterLabAppImageConfig.h>
13#include <aws/sagemaker/model/KernelGatewayImageConfig.h>
14#include <aws/sagemaker/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SageMaker {
20namespace Model {
21
25 public:
26 AWS_SAGEMAKER_API CreateAppImageConfigRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateAppImageConfig"; }
33
34 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
35
37
39
42 inline const Aws::String& GetAppImageConfigName() const { return m_appImageConfigName; }
43 inline bool AppImageConfigNameHasBeenSet() const { return m_appImageConfigNameHasBeenSet; }
44 template <typename AppImageConfigNameT = Aws::String>
45 void SetAppImageConfigName(AppImageConfigNameT&& value) {
46 m_appImageConfigNameHasBeenSet = true;
47 m_appImageConfigName = std::forward<AppImageConfigNameT>(value);
48 }
49 template <typename AppImageConfigNameT = Aws::String>
51 SetAppImageConfigName(std::forward<AppImageConfigNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
61 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
62 template <typename TagsT = Aws::Vector<Tag>>
63 void SetTags(TagsT&& value) {
64 m_tagsHasBeenSet = true;
65 m_tags = std::forward<TagsT>(value);
66 }
67 template <typename TagsT = Aws::Vector<Tag>>
69 SetTags(std::forward<TagsT>(value));
70 return *this;
71 }
72 template <typename TagsT = Tag>
74 m_tagsHasBeenSet = true;
75 m_tags.emplace_back(std::forward<TagsT>(value));
76 return *this;
77 }
79
81
86 inline const KernelGatewayImageConfig& GetKernelGatewayImageConfig() const { return m_kernelGatewayImageConfig; }
87 inline bool KernelGatewayImageConfigHasBeenSet() const { return m_kernelGatewayImageConfigHasBeenSet; }
88 template <typename KernelGatewayImageConfigT = KernelGatewayImageConfig>
89 void SetKernelGatewayImageConfig(KernelGatewayImageConfigT&& value) {
90 m_kernelGatewayImageConfigHasBeenSet = true;
91 m_kernelGatewayImageConfig = std::forward<KernelGatewayImageConfigT>(value);
92 }
93 template <typename KernelGatewayImageConfigT = KernelGatewayImageConfig>
94 CreateAppImageConfigRequest& WithKernelGatewayImageConfig(KernelGatewayImageConfigT&& value) {
95 SetKernelGatewayImageConfig(std::forward<KernelGatewayImageConfigT>(value));
96 return *this;
97 }
99
101
107 inline const JupyterLabAppImageConfig& GetJupyterLabAppImageConfig() const { return m_jupyterLabAppImageConfig; }
108 inline bool JupyterLabAppImageConfigHasBeenSet() const { return m_jupyterLabAppImageConfigHasBeenSet; }
109 template <typename JupyterLabAppImageConfigT = JupyterLabAppImageConfig>
110 void SetJupyterLabAppImageConfig(JupyterLabAppImageConfigT&& value) {
111 m_jupyterLabAppImageConfigHasBeenSet = true;
112 m_jupyterLabAppImageConfig = std::forward<JupyterLabAppImageConfigT>(value);
113 }
114 template <typename JupyterLabAppImageConfigT = JupyterLabAppImageConfig>
115 CreateAppImageConfigRequest& WithJupyterLabAppImageConfig(JupyterLabAppImageConfigT&& value) {
116 SetJupyterLabAppImageConfig(std::forward<JupyterLabAppImageConfigT>(value));
117 return *this;
118 }
120
122
127 inline const CodeEditorAppImageConfig& GetCodeEditorAppImageConfig() const { return m_codeEditorAppImageConfig; }
128 inline bool CodeEditorAppImageConfigHasBeenSet() const { return m_codeEditorAppImageConfigHasBeenSet; }
129 template <typename CodeEditorAppImageConfigT = CodeEditorAppImageConfig>
130 void SetCodeEditorAppImageConfig(CodeEditorAppImageConfigT&& value) {
131 m_codeEditorAppImageConfigHasBeenSet = true;
132 m_codeEditorAppImageConfig = std::forward<CodeEditorAppImageConfigT>(value);
133 }
134 template <typename CodeEditorAppImageConfigT = CodeEditorAppImageConfig>
135 CreateAppImageConfigRequest& WithCodeEditorAppImageConfig(CodeEditorAppImageConfigT&& value) {
136 SetCodeEditorAppImageConfig(std::forward<CodeEditorAppImageConfigT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_appImageConfigName;
142
143 Aws::Vector<Tag> m_tags;
144
145 KernelGatewayImageConfig m_kernelGatewayImageConfig;
146
147 JupyterLabAppImageConfig m_jupyterLabAppImageConfig;
148
149 CodeEditorAppImageConfig m_codeEditorAppImageConfig;
150 bool m_appImageConfigNameHasBeenSet = false;
151 bool m_tagsHasBeenSet = false;
152 bool m_kernelGatewayImageConfigHasBeenSet = false;
153 bool m_jupyterLabAppImageConfigHasBeenSet = false;
154 bool m_codeEditorAppImageConfigHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace SageMaker
159} // namespace Aws
AWS_SAGEMAKER_API CreateAppImageConfigRequest()=default
const CodeEditorAppImageConfig & GetCodeEditorAppImageConfig() const
CreateAppImageConfigRequest & WithCodeEditorAppImageConfig(CodeEditorAppImageConfigT &&value)
CreateAppImageConfigRequest & WithAppImageConfigName(AppImageConfigNameT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const KernelGatewayImageConfig & GetKernelGatewayImageConfig() const
CreateAppImageConfigRequest & WithKernelGatewayImageConfig(KernelGatewayImageConfigT &&value)
virtual const char * GetServiceRequestName() const override
CreateAppImageConfigRequest & WithJupyterLabAppImageConfig(JupyterLabAppImageConfigT &&value)
void SetJupyterLabAppImageConfig(JupyterLabAppImageConfigT &&value)
CreateAppImageConfigRequest & WithTags(TagsT &&value)
CreateAppImageConfigRequest & AddTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetCodeEditorAppImageConfig(CodeEditorAppImageConfigT &&value)
const JupyterLabAppImageConfig & GetJupyterLabAppImageConfig() const
void SetKernelGatewayImageConfig(KernelGatewayImageConfigT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector