AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateStudioLifecycleConfigRequest.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/StudioLifecycleConfigAppType.h>
12#include <aws/sagemaker/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API CreateStudioLifecycleConfigRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateStudioLifecycleConfig"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetStudioLifecycleConfigName() const { return m_studioLifecycleConfigName; }
42 inline bool StudioLifecycleConfigNameHasBeenSet() const { return m_studioLifecycleConfigNameHasBeenSet; }
43 template <typename StudioLifecycleConfigNameT = Aws::String>
44 void SetStudioLifecycleConfigName(StudioLifecycleConfigNameT&& value) {
45 m_studioLifecycleConfigNameHasBeenSet = true;
46 m_studioLifecycleConfigName = std::forward<StudioLifecycleConfigNameT>(value);
47 }
48 template <typename StudioLifecycleConfigNameT = Aws::String>
50 SetStudioLifecycleConfigName(std::forward<StudioLifecycleConfigNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetStudioLifecycleConfigContent() const { return m_studioLifecycleConfigContent; }
61 inline bool StudioLifecycleConfigContentHasBeenSet() const { return m_studioLifecycleConfigContentHasBeenSet; }
62 template <typename StudioLifecycleConfigContentT = Aws::String>
63 void SetStudioLifecycleConfigContent(StudioLifecycleConfigContentT&& value) {
64 m_studioLifecycleConfigContentHasBeenSet = true;
65 m_studioLifecycleConfigContent = std::forward<StudioLifecycleConfigContentT>(value);
66 }
67 template <typename StudioLifecycleConfigContentT = Aws::String>
69 SetStudioLifecycleConfigContent(std::forward<StudioLifecycleConfigContentT>(value));
70 return *this;
71 }
73
75
78 inline StudioLifecycleConfigAppType GetStudioLifecycleConfigAppType() const { return m_studioLifecycleConfigAppType; }
79 inline bool StudioLifecycleConfigAppTypeHasBeenSet() const { return m_studioLifecycleConfigAppTypeHasBeenSet; }
81 m_studioLifecycleConfigAppTypeHasBeenSet = true;
82 m_studioLifecycleConfigAppType = value;
83 }
86 return *this;
87 }
89
91
96 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
97 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 template <typename TagsT = Aws::Vector<Tag>>
99 void SetTags(TagsT&& value) {
100 m_tagsHasBeenSet = true;
101 m_tags = std::forward<TagsT>(value);
102 }
103 template <typename TagsT = Aws::Vector<Tag>>
105 SetTags(std::forward<TagsT>(value));
106 return *this;
107 }
108 template <typename TagsT = Tag>
110 m_tagsHasBeenSet = true;
111 m_tags.emplace_back(std::forward<TagsT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_studioLifecycleConfigName;
117
118 Aws::String m_studioLifecycleConfigContent;
119
121
122 Aws::Vector<Tag> m_tags;
123 bool m_studioLifecycleConfigNameHasBeenSet = false;
124 bool m_studioLifecycleConfigContentHasBeenSet = false;
125 bool m_studioLifecycleConfigAppTypeHasBeenSet = false;
126 bool m_tagsHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace SageMaker
131} // namespace Aws
CreateStudioLifecycleConfigRequest & WithStudioLifecycleConfigName(StudioLifecycleConfigNameT &&value)
CreateStudioLifecycleConfigRequest & WithStudioLifecycleConfigContent(StudioLifecycleConfigContentT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API CreateStudioLifecycleConfigRequest()=default
void SetStudioLifecycleConfigContent(StudioLifecycleConfigContentT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateStudioLifecycleConfigRequest & WithStudioLifecycleConfigAppType(StudioLifecycleConfigAppType 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