AWS SDK for C++  1.9.159
AWS SDK for C++
CreateImageRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SageMaker
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "CreateImage"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetDescription() const{ return m_description; }
43 
47  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
48 
52  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
53 
57  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
58 
62  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
63 
67  inline CreateImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 
72  inline CreateImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
73 
77  inline CreateImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
78 
79 
84  inline const Aws::String& GetDisplayName() const{ return m_displayName; }
85 
90  inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
91 
96  inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
97 
102  inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
103 
108  inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
109 
114  inline CreateImageRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
115 
120  inline CreateImageRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
121 
126  inline CreateImageRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
127 
128 
132  inline const Aws::String& GetImageName() const{ return m_imageName; }
133 
137  inline bool ImageNameHasBeenSet() const { return m_imageNameHasBeenSet; }
138 
142  inline void SetImageName(const Aws::String& value) { m_imageNameHasBeenSet = true; m_imageName = value; }
143 
147  inline void SetImageName(Aws::String&& value) { m_imageNameHasBeenSet = true; m_imageName = std::move(value); }
148 
152  inline void SetImageName(const char* value) { m_imageNameHasBeenSet = true; m_imageName.assign(value); }
153 
157  inline CreateImageRequest& WithImageName(const Aws::String& value) { SetImageName(value); return *this;}
158 
162  inline CreateImageRequest& WithImageName(Aws::String&& value) { SetImageName(std::move(value)); return *this;}
163 
167  inline CreateImageRequest& WithImageName(const char* value) { SetImageName(value); return *this;}
168 
169 
174  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
175 
180  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
181 
186  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
187 
192  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
193 
198  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
199 
204  inline CreateImageRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
205 
210  inline CreateImageRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
211 
216  inline CreateImageRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
217 
218 
222  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
223 
227  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
228 
232  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
233 
237  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
238 
242  inline CreateImageRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
243 
247  inline CreateImageRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
248 
252  inline CreateImageRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
253 
257  inline CreateImageRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
258 
259  private:
260 
261  Aws::String m_description;
262  bool m_descriptionHasBeenSet;
263 
264  Aws::String m_displayName;
265  bool m_displayNameHasBeenSet;
266 
267  Aws::String m_imageName;
268  bool m_imageNameHasBeenSet;
269 
270  Aws::String m_roleArn;
271  bool m_roleArnHasBeenSet;
272 
273  Aws::Vector<Tag> m_tags;
274  bool m_tagsHasBeenSet;
275  };
276 
277 } // namespace Model
278 } // namespace SageMaker
279 } // namespace Aws
Aws::SageMaker::Model::CreateImageRequest::ImageNameHasBeenSet
bool ImageNameHasBeenSet() const
Definition: CreateImageRequest.h:137
Aws::SageMaker::Model::Tag
Definition: Tag.h:44
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::CreateImageRequest::WithRoleArn
CreateImageRequest & WithRoleArn(const Aws::String &value)
Definition: CreateImageRequest.h:204
Aws::SageMaker::Model::CreateImageRequest::CreateImageRequest
CreateImageRequest()
Aws::SageMaker::Model::CreateImageRequest::SetDisplayName
void SetDisplayName(const Aws::String &value)
Definition: CreateImageRequest.h:96
Aws::SageMaker::Model::CreateImageRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateImageRequest.h:52
SageMaker_EXPORTS.h
Aws::SageMaker::Model::CreateImageRequest::SetDisplayName
void SetDisplayName(Aws::String &&value)
Definition: CreateImageRequest.h:102
Aws::SageMaker::Model::CreateImageRequest::WithImageName
CreateImageRequest & WithImageName(const Aws::String &value)
Definition: CreateImageRequest.h:157
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::CreateImageRequest::WithDescription
CreateImageRequest & WithDescription(Aws::String &&value)
Definition: CreateImageRequest.h:72
Aws::SageMaker::Model::CreateImageRequest
Definition: CreateImageRequest.h:24
Aws::SageMaker::Model::CreateImageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::CreateImageRequest::WithImageName
CreateImageRequest & WithImageName(const char *value)
Definition: CreateImageRequest.h:167
AWSVector.h
Aws::SageMaker::Model::CreateImageRequest::WithRoleArn
CreateImageRequest & WithRoleArn(Aws::String &&value)
Definition: CreateImageRequest.h:210
Aws::SageMaker::Model::CreateImageRequest::WithTags
CreateImageRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateImageRequest.h:242
Aws::SageMaker::Model::CreateImageRequest::WithRoleArn
CreateImageRequest & WithRoleArn(const char *value)
Definition: CreateImageRequest.h:216
Aws::SageMaker::Model::CreateImageRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateImageRequest.h:227
Aws::SageMaker::Model::CreateImageRequest::WithImageName
CreateImageRequest & WithImageName(Aws::String &&value)
Definition: CreateImageRequest.h:162
Aws::SageMaker::Model::CreateImageRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: CreateImageRequest.h:174
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::CreateImageRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: CreateImageRequest.h:186
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::CreateImageRequest::SetDisplayName
void SetDisplayName(const char *value)
Definition: CreateImageRequest.h:108
Aws::SageMaker::Model::CreateImageRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateImageRequest.h:42
Aws::SageMaker::Model::CreateImageRequest::AddTags
CreateImageRequest & AddTags(Tag &&value)
Definition: CreateImageRequest.h:257
Aws::SageMaker::Model::CreateImageRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: CreateImageRequest.h:198
Aws::SageMaker::Model::CreateImageRequest::GetImageName
const Aws::String & GetImageName() const
Definition: CreateImageRequest.h:132
AWSString.h
Aws::SageMaker::Model::CreateImageRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: CreateImageRequest.h:180
Tag.h
Aws::SageMaker::Model::CreateImageRequest::WithTags
CreateImageRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateImageRequest.h:247
Aws::SageMaker::Model::CreateImageRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateImageRequest.h:232
Aws::SageMaker::Model::CreateImageRequest::WithDisplayName
CreateImageRequest & WithDisplayName(const Aws::String &value)
Definition: CreateImageRequest.h:114
Aws::SageMaker::Model::CreateImageRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateImageRequest.h:57
Aws::SageMaker::Model::CreateImageRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateImageRequest.h:47
Aws::SageMaker::Model::CreateImageRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateImageRequest.h:222
Aws::SageMaker::Model::CreateImageRequest::AddTags
CreateImageRequest & AddTags(const Tag &value)
Definition: CreateImageRequest.h:252
Aws::SageMaker::Model::CreateImageRequest::WithDisplayName
CreateImageRequest & WithDisplayName(Aws::String &&value)
Definition: CreateImageRequest.h:120
Aws::SageMaker::Model::CreateImageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateImageRequest.h:32
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::CreateImageRequest::SetImageName
void SetImageName(Aws::String &&value)
Definition: CreateImageRequest.h:147
Aws::SageMaker::Model::CreateImageRequest::SetImageName
void SetImageName(const char *value)
Definition: CreateImageRequest.h:152
Aws::SageMaker::Model::CreateImageRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SageMakerRequest.h
Aws::SageMaker::Model::CreateImageRequest::SetImageName
void SetImageName(const Aws::String &value)
Definition: CreateImageRequest.h:142
Aws::SageMaker::Model::CreateImageRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateImageRequest.h:237
Aws::SageMaker::Model::CreateImageRequest::WithDescription
CreateImageRequest & WithDescription(const Aws::String &value)
Definition: CreateImageRequest.h:67
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::CreateImageRequest::WithDescription
CreateImageRequest & WithDescription(const char *value)
Definition: CreateImageRequest.h:77
Aws::SageMaker::Model::CreateImageRequest::DisplayNameHasBeenSet
bool DisplayNameHasBeenSet() const
Definition: CreateImageRequest.h:90
Aws::SageMaker::Model::CreateImageRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: CreateImageRequest.h:192
Aws::SageMaker::Model::CreateImageRequest::WithDisplayName
CreateImageRequest & WithDisplayName(const char *value)
Definition: CreateImageRequest.h:126
Aws::SageMaker::Model::CreateImageRequest::GetDisplayName
const Aws::String & GetDisplayName() const
Definition: CreateImageRequest.h:84
Aws::SageMaker::Model::CreateImageRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateImageRequest.h:62