AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateModelCardRequest.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/sagemaker/model/ModelCardSecurityConfig.h>
11#include <aws/sagemaker/model/ModelCardStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/sagemaker/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SageMaker
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SAGEMAKER_API CreateModelCardRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateModelCard"; }
35
36 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetModelCardName() const{ return m_modelCardName; }
46 inline bool ModelCardNameHasBeenSet() const { return m_modelCardNameHasBeenSet; }
47 inline void SetModelCardName(const Aws::String& value) { m_modelCardNameHasBeenSet = true; m_modelCardName = value; }
48 inline void SetModelCardName(Aws::String&& value) { m_modelCardNameHasBeenSet = true; m_modelCardName = std::move(value); }
49 inline void SetModelCardName(const char* value) { m_modelCardNameHasBeenSet = true; m_modelCardName.assign(value); }
50 inline CreateModelCardRequest& WithModelCardName(const Aws::String& value) { SetModelCardName(value); return *this;}
51 inline CreateModelCardRequest& WithModelCardName(Aws::String&& value) { SetModelCardName(std::move(value)); return *this;}
52 inline CreateModelCardRequest& WithModelCardName(const char* value) { SetModelCardName(value); return *this;}
54
56
60 inline const ModelCardSecurityConfig& GetSecurityConfig() const{ return m_securityConfig; }
61 inline bool SecurityConfigHasBeenSet() const { return m_securityConfigHasBeenSet; }
62 inline void SetSecurityConfig(const ModelCardSecurityConfig& value) { m_securityConfigHasBeenSet = true; m_securityConfig = value; }
63 inline void SetSecurityConfig(ModelCardSecurityConfig&& value) { m_securityConfigHasBeenSet = true; m_securityConfig = std::move(value); }
65 inline CreateModelCardRequest& WithSecurityConfig(ModelCardSecurityConfig&& value) { SetSecurityConfig(std::move(value)); return *this;}
67
69
74 inline const Aws::String& GetContent() const{ return m_content; }
75 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
76 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
77 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
78 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
79 inline CreateModelCardRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
80 inline CreateModelCardRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
81 inline CreateModelCardRequest& WithContent(const char* value) { SetContent(value); return *this;}
83
85
95 inline const ModelCardStatus& GetModelCardStatus() const{ return m_modelCardStatus; }
96 inline bool ModelCardStatusHasBeenSet() const { return m_modelCardStatusHasBeenSet; }
97 inline void SetModelCardStatus(const ModelCardStatus& value) { m_modelCardStatusHasBeenSet = true; m_modelCardStatus = value; }
98 inline void SetModelCardStatus(ModelCardStatus&& value) { m_modelCardStatusHasBeenSet = true; m_modelCardStatus = std::move(value); }
100 inline CreateModelCardRequest& WithModelCardStatus(ModelCardStatus&& value) { SetModelCardStatus(std::move(value)); return *this;}
102
104
107 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
110 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
111 inline CreateModelCardRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
112 inline CreateModelCardRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
113 inline CreateModelCardRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
114 inline CreateModelCardRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
116 private:
117
118 Aws::String m_modelCardName;
119 bool m_modelCardNameHasBeenSet = false;
120
121 ModelCardSecurityConfig m_securityConfig;
122 bool m_securityConfigHasBeenSet = false;
123
124 Aws::String m_content;
125 bool m_contentHasBeenSet = false;
126
127 ModelCardStatus m_modelCardStatus;
128 bool m_modelCardStatusHasBeenSet = false;
129
130 Aws::Vector<Tag> m_tags;
131 bool m_tagsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace SageMaker
136} // namespace Aws
CreateModelCardRequest & WithModelCardName(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateModelCardRequest & WithModelCardName(const Aws::String &value)
CreateModelCardRequest & WithTags(const Aws::Vector< Tag > &value)
CreateModelCardRequest & WithContent(const Aws::String &value)
void SetSecurityConfig(const ModelCardSecurityConfig &value)
CreateModelCardRequest & WithSecurityConfig(const ModelCardSecurityConfig &value)
virtual const char * GetServiceRequestName() const override
CreateModelCardRequest & WithModelCardName(const char *value)
CreateModelCardRequest & WithContent(const char *value)
CreateModelCardRequest & WithModelCardStatus(const ModelCardStatus &value)
CreateModelCardRequest & WithSecurityConfig(ModelCardSecurityConfig &&value)
CreateModelCardRequest & AddTags(const Tag &value)
CreateModelCardRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateModelCardRequest & WithContent(Aws::String &&value)
const ModelCardSecurityConfig & GetSecurityConfig() const
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetModelCardStatus(const ModelCardStatus &value)
void SetSecurityConfig(ModelCardSecurityConfig &&value)
CreateModelCardRequest & AddTags(Tag &&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