AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateHubContentReferenceRequest.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/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SageMaker {
17namespace Model {
18
22 public:
23 AWS_SAGEMAKER_API CreateHubContentReferenceRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateHubContentReference"; }
30
31 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetHubName() const { return m_hubName; }
40 inline bool HubNameHasBeenSet() const { return m_hubNameHasBeenSet; }
41 template <typename HubNameT = Aws::String>
42 void SetHubName(HubNameT&& value) {
43 m_hubNameHasBeenSet = true;
44 m_hubName = std::forward<HubNameT>(value);
45 }
46 template <typename HubNameT = Aws::String>
48 SetHubName(std::forward<HubNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetSageMakerPublicHubContentArn() const { return m_sageMakerPublicHubContentArn; }
58 inline bool SageMakerPublicHubContentArnHasBeenSet() const { return m_sageMakerPublicHubContentArnHasBeenSet; }
59 template <typename SageMakerPublicHubContentArnT = Aws::String>
60 void SetSageMakerPublicHubContentArn(SageMakerPublicHubContentArnT&& value) {
61 m_sageMakerPublicHubContentArnHasBeenSet = true;
62 m_sageMakerPublicHubContentArn = std::forward<SageMakerPublicHubContentArnT>(value);
63 }
64 template <typename SageMakerPublicHubContentArnT = Aws::String>
66 SetSageMakerPublicHubContentArn(std::forward<SageMakerPublicHubContentArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetHubContentName() const { return m_hubContentName; }
76 inline bool HubContentNameHasBeenSet() const { return m_hubContentNameHasBeenSet; }
77 template <typename HubContentNameT = Aws::String>
78 void SetHubContentName(HubContentNameT&& value) {
79 m_hubContentNameHasBeenSet = true;
80 m_hubContentName = std::forward<HubContentNameT>(value);
81 }
82 template <typename HubContentNameT = Aws::String>
84 SetHubContentName(std::forward<HubContentNameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetMinVersion() const { return m_minVersion; }
94 inline bool MinVersionHasBeenSet() const { return m_minVersionHasBeenSet; }
95 template <typename MinVersionT = Aws::String>
96 void SetMinVersion(MinVersionT&& value) {
97 m_minVersionHasBeenSet = true;
98 m_minVersion = std::forward<MinVersionT>(value);
99 }
100 template <typename MinVersionT = Aws::String>
102 SetMinVersion(std::forward<MinVersionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
112 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
113 template <typename TagsT = Aws::Vector<Tag>>
114 void SetTags(TagsT&& value) {
115 m_tagsHasBeenSet = true;
116 m_tags = std::forward<TagsT>(value);
117 }
118 template <typename TagsT = Aws::Vector<Tag>>
120 SetTags(std::forward<TagsT>(value));
121 return *this;
122 }
123 template <typename TagsT = Tag>
125 m_tagsHasBeenSet = true;
126 m_tags.emplace_back(std::forward<TagsT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_hubName;
132
133 Aws::String m_sageMakerPublicHubContentArn;
134
135 Aws::String m_hubContentName;
136
137 Aws::String m_minVersion;
138
139 Aws::Vector<Tag> m_tags;
140 bool m_hubNameHasBeenSet = false;
141 bool m_sageMakerPublicHubContentArnHasBeenSet = false;
142 bool m_hubContentNameHasBeenSet = false;
143 bool m_minVersionHasBeenSet = false;
144 bool m_tagsHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace SageMaker
149} // namespace Aws
CreateHubContentReferenceRequest & WithHubName(HubNameT &&value)
CreateHubContentReferenceRequest & WithMinVersion(MinVersionT &&value)
AWS_SAGEMAKER_API CreateHubContentReferenceRequest()=default
CreateHubContentReferenceRequest & AddTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetSageMakerPublicHubContentArn(SageMakerPublicHubContentArnT &&value)
CreateHubContentReferenceRequest & WithHubContentName(HubContentNameT &&value)
CreateHubContentReferenceRequest & WithSageMakerPublicHubContentArn(SageMakerPublicHubContentArnT &&value)
CreateHubContentReferenceRequest & WithTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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