AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateImageRequest.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/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SageMaker {
17namespace Model {
18
22 public:
23 AWS_SAGEMAKER_API CreateImageRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateImage"; }
30
31 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetDescription() const { return m_description; }
40 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
41 template <typename DescriptionT = Aws::String>
42 void SetDescription(DescriptionT&& value) {
43 m_descriptionHasBeenSet = true;
44 m_description = std::forward<DescriptionT>(value);
45 }
46 template <typename DescriptionT = Aws::String>
47 CreateImageRequest& WithDescription(DescriptionT&& value) {
48 SetDescription(std::forward<DescriptionT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetDisplayName() const { return m_displayName; }
59 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
60 template <typename DisplayNameT = Aws::String>
61 void SetDisplayName(DisplayNameT&& value) {
62 m_displayNameHasBeenSet = true;
63 m_displayName = std::forward<DisplayNameT>(value);
64 }
65 template <typename DisplayNameT = Aws::String>
66 CreateImageRequest& WithDisplayName(DisplayNameT&& value) {
67 SetDisplayName(std::forward<DisplayNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetImageName() const { return m_imageName; }
77 inline bool ImageNameHasBeenSet() const { return m_imageNameHasBeenSet; }
78 template <typename ImageNameT = Aws::String>
79 void SetImageName(ImageNameT&& value) {
80 m_imageNameHasBeenSet = true;
81 m_imageName = std::forward<ImageNameT>(value);
82 }
83 template <typename ImageNameT = Aws::String>
84 CreateImageRequest& WithImageName(ImageNameT&& value) {
85 SetImageName(std::forward<ImageNameT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
96 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
97 template <typename RoleArnT = Aws::String>
98 void SetRoleArn(RoleArnT&& value) {
99 m_roleArnHasBeenSet = true;
100 m_roleArn = std::forward<RoleArnT>(value);
101 }
102 template <typename RoleArnT = Aws::String>
103 CreateImageRequest& WithRoleArn(RoleArnT&& value) {
104 SetRoleArn(std::forward<RoleArnT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 template <typename TagsT = Aws::Vector<Tag>>
116 void SetTags(TagsT&& value) {
117 m_tagsHasBeenSet = true;
118 m_tags = std::forward<TagsT>(value);
119 }
120 template <typename TagsT = Aws::Vector<Tag>>
121 CreateImageRequest& WithTags(TagsT&& value) {
122 SetTags(std::forward<TagsT>(value));
123 return *this;
124 }
125 template <typename TagsT = Tag>
126 CreateImageRequest& AddTags(TagsT&& value) {
127 m_tagsHasBeenSet = true;
128 m_tags.emplace_back(std::forward<TagsT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_description;
134
135 Aws::String m_displayName;
136
137 Aws::String m_imageName;
138
139 Aws::String m_roleArn;
140
141 Aws::Vector<Tag> m_tags;
142 bool m_descriptionHasBeenSet = false;
143 bool m_displayNameHasBeenSet = false;
144 bool m_imageNameHasBeenSet = false;
145 bool m_roleArnHasBeenSet = false;
146 bool m_tagsHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace SageMaker
151} // namespace Aws
CreateImageRequest & WithDescription(DescriptionT &&value)
CreateImageRequest & WithImageName(ImageNameT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateImageRequest & WithTags(TagsT &&value)
CreateImageRequest & WithRoleArn(RoleArnT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API CreateImageRequest()=default
const Aws::Vector< Tag > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateImageRequest & AddTags(TagsT &&value)
CreateImageRequest & WithDisplayName(DisplayNameT &&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