AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateLifecyclePolicyRequest.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
9#include <aws/opensearchserverless/model/LifecyclePolicyType.h>
10#include <aws/core/utils/memory/stl/AWSString.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 UpdateLifecyclePolicyRequest() = default;
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 "UpdateLifecyclePolicy"; }
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 LifecyclePolicyType GetType() const { return m_type; }
44 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
45 inline void SetType(LifecyclePolicyType value) { m_typeHasBeenSet = true; m_type = value; }
46 inline UpdateLifecyclePolicyRequest& WithType(LifecyclePolicyType value) { SetType(value); return *this;}
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 UpdateLifecyclePolicyRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetPolicyVersion() const { return m_policyVersion; }
66 inline bool PolicyVersionHasBeenSet() const { return m_policyVersionHasBeenSet; }
67 template<typename PolicyVersionT = Aws::String>
68 void SetPolicyVersion(PolicyVersionT&& value) { m_policyVersionHasBeenSet = true; m_policyVersion = std::forward<PolicyVersionT>(value); }
69 template<typename PolicyVersionT = Aws::String>
70 UpdateLifecyclePolicyRequest& WithPolicyVersion(PolicyVersionT&& value) { SetPolicyVersion(std::forward<PolicyVersionT>(value)); return *this;}
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template<typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
81 template<typename DescriptionT = Aws::String>
82 UpdateLifecyclePolicyRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
84
86
89 inline const Aws::String& GetPolicy() const { return m_policy; }
90 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
91 template<typename PolicyT = Aws::String>
92 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
93 template<typename PolicyT = Aws::String>
94 UpdateLifecyclePolicyRequest& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
96
98
101 inline const Aws::String& GetClientToken() const { return m_clientToken; }
102 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
103 template<typename ClientTokenT = Aws::String>
104 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
105 template<typename ClientTokenT = Aws::String>
106 UpdateLifecyclePolicyRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
108 private:
109
111 bool m_typeHasBeenSet = false;
112
113 Aws::String m_name;
114 bool m_nameHasBeenSet = false;
115
116 Aws::String m_policyVersion;
117 bool m_policyVersionHasBeenSet = false;
118
119 Aws::String m_description;
120 bool m_descriptionHasBeenSet = false;
121
122 Aws::String m_policy;
123 bool m_policyHasBeenSet = false;
124
126 bool m_clientTokenHasBeenSet = true;
127 };
128
129} // namespace Model
130} // namespace OpenSearchServerless
131} // namespace Aws
UpdateLifecyclePolicyRequest & WithPolicyVersion(PolicyVersionT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
UpdateLifecyclePolicyRequest & WithDescription(DescriptionT &&value)
UpdateLifecyclePolicyRequest & WithType(LifecyclePolicyType value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_OPENSEARCHSERVERLESS_API UpdateLifecyclePolicyRequest()=default
UpdateLifecyclePolicyRequest & WithClientToken(ClientTokenT &&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