AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeleteLifecyclePolicyRequest.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/opensearchserverless/model/LifecyclePolicyType.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace OpenSearchServerless
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_OPENSEARCHSERVERLESS_API DeleteLifecyclePolicyRequest();
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 "DeleteLifecyclePolicy"; }
33
34 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
35
36 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
46 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
47 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
48 inline DeleteLifecyclePolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
49 inline DeleteLifecyclePolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
50 inline DeleteLifecyclePolicyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
52
54
57 inline const Aws::String& GetName() const{ return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 inline DeleteLifecyclePolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
63 inline DeleteLifecyclePolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
64 inline DeleteLifecyclePolicyRequest& WithName(const char* value) { SetName(value); return *this;}
66
68
71 inline const LifecyclePolicyType& GetType() const{ return m_type; }
72 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
73 inline void SetType(const LifecyclePolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
74 inline void SetType(LifecyclePolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
75 inline DeleteLifecyclePolicyRequest& WithType(const LifecyclePolicyType& value) { SetType(value); return *this;}
76 inline DeleteLifecyclePolicyRequest& WithType(LifecyclePolicyType&& value) { SetType(std::move(value)); return *this;}
78 private:
79
80 Aws::String m_clientToken;
81 bool m_clientTokenHasBeenSet = false;
82
83 Aws::String m_name;
84 bool m_nameHasBeenSet = false;
85
87 bool m_typeHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace OpenSearchServerless
92} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteLifecyclePolicyRequest & WithClientToken(Aws::String &&value)
DeleteLifecyclePolicyRequest & WithType(LifecyclePolicyType &&value)
DeleteLifecyclePolicyRequest & WithClientToken(const Aws::String &value)
DeleteLifecyclePolicyRequest & WithClientToken(const char *value)
DeleteLifecyclePolicyRequest & WithName(const Aws::String &value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
DeleteLifecyclePolicyRequest & WithName(Aws::String &&value)
DeleteLifecyclePolicyRequest & WithType(const LifecyclePolicyType &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String