/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace OpenSearchServerless { namespace Model { /** */ class UpdateSecurityConfigRequest : public OpenSearchServerlessRequest { public: AWS_OPENSEARCHSERVERLESS_API UpdateSecurityConfigRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateSecurityConfig"; } AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override; AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Unique, case-sensitive identifier to ensure idempotency of the request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier to ensure idempotency of the request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Unique, case-sensitive identifier to ensure idempotency of the request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Unique, case-sensitive identifier to ensure idempotency of the request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier to ensure idempotency of the request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier to ensure idempotency of the request.

*/ inline UpdateSecurityConfigRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier to ensure idempotency of the request.

*/ inline UpdateSecurityConfigRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier to ensure idempotency of the request.

*/ inline UpdateSecurityConfigRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The version of the security configuration to be updated. You can find the * most recent version of a security configuration using the * GetSecurityPolicy command.

*/ inline const Aws::String& GetConfigVersion() const{ return m_configVersion; } /** *

The version of the security configuration to be updated. You can find the * most recent version of a security configuration using the * GetSecurityPolicy command.

*/ inline bool ConfigVersionHasBeenSet() const { return m_configVersionHasBeenSet; } /** *

The version of the security configuration to be updated. You can find the * most recent version of a security configuration using the * GetSecurityPolicy command.

*/ inline void SetConfigVersion(const Aws::String& value) { m_configVersionHasBeenSet = true; m_configVersion = value; } /** *

The version of the security configuration to be updated. You can find the * most recent version of a security configuration using the * GetSecurityPolicy command.

*/ inline void SetConfigVersion(Aws::String&& value) { m_configVersionHasBeenSet = true; m_configVersion = std::move(value); } /** *

The version of the security configuration to be updated. You can find the * most recent version of a security configuration using the * GetSecurityPolicy command.

*/ inline void SetConfigVersion(const char* value) { m_configVersionHasBeenSet = true; m_configVersion.assign(value); } /** *

The version of the security configuration to be updated. You can find the * most recent version of a security configuration using the * GetSecurityPolicy command.

*/ inline UpdateSecurityConfigRequest& WithConfigVersion(const Aws::String& value) { SetConfigVersion(value); return *this;} /** *

The version of the security configuration to be updated. You can find the * most recent version of a security configuration using the * GetSecurityPolicy command.

*/ inline UpdateSecurityConfigRequest& WithConfigVersion(Aws::String&& value) { SetConfigVersion(std::move(value)); return *this;} /** *

The version of the security configuration to be updated. You can find the * most recent version of a security configuration using the * GetSecurityPolicy command.

*/ inline UpdateSecurityConfigRequest& WithConfigVersion(const char* value) { SetConfigVersion(value); return *this;} /** *

A description of the security configuration.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the security configuration.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the security configuration.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the security configuration.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the security configuration.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the security configuration.

*/ inline UpdateSecurityConfigRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the security configuration.

*/ inline UpdateSecurityConfigRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the security configuration.

*/ inline UpdateSecurityConfigRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The security configuration identifier. For SAML the ID will be * saml/<accountId>/<idpProviderName>. For example, * saml/123456789123/OKTADev.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The security configuration identifier. For SAML the ID will be * saml/<accountId>/<idpProviderName>. For example, * saml/123456789123/OKTADev.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The security configuration identifier. For SAML the ID will be * saml/<accountId>/<idpProviderName>. For example, * saml/123456789123/OKTADev.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The security configuration identifier. For SAML the ID will be * saml/<accountId>/<idpProviderName>. For example, * saml/123456789123/OKTADev.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The security configuration identifier. For SAML the ID will be * saml/<accountId>/<idpProviderName>. For example, * saml/123456789123/OKTADev.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The security configuration identifier. For SAML the ID will be * saml/<accountId>/<idpProviderName>. For example, * saml/123456789123/OKTADev.

*/ inline UpdateSecurityConfigRequest& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The security configuration identifier. For SAML the ID will be * saml/<accountId>/<idpProviderName>. For example, * saml/123456789123/OKTADev.

*/ inline UpdateSecurityConfigRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The security configuration identifier. For SAML the ID will be * saml/<accountId>/<idpProviderName>. For example, * saml/123456789123/OKTADev.

*/ inline UpdateSecurityConfigRequest& WithId(const char* value) { SetId(value); return *this;} /** *

SAML options in in the form of a key-value map.

*/ inline const SamlConfigOptions& GetSamlOptions() const{ return m_samlOptions; } /** *

SAML options in in the form of a key-value map.

*/ inline bool SamlOptionsHasBeenSet() const { return m_samlOptionsHasBeenSet; } /** *

SAML options in in the form of a key-value map.

*/ inline void SetSamlOptions(const SamlConfigOptions& value) { m_samlOptionsHasBeenSet = true; m_samlOptions = value; } /** *

SAML options in in the form of a key-value map.

*/ inline void SetSamlOptions(SamlConfigOptions&& value) { m_samlOptionsHasBeenSet = true; m_samlOptions = std::move(value); } /** *

SAML options in in the form of a key-value map.

*/ inline UpdateSecurityConfigRequest& WithSamlOptions(const SamlConfigOptions& value) { SetSamlOptions(value); return *this;} /** *

SAML options in in the form of a key-value map.

*/ inline UpdateSecurityConfigRequest& WithSamlOptions(SamlConfigOptions&& value) { SetSamlOptions(std::move(value)); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_configVersion; bool m_configVersionHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; SamlConfigOptions m_samlOptions; bool m_samlOptionsHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchServerless } // namespace Aws