AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateImageRequest.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 CreateImageRequest();
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_SAGEMAKER_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetDescription() const{ return m_description; }
44 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
45 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
46 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
47 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
48 inline CreateImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
49 inline CreateImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
50 inline CreateImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
52
54
58 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
59 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
60 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
61 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
62 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
63 inline CreateImageRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
64 inline CreateImageRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
65 inline CreateImageRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
67
69
72 inline const Aws::String& GetImageName() const{ return m_imageName; }
73 inline bool ImageNameHasBeenSet() const { return m_imageNameHasBeenSet; }
74 inline void SetImageName(const Aws::String& value) { m_imageNameHasBeenSet = true; m_imageName = value; }
75 inline void SetImageName(Aws::String&& value) { m_imageNameHasBeenSet = true; m_imageName = std::move(value); }
76 inline void SetImageName(const char* value) { m_imageNameHasBeenSet = true; m_imageName.assign(value); }
77 inline CreateImageRequest& WithImageName(const Aws::String& value) { SetImageName(value); return *this;}
78 inline CreateImageRequest& WithImageName(Aws::String&& value) { SetImageName(std::move(value)); return *this;}
79 inline CreateImageRequest& WithImageName(const char* value) { SetImageName(value); return *this;}
81
83
87 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
88 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
89 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
90 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
91 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
92 inline CreateImageRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
93 inline CreateImageRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
94 inline CreateImageRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
96
98
101 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
104 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
105 inline CreateImageRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
106 inline CreateImageRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
107 inline CreateImageRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
108 inline CreateImageRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
110 private:
111
112 Aws::String m_description;
113 bool m_descriptionHasBeenSet = false;
114
115 Aws::String m_displayName;
116 bool m_displayNameHasBeenSet = false;
117
118 Aws::String m_imageName;
119 bool m_imageNameHasBeenSet = false;
120
121 Aws::String m_roleArn;
122 bool m_roleArnHasBeenSet = false;
123
124 Aws::Vector<Tag> m_tags;
125 bool m_tagsHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace SageMaker
130} // namespace Aws
CreateImageRequest & WithRoleArn(const char *value)
CreateImageRequest & WithDescription(Aws::String &&value)
void SetRoleArn(const Aws::String &value)
CreateImageRequest & WithDisplayName(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
CreateImageRequest & WithDisplayName(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateImageRequest & WithImageName(const Aws::String &value)
void SetImageName(const Aws::String &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateImageRequest & WithDescription(const char *value)
CreateImageRequest & WithTags(const Aws::Vector< Tag > &value)
CreateImageRequest & AddTags(const Tag &value)
CreateImageRequest & WithRoleArn(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
CreateImageRequest & WithTags(Aws::Vector< Tag > &&value)
CreateImageRequest & WithDescription(const Aws::String &value)
CreateImageRequest & AddTags(Tag &&value)
CreateImageRequest & WithImageName(Aws::String &&value)
void SetDisplayName(const Aws::String &value)
CreateImageRequest & WithDisplayName(const Aws::String &value)
CreateImageRequest & WithImageName(const char *value)
void SetDescription(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateImageRequest & WithRoleArn(Aws::String &&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