AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateArtifactRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SageMaker
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SAGEMAKER_API UpdateArtifactRequest() = default;
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_SAGEMAKER_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetArtifactArn() const { return m_artifactArn; }
44 inline bool ArtifactArnHasBeenSet() const { return m_artifactArnHasBeenSet; }
45 template<typename ArtifactArnT = Aws::String>
46 void SetArtifactArn(ArtifactArnT&& value) { m_artifactArnHasBeenSet = true; m_artifactArn = std::forward<ArtifactArnT>(value); }
47 template<typename ArtifactArnT = Aws::String>
48 UpdateArtifactRequest& WithArtifactArn(ArtifactArnT&& value) { SetArtifactArn(std::forward<ArtifactArnT>(value)); return *this;}
50
52
55 inline const Aws::String& GetArtifactName() const { return m_artifactName; }
56 inline bool ArtifactNameHasBeenSet() const { return m_artifactNameHasBeenSet; }
57 template<typename ArtifactNameT = Aws::String>
58 void SetArtifactName(ArtifactNameT&& value) { m_artifactNameHasBeenSet = true; m_artifactName = std::forward<ArtifactNameT>(value); }
59 template<typename ArtifactNameT = Aws::String>
60 UpdateArtifactRequest& WithArtifactName(ArtifactNameT&& value) { SetArtifactName(std::forward<ArtifactNameT>(value)); return *this;}
62
64
67 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
68 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
69 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
70 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
71 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
72 UpdateArtifactRequest& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
73 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
74 UpdateArtifactRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
75 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
76 }
78
80
83 inline const Aws::Vector<Aws::String>& GetPropertiesToRemove() const { return m_propertiesToRemove; }
84 inline bool PropertiesToRemoveHasBeenSet() const { return m_propertiesToRemoveHasBeenSet; }
85 template<typename PropertiesToRemoveT = Aws::Vector<Aws::String>>
86 void SetPropertiesToRemove(PropertiesToRemoveT&& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove = std::forward<PropertiesToRemoveT>(value); }
87 template<typename PropertiesToRemoveT = Aws::Vector<Aws::String>>
88 UpdateArtifactRequest& WithPropertiesToRemove(PropertiesToRemoveT&& value) { SetPropertiesToRemove(std::forward<PropertiesToRemoveT>(value)); return *this;}
89 template<typename PropertiesToRemoveT = Aws::String>
90 UpdateArtifactRequest& AddPropertiesToRemove(PropertiesToRemoveT&& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove.emplace_back(std::forward<PropertiesToRemoveT>(value)); return *this; }
92 private:
93
94 Aws::String m_artifactArn;
95 bool m_artifactArnHasBeenSet = false;
96
97 Aws::String m_artifactName;
98 bool m_artifactNameHasBeenSet = false;
99
101 bool m_propertiesHasBeenSet = false;
102
103 Aws::Vector<Aws::String> m_propertiesToRemove;
104 bool m_propertiesToRemoveHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace SageMaker
109} // 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