AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateHubContentReferenceRequest.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/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SageMaker
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SAGEMAKER_API CreateHubContentReferenceRequest() = 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 "CreateHubContentReference"; }
33
34 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetHubName() const { return m_hubName; }
44 inline bool HubNameHasBeenSet() const { return m_hubNameHasBeenSet; }
45 template<typename HubNameT = Aws::String>
46 void SetHubName(HubNameT&& value) { m_hubNameHasBeenSet = true; m_hubName = std::forward<HubNameT>(value); }
47 template<typename HubNameT = Aws::String>
48 CreateHubContentReferenceRequest& WithHubName(HubNameT&& value) { SetHubName(std::forward<HubNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetSageMakerPublicHubContentArn() const { return m_sageMakerPublicHubContentArn; }
56 inline bool SageMakerPublicHubContentArnHasBeenSet() const { return m_sageMakerPublicHubContentArnHasBeenSet; }
57 template<typename SageMakerPublicHubContentArnT = Aws::String>
58 void SetSageMakerPublicHubContentArn(SageMakerPublicHubContentArnT&& value) { m_sageMakerPublicHubContentArnHasBeenSet = true; m_sageMakerPublicHubContentArn = std::forward<SageMakerPublicHubContentArnT>(value); }
59 template<typename SageMakerPublicHubContentArnT = Aws::String>
60 CreateHubContentReferenceRequest& WithSageMakerPublicHubContentArn(SageMakerPublicHubContentArnT&& value) { SetSageMakerPublicHubContentArn(std::forward<SageMakerPublicHubContentArnT>(value)); return *this;}
62
64
67 inline const Aws::String& GetHubContentName() const { return m_hubContentName; }
68 inline bool HubContentNameHasBeenSet() const { return m_hubContentNameHasBeenSet; }
69 template<typename HubContentNameT = Aws::String>
70 void SetHubContentName(HubContentNameT&& value) { m_hubContentNameHasBeenSet = true; m_hubContentName = std::forward<HubContentNameT>(value); }
71 template<typename HubContentNameT = Aws::String>
72 CreateHubContentReferenceRequest& WithHubContentName(HubContentNameT&& value) { SetHubContentName(std::forward<HubContentNameT>(value)); return *this;}
74
76
79 inline const Aws::String& GetMinVersion() const { return m_minVersion; }
80 inline bool MinVersionHasBeenSet() const { return m_minVersionHasBeenSet; }
81 template<typename MinVersionT = Aws::String>
82 void SetMinVersion(MinVersionT&& value) { m_minVersionHasBeenSet = true; m_minVersion = std::forward<MinVersionT>(value); }
83 template<typename MinVersionT = Aws::String>
84 CreateHubContentReferenceRequest& WithMinVersion(MinVersionT&& value) { SetMinVersion(std::forward<MinVersionT>(value)); return *this;}
86
88
91 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template<typename TagsT = Aws::Vector<Tag>>
94 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
95 template<typename TagsT = Aws::Vector<Tag>>
96 CreateHubContentReferenceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
97 template<typename TagsT = Tag>
98 CreateHubContentReferenceRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
100 private:
101
102 Aws::String m_hubName;
103 bool m_hubNameHasBeenSet = false;
104
105 Aws::String m_sageMakerPublicHubContentArn;
106 bool m_sageMakerPublicHubContentArnHasBeenSet = false;
107
108 Aws::String m_hubContentName;
109 bool m_hubContentNameHasBeenSet = false;
110
111 Aws::String m_minVersion;
112 bool m_minVersionHasBeenSet = false;
113
114 Aws::Vector<Tag> m_tags;
115 bool m_tagsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace SageMaker
120} // 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