AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DeleteArtifactRequest.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#include <aws/sagemaker/model/ArtifactSource.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SageMaker {
16namespace Model {
17
21 public:
22 AWS_SAGEMAKER_API DeleteArtifactRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DeleteArtifact"; }
29
30 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetArtifactArn() const { return m_artifactArn; }
39 inline bool ArtifactArnHasBeenSet() const { return m_artifactArnHasBeenSet; }
40 template <typename ArtifactArnT = Aws::String>
41 void SetArtifactArn(ArtifactArnT&& value) {
42 m_artifactArnHasBeenSet = true;
43 m_artifactArn = std::forward<ArtifactArnT>(value);
44 }
45 template <typename ArtifactArnT = Aws::String>
46 DeleteArtifactRequest& WithArtifactArn(ArtifactArnT&& value) {
47 SetArtifactArn(std::forward<ArtifactArnT>(value));
48 return *this;
49 }
51
53
56 inline const ArtifactSource& GetSource() const { return m_source; }
57 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
58 template <typename SourceT = ArtifactSource>
59 void SetSource(SourceT&& value) {
60 m_sourceHasBeenSet = true;
61 m_source = std::forward<SourceT>(value);
62 }
63 template <typename SourceT = ArtifactSource>
65 SetSource(std::forward<SourceT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_artifactArn;
71
72 ArtifactSource m_source;
73 bool m_artifactArnHasBeenSet = false;
74 bool m_sourceHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace SageMaker
79} // namespace Aws
AWS_SAGEMAKER_API DeleteArtifactRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
DeleteArtifactRequest & WithSource(SourceT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteArtifactRequest & WithArtifactArn(ArtifactArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String