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

Options to specify the Cognito user and identity pools for Kibana * authentication. For more information, see Amazon Cognito Authentication for Kibana.

See * Also:

AWS * API Reference

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

Specifies the option to enable Cognito for Kibana authentication.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Specifies the option to enable Cognito for Kibana authentication.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Specifies the option to enable Cognito for Kibana authentication.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Specifies the option to enable Cognito for Kibana authentication.

*/ inline CognitoOptions& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

Specifies the Cognito user pool ID for Kibana authentication.

*/ inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; } /** *

Specifies the Cognito user pool ID for Kibana authentication.

*/ inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; } /** *

Specifies the Cognito user pool ID for Kibana authentication.

*/ inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; } /** *

Specifies the Cognito user pool ID for Kibana authentication.

*/ inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); } /** *

Specifies the Cognito user pool ID for Kibana authentication.

*/ inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); } /** *

Specifies the Cognito user pool ID for Kibana authentication.

*/ inline CognitoOptions& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;} /** *

Specifies the Cognito user pool ID for Kibana authentication.

*/ inline CognitoOptions& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;} /** *

Specifies the Cognito user pool ID for Kibana authentication.

*/ inline CognitoOptions& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;} /** *

Specifies the Cognito identity pool ID for Kibana authentication.

*/ inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; } /** *

Specifies the Cognito identity pool ID for Kibana authentication.

*/ inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; } /** *

Specifies the Cognito identity pool ID for Kibana authentication.

*/ inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; } /** *

Specifies the Cognito identity pool ID for Kibana authentication.

*/ inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); } /** *

Specifies the Cognito identity pool ID for Kibana authentication.

*/ inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); } /** *

Specifies the Cognito identity pool ID for Kibana authentication.

*/ inline CognitoOptions& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;} /** *

Specifies the Cognito identity pool ID for Kibana authentication.

*/ inline CognitoOptions& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;} /** *

Specifies the Cognito identity pool ID for Kibana authentication.

*/ inline CognitoOptions& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;} /** *

Specifies the role ARN that provides Elasticsearch permissions for accessing * Cognito resources.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

Specifies the role ARN that provides Elasticsearch permissions for accessing * Cognito resources.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

Specifies the role ARN that provides Elasticsearch permissions for accessing * Cognito resources.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

Specifies the role ARN that provides Elasticsearch permissions for accessing * Cognito resources.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

Specifies the role ARN that provides Elasticsearch permissions for accessing * Cognito resources.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

Specifies the role ARN that provides Elasticsearch permissions for accessing * Cognito resources.

*/ inline CognitoOptions& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

Specifies the role ARN that provides Elasticsearch permissions for accessing * Cognito resources.

*/ inline CognitoOptions& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

Specifies the role ARN that provides Elasticsearch permissions for accessing * Cognito resources.

*/ inline CognitoOptions& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; Aws::String m_userPoolId; bool m_userPoolIdHasBeenSet = false; Aws::String m_identityPoolId; bool m_identityPoolIdHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws