AWS SDK for C++  1.9.154
AWS SDK for C++
UpdateArtifactRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SageMaker
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "UpdateArtifact"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetArtifactArn() const{ return m_artifactArn; }
43 
47  inline bool ArtifactArnHasBeenSet() const { return m_artifactArnHasBeenSet; }
48 
52  inline void SetArtifactArn(const Aws::String& value) { m_artifactArnHasBeenSet = true; m_artifactArn = value; }
53 
57  inline void SetArtifactArn(Aws::String&& value) { m_artifactArnHasBeenSet = true; m_artifactArn = std::move(value); }
58 
62  inline void SetArtifactArn(const char* value) { m_artifactArnHasBeenSet = true; m_artifactArn.assign(value); }
63 
67  inline UpdateArtifactRequest& WithArtifactArn(const Aws::String& value) { SetArtifactArn(value); return *this;}
68 
72  inline UpdateArtifactRequest& WithArtifactArn(Aws::String&& value) { SetArtifactArn(std::move(value)); return *this;}
73 
77  inline UpdateArtifactRequest& WithArtifactArn(const char* value) { SetArtifactArn(value); return *this;}
78 
79 
83  inline const Aws::String& GetArtifactName() const{ return m_artifactName; }
84 
88  inline bool ArtifactNameHasBeenSet() const { return m_artifactNameHasBeenSet; }
89 
93  inline void SetArtifactName(const Aws::String& value) { m_artifactNameHasBeenSet = true; m_artifactName = value; }
94 
98  inline void SetArtifactName(Aws::String&& value) { m_artifactNameHasBeenSet = true; m_artifactName = std::move(value); }
99 
103  inline void SetArtifactName(const char* value) { m_artifactNameHasBeenSet = true; m_artifactName.assign(value); }
104 
108  inline UpdateArtifactRequest& WithArtifactName(const Aws::String& value) { SetArtifactName(value); return *this;}
109 
113  inline UpdateArtifactRequest& WithArtifactName(Aws::String&& value) { SetArtifactName(std::move(value)); return *this;}
114 
118  inline UpdateArtifactRequest& WithArtifactName(const char* value) { SetArtifactName(value); return *this;}
119 
120 
124  inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const{ return m_properties; }
125 
129  inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
130 
134  inline void SetProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
135 
139  inline void SetProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
140 
144  inline UpdateArtifactRequest& WithProperties(const Aws::Map<Aws::String, Aws::String>& value) { SetProperties(value); return *this;}
145 
149  inline UpdateArtifactRequest& WithProperties(Aws::Map<Aws::String, Aws::String>&& value) { SetProperties(std::move(value)); return *this;}
150 
154  inline UpdateArtifactRequest& AddProperties(const Aws::String& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
155 
159  inline UpdateArtifactRequest& AddProperties(Aws::String&& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
160 
164  inline UpdateArtifactRequest& AddProperties(const Aws::String& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
165 
169  inline UpdateArtifactRequest& AddProperties(Aws::String&& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; }
170 
174  inline UpdateArtifactRequest& AddProperties(const char* key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
175 
179  inline UpdateArtifactRequest& AddProperties(Aws::String&& key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
180 
184  inline UpdateArtifactRequest& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
185 
186 
190  inline const Aws::Vector<Aws::String>& GetPropertiesToRemove() const{ return m_propertiesToRemove; }
191 
195  inline bool PropertiesToRemoveHasBeenSet() const { return m_propertiesToRemoveHasBeenSet; }
196 
200  inline void SetPropertiesToRemove(const Aws::Vector<Aws::String>& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove = value; }
201 
205  inline void SetPropertiesToRemove(Aws::Vector<Aws::String>&& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove = std::move(value); }
206 
210  inline UpdateArtifactRequest& WithPropertiesToRemove(const Aws::Vector<Aws::String>& value) { SetPropertiesToRemove(value); return *this;}
211 
215  inline UpdateArtifactRequest& WithPropertiesToRemove(Aws::Vector<Aws::String>&& value) { SetPropertiesToRemove(std::move(value)); return *this;}
216 
220  inline UpdateArtifactRequest& AddPropertiesToRemove(const Aws::String& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove.push_back(value); return *this; }
221 
225  inline UpdateArtifactRequest& AddPropertiesToRemove(Aws::String&& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove.push_back(std::move(value)); return *this; }
226 
230  inline UpdateArtifactRequest& AddPropertiesToRemove(const char* value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove.push_back(value); return *this; }
231 
232  private:
233 
234  Aws::String m_artifactArn;
235  bool m_artifactArnHasBeenSet;
236 
237  Aws::String m_artifactName;
238  bool m_artifactNameHasBeenSet;
239 
241  bool m_propertiesHasBeenSet;
242 
243  Aws::Vector<Aws::String> m_propertiesToRemove;
244  bool m_propertiesToRemoveHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace SageMaker
249 } // namespace Aws
Aws::SageMaker::Model::UpdateArtifactRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateArtifactRequest.h:32
Aws::SageMaker::Model::UpdateArtifactRequest::GetArtifactArn
const Aws::String & GetArtifactArn() const
Definition: UpdateArtifactRequest.h:42
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::UpdateArtifactRequest::GetProperties
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
Definition: UpdateArtifactRequest.h:124
SageMaker_EXPORTS.h
Aws::SageMaker::Model::UpdateArtifactRequest::AddProperties
UpdateArtifactRequest & AddProperties(const char *key, Aws::String &&value)
Definition: UpdateArtifactRequest.h:174
Aws::SageMaker::Model::UpdateArtifactRequest::WithProperties
UpdateArtifactRequest & WithProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition: UpdateArtifactRequest.h:144
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::UpdateArtifactRequest::AddProperties
UpdateArtifactRequest & AddProperties(Aws::String &&key, const Aws::String &value)
Definition: UpdateArtifactRequest.h:159
Aws::SageMaker::Model::UpdateArtifactRequest::SetPropertiesToRemove
void SetPropertiesToRemove(const Aws::Vector< Aws::String > &value)
Definition: UpdateArtifactRequest.h:200
Aws::SageMaker::Model::UpdateArtifactRequest::ArtifactNameHasBeenSet
bool ArtifactNameHasBeenSet() const
Definition: UpdateArtifactRequest.h:88
Aws::SageMaker::Model::UpdateArtifactRequest::AddProperties
UpdateArtifactRequest & AddProperties(const Aws::String &key, Aws::String &&value)
Definition: UpdateArtifactRequest.h:164
Aws::SageMaker::Model::UpdateArtifactRequest::PropertiesToRemoveHasBeenSet
bool PropertiesToRemoveHasBeenSet() const
Definition: UpdateArtifactRequest.h:195
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::UpdateArtifactRequest::WithArtifactArn
UpdateArtifactRequest & WithArtifactArn(Aws::String &&value)
Definition: UpdateArtifactRequest.h:72
Aws::SageMaker::Model::UpdateArtifactRequest::WithProperties
UpdateArtifactRequest & WithProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition: UpdateArtifactRequest.h:149
Aws::SageMaker::Model::UpdateArtifactRequest::AddProperties
UpdateArtifactRequest & AddProperties(Aws::String &&key, const char *value)
Definition: UpdateArtifactRequest.h:179
Aws::SageMaker::Model::UpdateArtifactRequest::SetPropertiesToRemove
void SetPropertiesToRemove(Aws::Vector< Aws::String > &&value)
Definition: UpdateArtifactRequest.h:205
Aws::SageMaker::Model::UpdateArtifactRequest
Definition: UpdateArtifactRequest.h:24
AWSVector.h
Aws::SageMaker::Model::UpdateArtifactRequest::AddPropertiesToRemove
UpdateArtifactRequest & AddPropertiesToRemove(Aws::String &&value)
Definition: UpdateArtifactRequest.h:225
Aws::SageMaker::Model::UpdateArtifactRequest::GetArtifactName
const Aws::String & GetArtifactName() const
Definition: UpdateArtifactRequest.h:83
Aws::SageMaker::Model::UpdateArtifactRequest::WithArtifactName
UpdateArtifactRequest & WithArtifactName(const char *value)
Definition: UpdateArtifactRequest.h:118
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::UpdateArtifactRequest::ArtifactArnHasBeenSet
bool ArtifactArnHasBeenSet() const
Definition: UpdateArtifactRequest.h:47
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::UpdateArtifactRequest::SetArtifactName
void SetArtifactName(const char *value)
Definition: UpdateArtifactRequest.h:103
Aws::SageMaker::Model::UpdateArtifactRequest::UpdateArtifactRequest
UpdateArtifactRequest()
Aws::SageMaker::Model::UpdateArtifactRequest::WithPropertiesToRemove
UpdateArtifactRequest & WithPropertiesToRemove(Aws::Vector< Aws::String > &&value)
Definition: UpdateArtifactRequest.h:215
Aws::SageMaker::Model::UpdateArtifactRequest::AddPropertiesToRemove
UpdateArtifactRequest & AddPropertiesToRemove(const char *value)
Definition: UpdateArtifactRequest.h:230
Aws::SageMaker::Model::UpdateArtifactRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SageMaker::Model::UpdateArtifactRequest::SetArtifactArn
void SetArtifactArn(const char *value)
Definition: UpdateArtifactRequest.h:62
Aws::SageMaker::Model::UpdateArtifactRequest::SetArtifactArn
void SetArtifactArn(Aws::String &&value)
Definition: UpdateArtifactRequest.h:57
Aws::SageMaker::Model::UpdateArtifactRequest::SetProperties
void SetProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition: UpdateArtifactRequest.h:139
Aws::SageMaker::Model::UpdateArtifactRequest::WithArtifactName
UpdateArtifactRequest & WithArtifactName(Aws::String &&value)
Definition: UpdateArtifactRequest.h:113
AWSString.h
Aws::SageMaker::Model::UpdateArtifactRequest::AddProperties
UpdateArtifactRequest & AddProperties(const Aws::String &key, const Aws::String &value)
Definition: UpdateArtifactRequest.h:154
Aws::SageMaker::Model::UpdateArtifactRequest::SetProperties
void SetProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition: UpdateArtifactRequest.h:134
Aws::SageMaker::Model::UpdateArtifactRequest::SetArtifactArn
void SetArtifactArn(const Aws::String &value)
Definition: UpdateArtifactRequest.h:52
Aws::SageMaker::Model::UpdateArtifactRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::UpdateArtifactRequest::GetPropertiesToRemove
const Aws::Vector< Aws::String > & GetPropertiesToRemove() const
Definition: UpdateArtifactRequest.h:190
Aws::SageMaker::Model::UpdateArtifactRequest::SetArtifactName
void SetArtifactName(Aws::String &&value)
Definition: UpdateArtifactRequest.h:98
Aws::SageMaker::Model::UpdateArtifactRequest::AddProperties
UpdateArtifactRequest & AddProperties(const char *key, const char *value)
Definition: UpdateArtifactRequest.h:184
Aws::SageMaker::Model::UpdateArtifactRequest::SetArtifactName
void SetArtifactName(const Aws::String &value)
Definition: UpdateArtifactRequest.h:93
Aws::SageMaker::Model::UpdateArtifactRequest::WithArtifactArn
UpdateArtifactRequest & WithArtifactArn(const Aws::String &value)
Definition: UpdateArtifactRequest.h:67
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::UpdateArtifactRequest::WithArtifactArn
UpdateArtifactRequest & WithArtifactArn(const char *value)
Definition: UpdateArtifactRequest.h:77
SageMakerRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::UpdateArtifactRequest::AddProperties
UpdateArtifactRequest & AddProperties(Aws::String &&key, Aws::String &&value)
Definition: UpdateArtifactRequest.h:169
Aws::SageMaker::Model::UpdateArtifactRequest::WithArtifactName
UpdateArtifactRequest & WithArtifactName(const Aws::String &value)
Definition: UpdateArtifactRequest.h:108
Aws::SageMaker::Model::UpdateArtifactRequest::WithPropertiesToRemove
UpdateArtifactRequest & WithPropertiesToRemove(const Aws::Vector< Aws::String > &value)
Definition: UpdateArtifactRequest.h:210
Aws::SageMaker::Model::UpdateArtifactRequest::PropertiesHasBeenSet
bool PropertiesHasBeenSet() const
Definition: UpdateArtifactRequest.h:129
AWSMap.h
Aws::SageMaker::Model::UpdateArtifactRequest::AddPropertiesToRemove
UpdateArtifactRequest & AddPropertiesToRemove(const Aws::String &value)
Definition: UpdateArtifactRequest.h:220
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19