AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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 <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace OpenSearchServerless
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_OPENSEARCHSERVERLESS_API CreateSecurityConfigRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateSecurityConfig"; }
35
36 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
37
38 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline SecurityConfigType GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(SecurityConfigType value) { m_typeHasBeenSet = true; m_type = value; }
48 inline CreateSecurityConfigRequest& WithType(SecurityConfigType value) { SetType(value); return *this;}
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template<typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 CreateSecurityConfigRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template<typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
71 template<typename DescriptionT = Aws::String>
72 CreateSecurityConfigRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
74
76
81 inline const SamlConfigOptions& GetSamlOptions() const { return m_samlOptions; }
82 inline bool SamlOptionsHasBeenSet() const { return m_samlOptionsHasBeenSet; }
83 template<typename SamlOptionsT = SamlConfigOptions>
84 void SetSamlOptions(SamlOptionsT&& value) { m_samlOptionsHasBeenSet = true; m_samlOptions = std::forward<SamlOptionsT>(value); }
85 template<typename SamlOptionsT = SamlConfigOptions>
86 CreateSecurityConfigRequest& WithSamlOptions(SamlOptionsT&& value) { SetSamlOptions(std::forward<SamlOptionsT>(value)); return *this;}
88
90
94 inline const CreateIamIdentityCenterConfigOptions& GetIamIdentityCenterOptions() const { return m_iamIdentityCenterOptions; }
95 inline bool IamIdentityCenterOptionsHasBeenSet() const { return m_iamIdentityCenterOptionsHasBeenSet; }
96 template<typename IamIdentityCenterOptionsT = CreateIamIdentityCenterConfigOptions>
97 void SetIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) { m_iamIdentityCenterOptionsHasBeenSet = true; m_iamIdentityCenterOptions = std::forward<IamIdentityCenterOptionsT>(value); }
98 template<typename IamIdentityCenterOptionsT = CreateIamIdentityCenterConfigOptions>
99 CreateSecurityConfigRequest& WithIamIdentityCenterOptions(IamIdentityCenterOptionsT&& value) { SetIamIdentityCenterOptions(std::forward<IamIdentityCenterOptionsT>(value)); return *this;}
101
103
106 inline const Aws::String& GetClientToken() const { return m_clientToken; }
107 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
108 template<typename ClientTokenT = Aws::String>
109 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
110 template<typename ClientTokenT = Aws::String>
111 CreateSecurityConfigRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
113 private:
114
116 bool m_typeHasBeenSet = false;
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Aws::String m_description;
122 bool m_descriptionHasBeenSet = false;
123
124 SamlConfigOptions m_samlOptions;
125 bool m_samlOptionsHasBeenSet = false;
126
127 CreateIamIdentityCenterConfigOptions m_iamIdentityCenterOptions;
128 bool m_iamIdentityCenterOptionsHasBeenSet = false;
129
131 bool m_clientTokenHasBeenSet = true;
132 };
133
134} // namespace Model
135} // namespace OpenSearchServerless
136} // 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 & 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