AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateSecurityConfigRequest.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/CreateIamIdentityCenterConfigOptions.h>
12#include <aws/opensearchserverless/model/IamFederationConfigOptions.h>
13#include <aws/opensearchserverless/model/SamlConfigOptions.h>
14#include <aws/opensearchserverless/model/SecurityConfigType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace OpenSearchServerless {
20namespace Model {
21
25 public:
26 AWS_OPENSEARCHSERVERLESS_API CreateSecurityConfigRequest() = 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 "CreateSecurityConfig"; }
33
34 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
35
36 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
42 inline SecurityConfigType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(SecurityConfigType value) {
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
96 inline const SamlConfigOptions& GetSamlOptions() const { return m_samlOptions; }
97 inline bool SamlOptionsHasBeenSet() const { return m_samlOptionsHasBeenSet; }
98 template <typename SamlOptionsT = SamlConfigOptions>
99 void SetSamlOptions(SamlOptionsT&& value) {
100 m_samlOptionsHasBeenSet = true;
101 m_samlOptions = std::forward<SamlOptionsT>(value);
102 }
103 template <typename SamlOptionsT = SamlConfigOptions>
105 SetSamlOptions(std::forward<SamlOptionsT>(value));
106 return *this;
107 }
109
111
115 inline const CreateIamIdentityCenterConfigOptions& GetIamIdentityCenterOptions() const { return m_iamIdentityCenterOptions; }
116 inline bool IamIdentityCenterOptionsHasBeenSet() const { return m_iamIdentityCenterOptionsHasBeenSet; }
117 template <typename IamIdentityCenterOptionsT = CreateIamIdentityCenterConfigOptions>
118 void SetIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) {
119 m_iamIdentityCenterOptionsHasBeenSet = true;
120 m_iamIdentityCenterOptions = std::forward<IamIdentityCenterOptionsT>(value);
121 }
122 template <typename IamIdentityCenterOptionsT = CreateIamIdentityCenterConfigOptions>
123 CreateSecurityConfigRequest& WithIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) {
124 SetIamIdentityCenterOptions(std::forward<IamIdentityCenterOptionsT>(value));
125 return *this;
126 }
128
130
135 inline const IamFederationConfigOptions& GetIamFederationOptions() const { return m_iamFederationOptions; }
136 inline bool IamFederationOptionsHasBeenSet() const { return m_iamFederationOptionsHasBeenSet; }
137 template <typename IamFederationOptionsT = IamFederationConfigOptions>
138 void SetIamFederationOptions(IamFederationOptionsT&& value) {
139 m_iamFederationOptionsHasBeenSet = true;
140 m_iamFederationOptions = std::forward<IamFederationOptionsT>(value);
141 }
142 template <typename IamFederationOptionsT = IamFederationConfigOptions>
144 SetIamFederationOptions(std::forward<IamFederationOptionsT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetClientToken() const { return m_clientToken; }
154 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
155 template <typename ClientTokenT = Aws::String>
156 void SetClientToken(ClientTokenT&& value) {
157 m_clientTokenHasBeenSet = true;
158 m_clientToken = std::forward<ClientTokenT>(value);
159 }
160 template <typename ClientTokenT = Aws::String>
162 SetClientToken(std::forward<ClientTokenT>(value));
163 return *this;
164 }
166 private:
168
169 Aws::String m_name;
170
171 Aws::String m_description;
172
173 SamlConfigOptions m_samlOptions;
174
175 CreateIamIdentityCenterConfigOptions m_iamIdentityCenterOptions;
176
177 IamFederationConfigOptions m_iamFederationOptions;
178
180 bool m_typeHasBeenSet = false;
181 bool m_nameHasBeenSet = false;
182 bool m_descriptionHasBeenSet = false;
183 bool m_samlOptionsHasBeenSet = false;
184 bool m_iamIdentityCenterOptionsHasBeenSet = false;
185 bool m_iamFederationOptionsHasBeenSet = false;
186 bool m_clientTokenHasBeenSet = true;
187};
188
189} // namespace Model
190} // namespace OpenSearchServerless
191} // namespace Aws
CreateSecurityConfigRequest & WithIamIdentityCenterOptions(IamIdentityCenterOptionsT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
CreateSecurityConfigRequest & WithDescription(DescriptionT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const CreateIamIdentityCenterConfigOptions & GetIamIdentityCenterOptions() const
CreateSecurityConfigRequest & WithSamlOptions(SamlOptionsT &&value)
AWS_OPENSEARCHSERVERLESS_API CreateSecurityConfigRequest()=default
CreateSecurityConfigRequest & WithType(SecurityConfigType value)
CreateSecurityConfigRequest & WithIamFederationOptions(IamFederationOptionsT &&value)
CreateSecurityConfigRequest & 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