AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateArtifactRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMakerRequest.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SageMaker {
17namespace Model {
18
22 public:
23 AWS_SAGEMAKER_API UpdateArtifactRequest() = 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 "UpdateArtifact"; }
30
31 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetArtifactArn() const { return m_artifactArn; }
40 inline bool ArtifactArnHasBeenSet() const { return m_artifactArnHasBeenSet; }
41 template <typename ArtifactArnT = Aws::String>
42 void SetArtifactArn(ArtifactArnT&& value) {
43 m_artifactArnHasBeenSet = true;
44 m_artifactArn = std::forward<ArtifactArnT>(value);
45 }
46 template <typename ArtifactArnT = Aws::String>
47 UpdateArtifactRequest& WithArtifactArn(ArtifactArnT&& value) {
48 SetArtifactArn(std::forward<ArtifactArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetArtifactName() const { return m_artifactName; }
58 inline bool ArtifactNameHasBeenSet() const { return m_artifactNameHasBeenSet; }
59 template <typename ArtifactNameT = Aws::String>
60 void SetArtifactName(ArtifactNameT&& value) {
61 m_artifactNameHasBeenSet = true;
62 m_artifactName = std::forward<ArtifactNameT>(value);
63 }
64 template <typename ArtifactNameT = Aws::String>
65 UpdateArtifactRequest& WithArtifactName(ArtifactNameT&& value) {
66 SetArtifactName(std::forward<ArtifactNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
76 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
77 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
78 void SetProperties(PropertiesT&& value) {
79 m_propertiesHasBeenSet = true;
80 m_properties = std::forward<PropertiesT>(value);
81 }
82 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
83 UpdateArtifactRequest& WithProperties(PropertiesT&& value) {
84 SetProperties(std::forward<PropertiesT>(value));
85 return *this;
86 }
87 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
88 UpdateArtifactRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
89 m_propertiesHasBeenSet = true;
90 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Vector<Aws::String>& GetPropertiesToRemove() const { return m_propertiesToRemove; }
100 inline bool PropertiesToRemoveHasBeenSet() const { return m_propertiesToRemoveHasBeenSet; }
101 template <typename PropertiesToRemoveT = Aws::Vector<Aws::String>>
102 void SetPropertiesToRemove(PropertiesToRemoveT&& value) {
103 m_propertiesToRemoveHasBeenSet = true;
104 m_propertiesToRemove = std::forward<PropertiesToRemoveT>(value);
105 }
106 template <typename PropertiesToRemoveT = Aws::Vector<Aws::String>>
107 UpdateArtifactRequest& WithPropertiesToRemove(PropertiesToRemoveT&& value) {
108 SetPropertiesToRemove(std::forward<PropertiesToRemoveT>(value));
109 return *this;
110 }
111 template <typename PropertiesToRemoveT = Aws::String>
112 UpdateArtifactRequest& AddPropertiesToRemove(PropertiesToRemoveT&& value) {
113 m_propertiesToRemoveHasBeenSet = true;
114 m_propertiesToRemove.emplace_back(std::forward<PropertiesToRemoveT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_artifactArn;
120
121 Aws::String m_artifactName;
122
124
125 Aws::Vector<Aws::String> m_propertiesToRemove;
126 bool m_artifactArnHasBeenSet = false;
127 bool m_artifactNameHasBeenSet = false;
128 bool m_propertiesHasBeenSet = false;
129 bool m_propertiesToRemoveHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace SageMaker
134} // namespace Aws
UpdateArtifactRequest & WithPropertiesToRemove(PropertiesToRemoveT &&value)
UpdateArtifactRequest & WithProperties(PropertiesT &&value)
void SetPropertiesToRemove(PropertiesToRemoveT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateArtifactRequest & WithArtifactName(ArtifactNameT &&value)
AWS_SAGEMAKER_API UpdateArtifactRequest()=default
const Aws::Vector< Aws::String > & GetPropertiesToRemove() const
UpdateArtifactRequest & AddPropertiesToRemove(PropertiesToRemoveT &&value)
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
UpdateArtifactRequest & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
UpdateArtifactRequest & WithArtifactArn(ArtifactArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector