AWS SDK for C++  1.9.153
AWS SDK for C++
CreateImageVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 #include <aws/core/utils/UUID.h>
12 
13 namespace Aws
14 {
15 namespace SageMaker
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "CreateImageVersion"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
45  inline const Aws::String& GetBaseImage() const{ return m_baseImage; }
46 
54  inline bool BaseImageHasBeenSet() const { return m_baseImageHasBeenSet; }
55 
63  inline void SetBaseImage(const Aws::String& value) { m_baseImageHasBeenSet = true; m_baseImage = value; }
64 
72  inline void SetBaseImage(Aws::String&& value) { m_baseImageHasBeenSet = true; m_baseImage = std::move(value); }
73 
81  inline void SetBaseImage(const char* value) { m_baseImageHasBeenSet = true; m_baseImage.assign(value); }
82 
90  inline CreateImageVersionRequest& WithBaseImage(const Aws::String& value) { SetBaseImage(value); return *this;}
91 
99  inline CreateImageVersionRequest& WithBaseImage(Aws::String&& value) { SetBaseImage(std::move(value)); return *this;}
100 
108  inline CreateImageVersionRequest& WithBaseImage(const char* value) { SetBaseImage(value); return *this;}
109 
110 
116  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
117 
123  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
124 
130  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
131 
137  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
138 
144  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
145 
151  inline CreateImageVersionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
152 
158  inline CreateImageVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
159 
165  inline CreateImageVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
166 
167 
172  inline const Aws::String& GetImageName() const{ return m_imageName; }
173 
178  inline bool ImageNameHasBeenSet() const { return m_imageNameHasBeenSet; }
179 
184  inline void SetImageName(const Aws::String& value) { m_imageNameHasBeenSet = true; m_imageName = value; }
185 
190  inline void SetImageName(Aws::String&& value) { m_imageNameHasBeenSet = true; m_imageName = std::move(value); }
191 
196  inline void SetImageName(const char* value) { m_imageNameHasBeenSet = true; m_imageName.assign(value); }
197 
202  inline CreateImageVersionRequest& WithImageName(const Aws::String& value) { SetImageName(value); return *this;}
203 
208  inline CreateImageVersionRequest& WithImageName(Aws::String&& value) { SetImageName(std::move(value)); return *this;}
209 
214  inline CreateImageVersionRequest& WithImageName(const char* value) { SetImageName(value); return *this;}
215 
216  private:
217 
218  Aws::String m_baseImage;
219  bool m_baseImageHasBeenSet;
220 
221  Aws::String m_clientToken;
222  bool m_clientTokenHasBeenSet;
223 
224  Aws::String m_imageName;
225  bool m_imageNameHasBeenSet;
226  };
227 
228 } // namespace Model
229 } // namespace SageMaker
230 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
SageMaker_EXPORTS.h
Aws::SageMaker::Model::CreateImageVersionRequest::SetImageName
void SetImageName(Aws::String &&value)
Definition: CreateImageVersionRequest.h:190
Aws::SageMaker::Model::CreateImageVersionRequest::ImageNameHasBeenSet
bool ImageNameHasBeenSet() const
Definition: CreateImageVersionRequest.h:178
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::CreateImageVersionRequest::WithImageName
CreateImageVersionRequest & WithImageName(Aws::String &&value)
Definition: CreateImageVersionRequest.h:208
Aws::SageMaker::Model::CreateImageVersionRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateImageVersionRequest.h:116
Aws::SageMaker::Model::CreateImageVersionRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateImageVersionRequest.h:137
Aws::SageMaker::Model::CreateImageVersionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::CreateImageVersionRequest::SetBaseImage
void SetBaseImage(Aws::String &&value)
Definition: CreateImageVersionRequest.h:72
Aws::SageMaker::Model::CreateImageVersionRequest::GetImageName
const Aws::String & GetImageName() const
Definition: CreateImageVersionRequest.h:172
Aws::SageMaker::Model::CreateImageVersionRequest::SetBaseImage
void SetBaseImage(const char *value)
Definition: CreateImageVersionRequest.h:81
Aws::SageMaker::Model::CreateImageVersionRequest::WithBaseImage
CreateImageVersionRequest & WithBaseImage(Aws::String &&value)
Definition: CreateImageVersionRequest.h:99
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::CreateImageVersionRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateImageVersionRequest.h:144
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::CreateImageVersionRequest::WithImageName
CreateImageVersionRequest & WithImageName(const Aws::String &value)
Definition: CreateImageVersionRequest.h:202
AWSString.h
Aws::SageMaker::Model::CreateImageVersionRequest::WithBaseImage
CreateImageVersionRequest & WithBaseImage(const char *value)
Definition: CreateImageVersionRequest.h:108
Aws::SageMaker::Model::CreateImageVersionRequest::GetBaseImage
const Aws::String & GetBaseImage() const
Definition: CreateImageVersionRequest.h:45
Aws::SageMaker::Model::CreateImageVersionRequest::WithClientToken
CreateImageVersionRequest & WithClientToken(const Aws::String &value)
Definition: CreateImageVersionRequest.h:151
Aws::SageMaker::Model::CreateImageVersionRequest::SetBaseImage
void SetBaseImage(const Aws::String &value)
Definition: CreateImageVersionRequest.h:63
Aws::SageMaker::Model::CreateImageVersionRequest::WithBaseImage
CreateImageVersionRequest & WithBaseImage(const Aws::String &value)
Definition: CreateImageVersionRequest.h:90
Aws::SageMaker::Model::CreateImageVersionRequest::CreateImageVersionRequest
CreateImageVersionRequest()
Aws::SageMaker::Model::CreateImageVersionRequest::BaseImageHasBeenSet
bool BaseImageHasBeenSet() const
Definition: CreateImageVersionRequest.h:54
Aws::SageMaker::Model::CreateImageVersionRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateImageVersionRequest.h:130
Aws::SageMaker::Model::CreateImageVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateImageVersionRequest.h:31
Aws
Definition: AccessManagementClient.h:15
SageMakerRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::CreateImageVersionRequest
Definition: CreateImageVersionRequest.h:23
Aws::SageMaker::Model::CreateImageVersionRequest::SetImageName
void SetImageName(const Aws::String &value)
Definition: CreateImageVersionRequest.h:184
Aws::SageMaker::Model::CreateImageVersionRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateImageVersionRequest.h:123
Aws::SageMaker::Model::CreateImageVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SageMaker::Model::CreateImageVersionRequest::WithClientToken
CreateImageVersionRequest & WithClientToken(const char *value)
Definition: CreateImageVersionRequest.h:165
UUID.h
Aws::SageMaker::Model::CreateImageVersionRequest::SetImageName
void SetImageName(const char *value)
Definition: CreateImageVersionRequest.h:196
Aws::SageMaker::Model::CreateImageVersionRequest::WithClientToken
CreateImageVersionRequest & WithClientToken(Aws::String &&value)
Definition: CreateImageVersionRequest.h:158
Aws::SageMaker::Model::CreateImageVersionRequest::WithImageName
CreateImageVersionRequest & WithImageName(const char *value)
Definition: CreateImageVersionRequest.h:214