AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateSecurityPolicyRequest.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/SecurityPolicyType.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 UpdateSecurityPolicyRequest();
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 "UpdateSecurityPolicy"; }
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 UpdateSecurityPolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
49 inline UpdateSecurityPolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
50 inline UpdateSecurityPolicyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
52
54
58 inline const Aws::String& GetDescription() const{ return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
61 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
62 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
63 inline UpdateSecurityPolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
64 inline UpdateSecurityPolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
65 inline UpdateSecurityPolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
67
69
72 inline const Aws::String& GetName() const{ return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
75 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
76 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
77 inline UpdateSecurityPolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
78 inline UpdateSecurityPolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 inline UpdateSecurityPolicyRequest& WithName(const char* value) { SetName(value); return *this;}
81
83
86 inline const Aws::String& GetPolicy() const{ return m_policy; }
87 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
88 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
89 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
90 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
91 inline UpdateSecurityPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
92 inline UpdateSecurityPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
93 inline UpdateSecurityPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
95
97
100 inline const Aws::String& GetPolicyVersion() const{ return m_policyVersion; }
101 inline bool PolicyVersionHasBeenSet() const { return m_policyVersionHasBeenSet; }
102 inline void SetPolicyVersion(const Aws::String& value) { m_policyVersionHasBeenSet = true; m_policyVersion = value; }
103 inline void SetPolicyVersion(Aws::String&& value) { m_policyVersionHasBeenSet = true; m_policyVersion = std::move(value); }
104 inline void SetPolicyVersion(const char* value) { m_policyVersionHasBeenSet = true; m_policyVersion.assign(value); }
105 inline UpdateSecurityPolicyRequest& WithPolicyVersion(const Aws::String& value) { SetPolicyVersion(value); return *this;}
106 inline UpdateSecurityPolicyRequest& WithPolicyVersion(Aws::String&& value) { SetPolicyVersion(std::move(value)); return *this;}
107 inline UpdateSecurityPolicyRequest& WithPolicyVersion(const char* value) { SetPolicyVersion(value); return *this;}
109
111
114 inline const SecurityPolicyType& GetType() const{ return m_type; }
115 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
116 inline void SetType(const SecurityPolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
117 inline void SetType(SecurityPolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
118 inline UpdateSecurityPolicyRequest& WithType(const SecurityPolicyType& value) { SetType(value); return *this;}
119 inline UpdateSecurityPolicyRequest& WithType(SecurityPolicyType&& value) { SetType(std::move(value)); return *this;}
121 private:
122
123 Aws::String m_clientToken;
124 bool m_clientTokenHasBeenSet = false;
125
126 Aws::String m_description;
127 bool m_descriptionHasBeenSet = false;
128
129 Aws::String m_name;
130 bool m_nameHasBeenSet = false;
131
132 Aws::String m_policy;
133 bool m_policyHasBeenSet = false;
134
135 Aws::String m_policyVersion;
136 bool m_policyVersionHasBeenSet = false;
137
138 SecurityPolicyType m_type;
139 bool m_typeHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace OpenSearchServerless
144} // namespace Aws
UpdateSecurityPolicyRequest & WithName(const Aws::String &value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateSecurityPolicyRequest & WithClientToken(const char *value)
UpdateSecurityPolicyRequest & WithPolicyVersion(const Aws::String &value)
UpdateSecurityPolicyRequest & WithPolicy(const Aws::String &value)
UpdateSecurityPolicyRequest & WithDescription(Aws::String &&value)
UpdateSecurityPolicyRequest & WithClientToken(const Aws::String &value)
UpdateSecurityPolicyRequest & WithName(Aws::String &&value)
UpdateSecurityPolicyRequest & WithClientToken(Aws::String &&value)
UpdateSecurityPolicyRequest & WithType(SecurityPolicyType &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
UpdateSecurityPolicyRequest & WithType(const SecurityPolicyType &value)
UpdateSecurityPolicyRequest & WithPolicy(Aws::String &&value)
UpdateSecurityPolicyRequest & WithDescription(const char *value)
UpdateSecurityPolicyRequest & WithPolicyVersion(Aws::String &&value)
UpdateSecurityPolicyRequest & WithPolicyVersion(const char *value)
UpdateSecurityPolicyRequest & WithDescription(const Aws::String &value)
UpdateSecurityPolicyRequest & WithPolicy(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String