AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/core/utils/memory/stl/AWSString.h>
10#include <aws/opensearchserverless/model/CreateIamIdentityCenterConfigOptions.h>
11#include <aws/opensearchserverless/model/SamlConfigOptions.h>
12#include <aws/opensearchserverless/model/SecurityConfigType.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();
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 const Aws::String& GetClientToken() const{ return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
48 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
49 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
50 inline CreateSecurityConfigRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
51 inline CreateSecurityConfigRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
52 inline CreateSecurityConfigRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline CreateSecurityConfigRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline CreateSecurityConfigRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline CreateSecurityConfigRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
74 inline const CreateIamIdentityCenterConfigOptions& GetIamIdentityCenterOptions() const{ return m_iamIdentityCenterOptions; }
75 inline bool IamIdentityCenterOptionsHasBeenSet() const { return m_iamIdentityCenterOptionsHasBeenSet; }
76 inline void SetIamIdentityCenterOptions(const CreateIamIdentityCenterConfigOptions& value) { m_iamIdentityCenterOptionsHasBeenSet = true; m_iamIdentityCenterOptions = value; }
77 inline void SetIamIdentityCenterOptions(CreateIamIdentityCenterConfigOptions&& value) { m_iamIdentityCenterOptionsHasBeenSet = true; m_iamIdentityCenterOptions = std::move(value); }
81
83
86 inline const Aws::String& GetName() const{ return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
89 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
90 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
91 inline CreateSecurityConfigRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
92 inline CreateSecurityConfigRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
93 inline CreateSecurityConfigRequest& WithName(const char* value) { SetName(value); return *this;}
95
97
102 inline const SamlConfigOptions& GetSamlOptions() const{ return m_samlOptions; }
103 inline bool SamlOptionsHasBeenSet() const { return m_samlOptionsHasBeenSet; }
104 inline void SetSamlOptions(const SamlConfigOptions& value) { m_samlOptionsHasBeenSet = true; m_samlOptions = value; }
105 inline void SetSamlOptions(SamlConfigOptions&& value) { m_samlOptionsHasBeenSet = true; m_samlOptions = std::move(value); }
107 inline CreateSecurityConfigRequest& WithSamlOptions(SamlConfigOptions&& value) { SetSamlOptions(std::move(value)); return *this;}
109
111
114 inline const SecurityConfigType& GetType() const{ return m_type; }
115 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
116 inline void SetType(const SecurityConfigType& value) { m_typeHasBeenSet = true; m_type = value; }
117 inline void SetType(SecurityConfigType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
118 inline CreateSecurityConfigRequest& WithType(const SecurityConfigType& value) { SetType(value); return *this;}
119 inline CreateSecurityConfigRequest& WithType(SecurityConfigType&& 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 CreateIamIdentityCenterConfigOptions m_iamIdentityCenterOptions;
130 bool m_iamIdentityCenterOptionsHasBeenSet = false;
131
132 Aws::String m_name;
133 bool m_nameHasBeenSet = false;
134
135 SamlConfigOptions m_samlOptions;
136 bool m_samlOptionsHasBeenSet = false;
137
138 SecurityConfigType m_type;
139 bool m_typeHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace OpenSearchServerless
144} // namespace Aws
CreateSecurityConfigRequest & WithName(const Aws::String &value)
CreateSecurityConfigRequest & WithDescription(const char *value)
CreateSecurityConfigRequest & WithSamlOptions(const SamlConfigOptions &value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
void SetIamIdentityCenterOptions(CreateIamIdentityCenterConfigOptions &&value)
CreateSecurityConfigRequest & WithName(Aws::String &&value)
CreateSecurityConfigRequest & WithType(SecurityConfigType &&value)
CreateSecurityConfigRequest & WithClientToken(const Aws::String &value)
CreateSecurityConfigRequest & WithDescription(const Aws::String &value)
CreateSecurityConfigRequest & WithSamlOptions(SamlConfigOptions &&value)
CreateSecurityConfigRequest & WithType(const SecurityConfigType &value)
CreateSecurityConfigRequest & WithIamIdentityCenterOptions(const CreateIamIdentityCenterConfigOptions &value)
void SetIamIdentityCenterOptions(const CreateIamIdentityCenterConfigOptions &value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const CreateIamIdentityCenterConfigOptions & GetIamIdentityCenterOptions() const
CreateSecurityConfigRequest & WithDescription(Aws::String &&value)
CreateSecurityConfigRequest & WithIamIdentityCenterOptions(CreateIamIdentityCenterConfigOptions &&value)
CreateSecurityConfigRequest & WithClientToken(Aws::String &&value)
CreateSecurityConfigRequest & WithClientToken(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String