AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/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 UpdateLifecyclePolicyRequest();
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 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 UpdateLifecyclePolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
49 inline UpdateLifecyclePolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
50 inline UpdateLifecyclePolicyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
52
54
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline UpdateLifecyclePolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline UpdateLifecyclePolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline UpdateLifecyclePolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
71 inline const Aws::String& GetName() const{ return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
74 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
75 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
76 inline UpdateLifecyclePolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
77 inline UpdateLifecyclePolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 inline UpdateLifecyclePolicyRequest& WithName(const char* value) { SetName(value); return *this;}
80
82
85 inline const Aws::String& GetPolicy() const{ return m_policy; }
86 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
87 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
88 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
89 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
90 inline UpdateLifecyclePolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
91 inline UpdateLifecyclePolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
92 inline UpdateLifecyclePolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
94
96
99 inline const Aws::String& GetPolicyVersion() const{ return m_policyVersion; }
100 inline bool PolicyVersionHasBeenSet() const { return m_policyVersionHasBeenSet; }
101 inline void SetPolicyVersion(const Aws::String& value) { m_policyVersionHasBeenSet = true; m_policyVersion = value; }
102 inline void SetPolicyVersion(Aws::String&& value) { m_policyVersionHasBeenSet = true; m_policyVersion = std::move(value); }
103 inline void SetPolicyVersion(const char* value) { m_policyVersionHasBeenSet = true; m_policyVersion.assign(value); }
104 inline UpdateLifecyclePolicyRequest& WithPolicyVersion(const Aws::String& value) { SetPolicyVersion(value); return *this;}
105 inline UpdateLifecyclePolicyRequest& WithPolicyVersion(Aws::String&& value) { SetPolicyVersion(std::move(value)); return *this;}
106 inline UpdateLifecyclePolicyRequest& WithPolicyVersion(const char* value) { SetPolicyVersion(value); return *this;}
108
110
113 inline const LifecyclePolicyType& GetType() const{ return m_type; }
114 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
115 inline void SetType(const LifecyclePolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
116 inline void SetType(LifecyclePolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
117 inline UpdateLifecyclePolicyRequest& WithType(const LifecyclePolicyType& value) { SetType(value); return *this;}
118 inline UpdateLifecyclePolicyRequest& WithType(LifecyclePolicyType&& value) { SetType(std::move(value)); return *this;}
120 private:
121
122 Aws::String m_clientToken;
123 bool m_clientTokenHasBeenSet = false;
124
125 Aws::String m_description;
126 bool m_descriptionHasBeenSet = false;
127
128 Aws::String m_name;
129 bool m_nameHasBeenSet = false;
130
131 Aws::String m_policy;
132 bool m_policyHasBeenSet = false;
133
134 Aws::String m_policyVersion;
135 bool m_policyVersionHasBeenSet = false;
136
137 LifecyclePolicyType m_type;
138 bool m_typeHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace OpenSearchServerless
143} // namespace Aws
UpdateLifecyclePolicyRequest & WithType(const LifecyclePolicyType &value)
UpdateLifecyclePolicyRequest & WithName(const Aws::String &value)
UpdateLifecyclePolicyRequest & WithDescription(const char *value)
UpdateLifecyclePolicyRequest & WithPolicyVersion(const char *value)
UpdateLifecyclePolicyRequest & WithPolicyVersion(Aws::String &&value)
UpdateLifecyclePolicyRequest & WithDescription(const Aws::String &value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
UpdateLifecyclePolicyRequest & WithPolicy(Aws::String &&value)
UpdateLifecyclePolicyRequest & WithClientToken(const char *value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateLifecyclePolicyRequest & WithClientToken(const Aws::String &value)
UpdateLifecyclePolicyRequest & WithPolicy(const Aws::String &value)
UpdateLifecyclePolicyRequest & WithName(Aws::String &&value)
UpdateLifecyclePolicyRequest & WithDescription(Aws::String &&value)
UpdateLifecyclePolicyRequest & WithClientToken(Aws::String &&value)
UpdateLifecyclePolicyRequest & WithPolicyVersion(const Aws::String &value)
UpdateLifecyclePolicyRequest & WithType(LifecyclePolicyType &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String