AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
CreateSecurityConfigRequest.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
9#include <aws/opensearchserverless/model/SecurityConfigType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/opensearchserverless/model/SamlConfigOptions.h>
12#include <aws/opensearchserverless/model/CreateIamIdentityCenterConfigOptions.h>
13#include <aws/opensearchserverless/model/IamFederationConfigOptions.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace OpenSearchServerless
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_OPENSEARCHSERVERLESS_API CreateSecurityConfigRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateSecurityConfig"; }
36
37 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
38
39 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
46 inline SecurityConfigType GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(SecurityConfigType value) { m_typeHasBeenSet = true; m_type = value; }
49 inline CreateSecurityConfigRequest& WithType(SecurityConfigType value) { SetType(value); return *this;}
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template<typename NameT = Aws::String>
59 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
60 template<typename NameT = Aws::String>
61 CreateSecurityConfigRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetDescription() const { return m_description; }
69 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
70 template<typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
72 template<typename DescriptionT = Aws::String>
73 CreateSecurityConfigRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
75
77
82 inline const SamlConfigOptions& GetSamlOptions() const { return m_samlOptions; }
83 inline bool SamlOptionsHasBeenSet() const { return m_samlOptionsHasBeenSet; }
84 template<typename SamlOptionsT = SamlConfigOptions>
85 void SetSamlOptions(SamlOptionsT&& value) { m_samlOptionsHasBeenSet = true; m_samlOptions = std::forward<SamlOptionsT>(value); }
86 template<typename SamlOptionsT = SamlConfigOptions>
87 CreateSecurityConfigRequest& WithSamlOptions(SamlOptionsT&& value) { SetSamlOptions(std::forward<SamlOptionsT>(value)); return *this;}
89
91
95 inline const CreateIamIdentityCenterConfigOptions& GetIamIdentityCenterOptions() const { return m_iamIdentityCenterOptions; }
96 inline bool IamIdentityCenterOptionsHasBeenSet() const { return m_iamIdentityCenterOptionsHasBeenSet; }
97 template<typename IamIdentityCenterOptionsT = CreateIamIdentityCenterConfigOptions>
98 void SetIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) { m_iamIdentityCenterOptionsHasBeenSet = true; m_iamIdentityCenterOptions = std::forward<IamIdentityCenterOptionsT>(value); }
99 template<typename IamIdentityCenterOptionsT = CreateIamIdentityCenterConfigOptions>
100 CreateSecurityConfigRequest& WithIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) { SetIamIdentityCenterOptions(std::forward<IamIdentityCenterOptionsT>(value)); return *this;}
102
104
109 inline const IamFederationConfigOptions& GetIamFederationOptions() const { return m_iamFederationOptions; }
110 inline bool IamFederationOptionsHasBeenSet() const { return m_iamFederationOptionsHasBeenSet; }
111 template<typename IamFederationOptionsT = IamFederationConfigOptions>
112 void SetIamFederationOptions(IamFederationOptionsT&& value) { m_iamFederationOptionsHasBeenSet = true; m_iamFederationOptions = std::forward<IamFederationOptionsT>(value); }
113 template<typename IamFederationOptionsT = IamFederationConfigOptions>
114 CreateSecurityConfigRequest& WithIamFederationOptions(IamFederationOptionsT&& value) { SetIamFederationOptions(std::forward<IamFederationOptionsT>(value)); return *this;}
116
118
121 inline const Aws::String& GetClientToken() const { return m_clientToken; }
122 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
123 template<typename ClientTokenT = Aws::String>
124 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
125 template<typename ClientTokenT = Aws::String>
126 CreateSecurityConfigRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
128 private:
129
131 bool m_typeHasBeenSet = false;
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
136 Aws::String m_description;
137 bool m_descriptionHasBeenSet = false;
138
139 SamlConfigOptions m_samlOptions;
140 bool m_samlOptionsHasBeenSet = false;
141
142 CreateIamIdentityCenterConfigOptions m_iamIdentityCenterOptions;
143 bool m_iamIdentityCenterOptionsHasBeenSet = false;
144
145 IamFederationConfigOptions m_iamFederationOptions;
146 bool m_iamFederationOptionsHasBeenSet = false;
147
149 bool m_clientTokenHasBeenSet = true;
150 };
151
152} // namespace Model
153} // namespace OpenSearchServerless
154} // 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