AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateModelCardRequest.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/ModelCardSecurityConfig.h>
12#include <aws/sagemaker/model/ModelCardStatus.h>
13#include <aws/sagemaker/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SageMaker {
19namespace Model {
20
24 public:
25 AWS_SAGEMAKER_API CreateModelCardRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateModelCard"; }
32
33 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetModelCardName() const { return m_modelCardName; }
42 inline bool ModelCardNameHasBeenSet() const { return m_modelCardNameHasBeenSet; }
43 template <typename ModelCardNameT = Aws::String>
44 void SetModelCardName(ModelCardNameT&& value) {
45 m_modelCardNameHasBeenSet = true;
46 m_modelCardName = std::forward<ModelCardNameT>(value);
47 }
48 template <typename ModelCardNameT = Aws::String>
49 CreateModelCardRequest& WithModelCardName(ModelCardNameT&& value) {
50 SetModelCardName(std::forward<ModelCardNameT>(value));
51 return *this;
52 }
54
56
60 inline const ModelCardSecurityConfig& GetSecurityConfig() const { return m_securityConfig; }
61 inline bool SecurityConfigHasBeenSet() const { return m_securityConfigHasBeenSet; }
62 template <typename SecurityConfigT = ModelCardSecurityConfig>
63 void SetSecurityConfig(SecurityConfigT&& value) {
64 m_securityConfigHasBeenSet = true;
65 m_securityConfig = std::forward<SecurityConfigT>(value);
66 }
67 template <typename SecurityConfigT = ModelCardSecurityConfig>
68 CreateModelCardRequest& WithSecurityConfig(SecurityConfigT&& value) {
69 SetSecurityConfig(std::forward<SecurityConfigT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetContent() const { return m_content; }
81 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
82 template <typename ContentT = Aws::String>
83 void SetContent(ContentT&& value) {
84 m_contentHasBeenSet = true;
85 m_content = std::forward<ContentT>(value);
86 }
87 template <typename ContentT = Aws::String>
89 SetContent(std::forward<ContentT>(value));
90 return *this;
91 }
93
95
105 inline ModelCardStatus GetModelCardStatus() const { return m_modelCardStatus; }
106 inline bool ModelCardStatusHasBeenSet() const { return m_modelCardStatusHasBeenSet; }
108 m_modelCardStatusHasBeenSet = true;
109 m_modelCardStatus = value;
110 }
112 SetModelCardStatus(value);
113 return *this;
114 }
116
118
121 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
122 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
123 template <typename TagsT = Aws::Vector<Tag>>
124 void SetTags(TagsT&& value) {
125 m_tagsHasBeenSet = true;
126 m_tags = std::forward<TagsT>(value);
127 }
128 template <typename TagsT = Aws::Vector<Tag>>
130 SetTags(std::forward<TagsT>(value));
131 return *this;
132 }
133 template <typename TagsT = Tag>
135 m_tagsHasBeenSet = true;
136 m_tags.emplace_back(std::forward<TagsT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_modelCardName;
142
143 ModelCardSecurityConfig m_securityConfig;
144
145 Aws::String m_content;
146
147 ModelCardStatus m_modelCardStatus{ModelCardStatus::NOT_SET};
148
149 Aws::Vector<Tag> m_tags;
150 bool m_modelCardNameHasBeenSet = false;
151 bool m_securityConfigHasBeenSet = false;
152 bool m_contentHasBeenSet = false;
153 bool m_modelCardStatusHasBeenSet = false;
154 bool m_tagsHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace SageMaker
159} // namespace Aws
CreateModelCardRequest & WithSecurityConfig(SecurityConfigT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SAGEMAKER_API CreateModelCardRequest()=default
CreateModelCardRequest & WithModelCardName(ModelCardNameT &&value)
CreateModelCardRequest & WithTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
const ModelCardSecurityConfig & GetSecurityConfig() const
CreateModelCardRequest & WithContent(ContentT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateModelCardRequest & AddTags(TagsT &&value)
CreateModelCardRequest & WithModelCardStatus(ModelCardStatus 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