AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateHubRequest.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/HubS3StorageConfig.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 CreateHubRequest() = 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 "CreateHub"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetHubName() const { return m_hubName; }
41 inline bool HubNameHasBeenSet() const { return m_hubNameHasBeenSet; }
42 template <typename HubNameT = Aws::String>
43 void SetHubName(HubNameT&& value) {
44 m_hubNameHasBeenSet = true;
45 m_hubName = std::forward<HubNameT>(value);
46 }
47 template <typename HubNameT = Aws::String>
48 CreateHubRequest& WithHubName(HubNameT&& value) {
49 SetHubName(std::forward<HubNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetHubDescription() const { return m_hubDescription; }
59 inline bool HubDescriptionHasBeenSet() const { return m_hubDescriptionHasBeenSet; }
60 template <typename HubDescriptionT = Aws::String>
61 void SetHubDescription(HubDescriptionT&& value) {
62 m_hubDescriptionHasBeenSet = true;
63 m_hubDescription = std::forward<HubDescriptionT>(value);
64 }
65 template <typename HubDescriptionT = Aws::String>
66 CreateHubRequest& WithHubDescription(HubDescriptionT&& value) {
67 SetHubDescription(std::forward<HubDescriptionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetHubDisplayName() const { return m_hubDisplayName; }
77 inline bool HubDisplayNameHasBeenSet() const { return m_hubDisplayNameHasBeenSet; }
78 template <typename HubDisplayNameT = Aws::String>
79 void SetHubDisplayName(HubDisplayNameT&& value) {
80 m_hubDisplayNameHasBeenSet = true;
81 m_hubDisplayName = std::forward<HubDisplayNameT>(value);
82 }
83 template <typename HubDisplayNameT = Aws::String>
84 CreateHubRequest& WithHubDisplayName(HubDisplayNameT&& value) {
85 SetHubDisplayName(std::forward<HubDisplayNameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<Aws::String>& GetHubSearchKeywords() const { return m_hubSearchKeywords; }
95 inline bool HubSearchKeywordsHasBeenSet() const { return m_hubSearchKeywordsHasBeenSet; }
96 template <typename HubSearchKeywordsT = Aws::Vector<Aws::String>>
97 void SetHubSearchKeywords(HubSearchKeywordsT&& value) {
98 m_hubSearchKeywordsHasBeenSet = true;
99 m_hubSearchKeywords = std::forward<HubSearchKeywordsT>(value);
100 }
101 template <typename HubSearchKeywordsT = Aws::Vector<Aws::String>>
102 CreateHubRequest& WithHubSearchKeywords(HubSearchKeywordsT&& value) {
103 SetHubSearchKeywords(std::forward<HubSearchKeywordsT>(value));
104 return *this;
105 }
106 template <typename HubSearchKeywordsT = Aws::String>
107 CreateHubRequest& AddHubSearchKeywords(HubSearchKeywordsT&& value) {
108 m_hubSearchKeywordsHasBeenSet = true;
109 m_hubSearchKeywords.emplace_back(std::forward<HubSearchKeywordsT>(value));
110 return *this;
111 }
113
115
118 inline const HubS3StorageConfig& GetS3StorageConfig() const { return m_s3StorageConfig; }
119 inline bool S3StorageConfigHasBeenSet() const { return m_s3StorageConfigHasBeenSet; }
120 template <typename S3StorageConfigT = HubS3StorageConfig>
121 void SetS3StorageConfig(S3StorageConfigT&& value) {
122 m_s3StorageConfigHasBeenSet = true;
123 m_s3StorageConfig = std::forward<S3StorageConfigT>(value);
124 }
125 template <typename S3StorageConfigT = HubS3StorageConfig>
126 CreateHubRequest& WithS3StorageConfig(S3StorageConfigT&& value) {
127 SetS3StorageConfig(std::forward<S3StorageConfigT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 template <typename TagsT = Aws::Vector<Tag>>
139 void SetTags(TagsT&& value) {
140 m_tagsHasBeenSet = true;
141 m_tags = std::forward<TagsT>(value);
142 }
143 template <typename TagsT = Aws::Vector<Tag>>
144 CreateHubRequest& WithTags(TagsT&& value) {
145 SetTags(std::forward<TagsT>(value));
146 return *this;
147 }
148 template <typename TagsT = Tag>
149 CreateHubRequest& AddTags(TagsT&& value) {
150 m_tagsHasBeenSet = true;
151 m_tags.emplace_back(std::forward<TagsT>(value));
152 return *this;
153 }
155 private:
156 Aws::String m_hubName;
157
158 Aws::String m_hubDescription;
159
160 Aws::String m_hubDisplayName;
161
162 Aws::Vector<Aws::String> m_hubSearchKeywords;
163
164 HubS3StorageConfig m_s3StorageConfig;
165
166 Aws::Vector<Tag> m_tags;
167 bool m_hubNameHasBeenSet = false;
168 bool m_hubDescriptionHasBeenSet = false;
169 bool m_hubDisplayNameHasBeenSet = false;
170 bool m_hubSearchKeywordsHasBeenSet = false;
171 bool m_s3StorageConfigHasBeenSet = false;
172 bool m_tagsHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace SageMaker
177} // namespace Aws
void SetS3StorageConfig(S3StorageConfigT &&value)
const Aws::Vector< Tag > & GetTags() const
const HubS3StorageConfig & GetS3StorageConfig() const
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateHubRequest & WithHubSearchKeywords(HubSearchKeywordsT &&value)
void SetHubSearchKeywords(HubSearchKeywordsT &&value)
CreateHubRequest & WithHubDisplayName(HubDisplayNameT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
const Aws::String & GetHubDescription() const
const Aws::String & GetHubDisplayName() const
virtual const char * GetServiceRequestName() const override
CreateHubRequest & WithS3StorageConfig(S3StorageConfigT &&value)
CreateHubRequest & WithTags(TagsT &&value)
CreateHubRequest & AddHubSearchKeywords(HubSearchKeywordsT &&value)
CreateHubRequest & WithHubDescription(HubDescriptionT &&value)
CreateHubRequest & AddTags(TagsT &&value)
AWS_SAGEMAKER_API CreateHubRequest()=default
const Aws::String & GetHubName() const
const Aws::Vector< Aws::String > & GetHubSearchKeywords() const
void SetHubDescription(HubDescriptionT &&value)
CreateHubRequest & WithHubName(HubNameT &&value)
void SetHubDisplayName(HubDisplayNameT &&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