AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DeleteImageVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace SageMaker {
15namespace Model {
16
20 public:
21 AWS_SAGEMAKER_API DeleteImageVersionRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DeleteImageVersion"; }
28
29 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetImageName() const { return m_imageName; }
38 inline bool ImageNameHasBeenSet() const { return m_imageNameHasBeenSet; }
39 template <typename ImageNameT = Aws::String>
40 void SetImageName(ImageNameT&& value) {
41 m_imageNameHasBeenSet = true;
42 m_imageName = std::forward<ImageNameT>(value);
43 }
44 template <typename ImageNameT = Aws::String>
46 SetImageName(std::forward<ImageNameT>(value));
47 return *this;
48 }
50
52
55 inline int GetVersion() const { return m_version; }
56 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
57 inline void SetVersion(int value) {
58 m_versionHasBeenSet = true;
59 m_version = value;
60 }
62 SetVersion(value);
63 return *this;
64 }
66
68
71 inline const Aws::String& GetAlias() const { return m_alias; }
72 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
73 template <typename AliasT = Aws::String>
74 void SetAlias(AliasT&& value) {
75 m_aliasHasBeenSet = true;
76 m_alias = std::forward<AliasT>(value);
77 }
78 template <typename AliasT = Aws::String>
80 SetAlias(std::forward<AliasT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_imageName;
86
87 int m_version{0};
88
89 Aws::String m_alias;
90 bool m_imageNameHasBeenSet = false;
91 bool m_versionHasBeenSet = false;
92 bool m_aliasHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace SageMaker
97} // namespace Aws
virtual const char * GetServiceRequestName() const override
DeleteImageVersionRequest & WithVersion(int value)
AWS_SAGEMAKER_API DeleteImageVersionRequest()=default
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
DeleteImageVersionRequest & WithImageName(ImageNameT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteImageVersionRequest & WithAlias(AliasT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String