AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLifecyclePolicyRequest.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 CreateLifecyclePolicyRequest();
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 "CreateLifecyclePolicy"; }
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 CreateLifecyclePolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
49 inline CreateLifecyclePolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
50 inline CreateLifecyclePolicyRequest& 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 CreateLifecyclePolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline CreateLifecyclePolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline CreateLifecyclePolicyRequest& 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 CreateLifecyclePolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
77 inline CreateLifecyclePolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 inline CreateLifecyclePolicyRequest& 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 CreateLifecyclePolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
91 inline CreateLifecyclePolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
92 inline CreateLifecyclePolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
94
96
99 inline const LifecyclePolicyType& GetType() const{ return m_type; }
100 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
101 inline void SetType(const LifecyclePolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
102 inline void SetType(LifecyclePolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
103 inline CreateLifecyclePolicyRequest& WithType(const LifecyclePolicyType& value) { SetType(value); return *this;}
104 inline CreateLifecyclePolicyRequest& WithType(LifecyclePolicyType&& value) { SetType(std::move(value)); return *this;}
106 private:
107
108 Aws::String m_clientToken;
109 bool m_clientTokenHasBeenSet = false;
110
111 Aws::String m_description;
112 bool m_descriptionHasBeenSet = false;
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 Aws::String m_policy;
118 bool m_policyHasBeenSet = false;
119
120 LifecyclePolicyType m_type;
121 bool m_typeHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace OpenSearchServerless
126} // namespace Aws
CreateLifecyclePolicyRequest & WithClientToken(const char *value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLifecyclePolicyRequest & WithDescription(Aws::String &&value)
CreateLifecyclePolicyRequest & WithName(const Aws::String &value)
CreateLifecyclePolicyRequest & WithPolicy(const Aws::String &value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
CreateLifecyclePolicyRequest & WithClientToken(const Aws::String &value)
CreateLifecyclePolicyRequest & WithName(Aws::String &&value)
CreateLifecyclePolicyRequest & WithType(LifecyclePolicyType &&value)
CreateLifecyclePolicyRequest & WithClientToken(Aws::String &&value)
CreateLifecyclePolicyRequest & WithPolicy(Aws::String &&value)
CreateLifecyclePolicyRequest & WithType(const LifecyclePolicyType &value)
CreateLifecyclePolicyRequest & WithDescription(const Aws::String &value)
CreateLifecyclePolicyRequest & WithDescription(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String