AWS SDK for C++  1.9.109
AWS SDK for C++
DeleteArtifactRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SageMaker
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DeleteArtifact"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetArtifactArn() const{ return m_artifactArn; }
42 
46  inline bool ArtifactArnHasBeenSet() const { return m_artifactArnHasBeenSet; }
47 
51  inline void SetArtifactArn(const Aws::String& value) { m_artifactArnHasBeenSet = true; m_artifactArn = value; }
52 
56  inline void SetArtifactArn(Aws::String&& value) { m_artifactArnHasBeenSet = true; m_artifactArn = std::move(value); }
57 
61  inline void SetArtifactArn(const char* value) { m_artifactArnHasBeenSet = true; m_artifactArn.assign(value); }
62 
66  inline DeleteArtifactRequest& WithArtifactArn(const Aws::String& value) { SetArtifactArn(value); return *this;}
67 
71  inline DeleteArtifactRequest& WithArtifactArn(Aws::String&& value) { SetArtifactArn(std::move(value)); return *this;}
72 
76  inline DeleteArtifactRequest& WithArtifactArn(const char* value) { SetArtifactArn(value); return *this;}
77 
78 
82  inline const ArtifactSource& GetSource() const{ return m_source; }
83 
87  inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
88 
92  inline void SetSource(const ArtifactSource& value) { m_sourceHasBeenSet = true; m_source = value; }
93 
97  inline void SetSource(ArtifactSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
98 
102  inline DeleteArtifactRequest& WithSource(const ArtifactSource& value) { SetSource(value); return *this;}
103 
107  inline DeleteArtifactRequest& WithSource(ArtifactSource&& value) { SetSource(std::move(value)); return *this;}
108 
109  private:
110 
111  Aws::String m_artifactArn;
112  bool m_artifactArnHasBeenSet;
113 
114  ArtifactSource m_source;
115  bool m_sourceHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace SageMaker
120 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
SageMaker_EXPORTS.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::DeleteArtifactRequest::GetArtifactArn
const Aws::String & GetArtifactArn() const
Definition: DeleteArtifactRequest.h:41
Aws::SageMaker::Model::DeleteArtifactRequest::WithSource
DeleteArtifactRequest & WithSource(const ArtifactSource &value)
Definition: DeleteArtifactRequest.h:102
Aws::SageMaker::Model::DeleteArtifactRequest::SetSource
void SetSource(ArtifactSource &&value)
Definition: DeleteArtifactRequest.h:97
ArtifactSource.h
Aws::SageMaker::Model::DeleteArtifactRequest::SetSource
void SetSource(const ArtifactSource &value)
Definition: DeleteArtifactRequest.h:92
Aws::SageMaker::Model::DeleteArtifactRequest::ArtifactArnHasBeenSet
bool ArtifactArnHasBeenSet() const
Definition: DeleteArtifactRequest.h:46
Aws::SageMaker::Model::DeleteArtifactRequest
Definition: DeleteArtifactRequest.h:23
Aws::SageMaker::Model::DeleteArtifactRequest::GetSource
const ArtifactSource & GetSource() const
Definition: DeleteArtifactRequest.h:82
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::DeleteArtifactRequest::DeleteArtifactRequest
DeleteArtifactRequest()
Aws::SageMaker::Model::DeleteArtifactRequest::WithArtifactArn
DeleteArtifactRequest & WithArtifactArn(const Aws::String &value)
Definition: DeleteArtifactRequest.h:66
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::DeleteArtifactRequest::SourceHasBeenSet
bool SourceHasBeenSet() const
Definition: DeleteArtifactRequest.h:87
Aws::SageMaker::Model::DeleteArtifactRequest::SetArtifactArn
void SetArtifactArn(const char *value)
Definition: DeleteArtifactRequest.h:61
Aws::SageMaker::Model::DeleteArtifactRequest::WithSource
DeleteArtifactRequest & WithSource(ArtifactSource &&value)
Definition: DeleteArtifactRequest.h:107
Aws::SageMaker::Model::DeleteArtifactRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::ArtifactSource
Definition: ArtifactSource.h:35
AWSString.h
Aws::SageMaker::Model::DeleteArtifactRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::DeleteArtifactRequest::WithArtifactArn
DeleteArtifactRequest & WithArtifactArn(Aws::String &&value)
Definition: DeleteArtifactRequest.h:71
SageMakerRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::DeleteArtifactRequest::WithArtifactArn
DeleteArtifactRequest & WithArtifactArn(const char *value)
Definition: DeleteArtifactRequest.h:76
Aws::SageMaker::Model::DeleteArtifactRequest::SetArtifactArn
void SetArtifactArn(Aws::String &&value)
Definition: DeleteArtifactRequest.h:56
Aws::SageMaker::Model::DeleteArtifactRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteArtifactRequest.h:31
Aws::SageMaker::Model::DeleteArtifactRequest::SetArtifactArn
void SetArtifactArn(const Aws::String &value)
Definition: DeleteArtifactRequest.h:51