AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DeleteDomainRequest.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/RetentionPolicy.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SageMaker {
16namespace Model {
17
21 public:
22 AWS_SAGEMAKER_API DeleteDomainRequest() = 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 "DeleteDomain"; }
29
30 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetDomainId() const { return m_domainId; }
39 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
40 template <typename DomainIdT = Aws::String>
41 void SetDomainId(DomainIdT&& value) {
42 m_domainIdHasBeenSet = true;
43 m_domainId = std::forward<DomainIdT>(value);
44 }
45 template <typename DomainIdT = Aws::String>
46 DeleteDomainRequest& WithDomainId(DomainIdT&& value) {
47 SetDomainId(std::forward<DomainIdT>(value));
48 return *this;
49 }
51
53
58 inline const RetentionPolicy& GetRetentionPolicy() const { return m_retentionPolicy; }
59 inline bool RetentionPolicyHasBeenSet() const { return m_retentionPolicyHasBeenSet; }
60 template <typename RetentionPolicyT = RetentionPolicy>
61 void SetRetentionPolicy(RetentionPolicyT&& value) {
62 m_retentionPolicyHasBeenSet = true;
63 m_retentionPolicy = std::forward<RetentionPolicyT>(value);
64 }
65 template <typename RetentionPolicyT = RetentionPolicy>
66 DeleteDomainRequest& WithRetentionPolicy(RetentionPolicyT&& value) {
67 SetRetentionPolicy(std::forward<RetentionPolicyT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_domainId;
73
74 RetentionPolicy m_retentionPolicy;
75 bool m_domainIdHasBeenSet = false;
76 bool m_retentionPolicyHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace SageMaker
81} // 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