AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateHubRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/HubS3StorageConfig.h>
12#include <aws/sagemaker/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API CreateHubRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateHub"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetHubName() const { return m_hubName; }
45 inline bool HubNameHasBeenSet() const { return m_hubNameHasBeenSet; }
46 template<typename HubNameT = Aws::String>
47 void SetHubName(HubNameT&& value) { m_hubNameHasBeenSet = true; m_hubName = std::forward<HubNameT>(value); }
48 template<typename HubNameT = Aws::String>
49 CreateHubRequest& WithHubName(HubNameT&& value) { SetHubName(std::forward<HubNameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetHubDescription() const { return m_hubDescription; }
57 inline bool HubDescriptionHasBeenSet() const { return m_hubDescriptionHasBeenSet; }
58 template<typename HubDescriptionT = Aws::String>
59 void SetHubDescription(HubDescriptionT&& value) { m_hubDescriptionHasBeenSet = true; m_hubDescription = std::forward<HubDescriptionT>(value); }
60 template<typename HubDescriptionT = Aws::String>
61 CreateHubRequest& WithHubDescription(HubDescriptionT&& value) { SetHubDescription(std::forward<HubDescriptionT>(value)); return *this;}
63
65
68 inline const Aws::String& GetHubDisplayName() const { return m_hubDisplayName; }
69 inline bool HubDisplayNameHasBeenSet() const { return m_hubDisplayNameHasBeenSet; }
70 template<typename HubDisplayNameT = Aws::String>
71 void SetHubDisplayName(HubDisplayNameT&& value) { m_hubDisplayNameHasBeenSet = true; m_hubDisplayName = std::forward<HubDisplayNameT>(value); }
72 template<typename HubDisplayNameT = Aws::String>
73 CreateHubRequest& WithHubDisplayName(HubDisplayNameT&& value) { SetHubDisplayName(std::forward<HubDisplayNameT>(value)); return *this;}
75
77
80 inline const Aws::Vector<Aws::String>& GetHubSearchKeywords() const { return m_hubSearchKeywords; }
81 inline bool HubSearchKeywordsHasBeenSet() const { return m_hubSearchKeywordsHasBeenSet; }
82 template<typename HubSearchKeywordsT = Aws::Vector<Aws::String>>
83 void SetHubSearchKeywords(HubSearchKeywordsT&& value) { m_hubSearchKeywordsHasBeenSet = true; m_hubSearchKeywords = std::forward<HubSearchKeywordsT>(value); }
84 template<typename HubSearchKeywordsT = Aws::Vector<Aws::String>>
85 CreateHubRequest& WithHubSearchKeywords(HubSearchKeywordsT&& value) { SetHubSearchKeywords(std::forward<HubSearchKeywordsT>(value)); return *this;}
86 template<typename HubSearchKeywordsT = Aws::String>
87 CreateHubRequest& AddHubSearchKeywords(HubSearchKeywordsT&& value) { m_hubSearchKeywordsHasBeenSet = true; m_hubSearchKeywords.emplace_back(std::forward<HubSearchKeywordsT>(value)); return *this; }
89
91
94 inline const HubS3StorageConfig& GetS3StorageConfig() const { return m_s3StorageConfig; }
95 inline bool S3StorageConfigHasBeenSet() const { return m_s3StorageConfigHasBeenSet; }
96 template<typename S3StorageConfigT = HubS3StorageConfig>
97 void SetS3StorageConfig(S3StorageConfigT&& value) { m_s3StorageConfigHasBeenSet = true; m_s3StorageConfig = std::forward<S3StorageConfigT>(value); }
98 template<typename S3StorageConfigT = HubS3StorageConfig>
99 CreateHubRequest& WithS3StorageConfig(S3StorageConfigT&& value) { SetS3StorageConfig(std::forward<S3StorageConfigT>(value)); return *this;}
101
103
106 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 template<typename TagsT = Aws::Vector<Tag>>
109 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
110 template<typename TagsT = Aws::Vector<Tag>>
111 CreateHubRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
112 template<typename TagsT = Tag>
113 CreateHubRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
115 private:
116
117 Aws::String m_hubName;
118 bool m_hubNameHasBeenSet = false;
119
120 Aws::String m_hubDescription;
121 bool m_hubDescriptionHasBeenSet = false;
122
123 Aws::String m_hubDisplayName;
124 bool m_hubDisplayNameHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_hubSearchKeywords;
127 bool m_hubSearchKeywordsHasBeenSet = false;
128
129 HubS3StorageConfig m_s3StorageConfig;
130 bool m_s3StorageConfigHasBeenSet = false;
131
132 Aws::Vector<Tag> m_tags;
133 bool m_tagsHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace SageMaker
138} // 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