AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateLifecyclePolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
10#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
11#include <aws/opensearchserverless/model/LifecyclePolicyType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace OpenSearchServerless {
17namespace Model {
18
22 public:
23 AWS_OPENSEARCHSERVERLESS_API CreateLifecyclePolicyRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateLifecyclePolicy"; }
30
31 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
32
33 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline LifecyclePolicyType GetType() const { return m_type; }
40 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
41 inline void SetType(LifecyclePolicyType value) {
42 m_typeHasBeenSet = true;
43 m_type = value;
44 }
46 SetType(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetPolicy() const { return m_policy; }
92 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
93 template <typename PolicyT = Aws::String>
94 void SetPolicy(PolicyT&& value) {
95 m_policyHasBeenSet = true;
96 m_policy = std::forward<PolicyT>(value);
97 }
98 template <typename PolicyT = Aws::String>
100 SetPolicy(std::forward<PolicyT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetClientToken() const { return m_clientToken; }
110 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
111 template <typename ClientTokenT = Aws::String>
112 void SetClientToken(ClientTokenT&& value) {
113 m_clientTokenHasBeenSet = true;
114 m_clientToken = std::forward<ClientTokenT>(value);
115 }
116 template <typename ClientTokenT = Aws::String>
118 SetClientToken(std::forward<ClientTokenT>(value));
119 return *this;
120 }
122 private:
124
125 Aws::String m_name;
126
127 Aws::String m_description;
128
129 Aws::String m_policy;
130
132 bool m_typeHasBeenSet = false;
133 bool m_nameHasBeenSet = false;
134 bool m_descriptionHasBeenSet = false;
135 bool m_policyHasBeenSet = false;
136 bool m_clientTokenHasBeenSet = true;
137};
138
139} // namespace Model
140} // namespace OpenSearchServerless
141} // namespace Aws
CreateLifecyclePolicyRequest & WithClientToken(ClientTokenT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
AWS_OPENSEARCHSERVERLESS_API CreateLifecyclePolicyRequest()=default
CreateLifecyclePolicyRequest & WithDescription(DescriptionT &&value)
CreateLifecyclePolicyRequest & WithType(LifecyclePolicyType value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String