AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DeleteDomainRequest.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/sagemaker/model/RetentionPolicy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SageMaker
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SAGEMAKER_API DeleteDomainRequest() = default;
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 "DeleteDomain"; }
32
33 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetDomainId() const { return m_domainId; }
43 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
44 template<typename DomainIdT = Aws::String>
45 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
46 template<typename DomainIdT = Aws::String>
47 DeleteDomainRequest& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
49
51
56 inline const RetentionPolicy& GetRetentionPolicy() const { return m_retentionPolicy; }
57 inline bool RetentionPolicyHasBeenSet() const { return m_retentionPolicyHasBeenSet; }
58 template<typename RetentionPolicyT = RetentionPolicy>
59 void SetRetentionPolicy(RetentionPolicyT&& value) { m_retentionPolicyHasBeenSet = true; m_retentionPolicy = std::forward<RetentionPolicyT>(value); }
60 template<typename RetentionPolicyT = RetentionPolicy>
61 DeleteDomainRequest& WithRetentionPolicy(RetentionPolicyT&& value) { SetRetentionPolicy(std::forward<RetentionPolicyT>(value)); return *this;}
63 private:
64
65 Aws::String m_domainId;
66 bool m_domainIdHasBeenSet = false;
67
68 RetentionPolicy m_retentionPolicy;
69 bool m_retentionPolicyHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace SageMaker
74} // namespace Aws
DeleteDomainRequest & WithDomainId(DomainIdT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetRetentionPolicy(RetentionPolicyT &&value)
AWS_SAGEMAKER_API DeleteDomainRequest()=default
virtual const char * GetServiceRequestName() const override
const RetentionPolicy & GetRetentionPolicy() const
DeleteDomainRequest & WithRetentionPolicy(RetentionPolicyT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String