/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace OpenSearchServerless { namespace Model { /** *

Details about a security configuration for OpenSearch Serverless. *

See Also:

AWS * API Reference

*/ class SecurityConfigDetail { public: AWS_OPENSEARCHSERVERLESS_API SecurityConfigDetail(); AWS_OPENSEARCHSERVERLESS_API SecurityConfigDetail(Aws::Utils::Json::JsonView jsonValue); AWS_OPENSEARCHSERVERLESS_API SecurityConfigDetail& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The version of the security configuration.

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

The version of the security configuration.

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

The version of the security configuration.

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

The version of the security configuration.

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

The version of the security configuration.

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

The version of the security configuration.

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

The version of the security configuration.

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

The version of the security configuration.

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

The date the configuration was created.

*/ inline long long GetCreatedDate() const{ return m_createdDate; } /** *

The date the configuration was created.

*/ inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } /** *

The date the configuration was created.

*/ inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; } /** *

The date the configuration was created.

*/ inline SecurityConfigDetail& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;} /** *

The description of the security configuration.

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

The description of the security configuration.

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

The description of the security configuration.

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

The description of the security configuration.

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

The description of the security configuration.

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

The description of the security configuration.

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

The description of the security configuration.

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

The description of the security configuration.

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

The unique identifier of the security configuration.

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

The unique identifier of the security configuration.

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

The unique identifier of the security configuration.

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

The unique identifier of the security configuration.

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

The unique identifier of the security configuration.

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

The unique identifier of the security configuration.

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

The unique identifier of the security configuration.

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

The unique identifier of the security configuration.

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

The timestamp of when the configuration was last modified.

*/ inline long long GetLastModifiedDate() const{ return m_lastModifiedDate; } /** *

The timestamp of when the configuration was last modified.

*/ inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; } /** *

The timestamp of when the configuration was last modified.

*/ inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; } /** *

The timestamp of when the configuration was last modified.

*/ inline SecurityConfigDetail& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;} /** *

SAML options for the security configuration in the form of a key-value * map.

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

SAML options for the security configuration in the form of a key-value * map.

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

SAML options for the security configuration in the form of a key-value * map.

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

SAML options for the security configuration in the form of a key-value * map.

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

SAML options for the security configuration in the form of a key-value * map.

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

SAML options for the security configuration in the form of a key-value * map.

*/ inline SecurityConfigDetail& WithSamlOptions(SamlConfigOptions&& value) { SetSamlOptions(std::move(value)); return *this;} /** *

The type of security configuration.

*/ inline const SecurityConfigType& GetType() const{ return m_type; } /** *

The type of security configuration.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of security configuration.

*/ inline void SetType(const SecurityConfigType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of security configuration.

*/ inline void SetType(SecurityConfigType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of security configuration.

*/ inline SecurityConfigDetail& WithType(const SecurityConfigType& value) { SetType(value); return *this;} /** *

The type of security configuration.

*/ inline SecurityConfigDetail& WithType(SecurityConfigType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_configVersion; bool m_configVersionHasBeenSet = false; long long m_createdDate; bool m_createdDateHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; long long m_lastModifiedDate; bool m_lastModifiedDateHasBeenSet = false; SamlConfigOptions m_samlOptions; bool m_samlOptionsHasBeenSet = false; SecurityConfigType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchServerless } // namespace Aws