/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

The options for managing connection authorization for new client * connections.

See Also:

AWS * API Reference

*/ class ClientConnectResponseOptions { public: AWS_EC2_API ClientConnectResponseOptions(); AWS_EC2_API ClientConnectResponseOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ClientConnectResponseOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

Indicates whether client connect options are enabled.

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

Indicates whether client connect options are enabled.

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

Indicates whether client connect options are enabled.

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

Indicates whether client connect options are enabled.

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

The Amazon Resource Name (ARN) of the Lambda function used for connection * authorization.

*/ inline const Aws::String& GetLambdaFunctionArn() const{ return m_lambdaFunctionArn; } /** *

The Amazon Resource Name (ARN) of the Lambda function used for connection * authorization.

*/ inline bool LambdaFunctionArnHasBeenSet() const { return m_lambdaFunctionArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Lambda function used for connection * authorization.

*/ inline void SetLambdaFunctionArn(const Aws::String& value) { m_lambdaFunctionArnHasBeenSet = true; m_lambdaFunctionArn = value; } /** *

The Amazon Resource Name (ARN) of the Lambda function used for connection * authorization.

*/ inline void SetLambdaFunctionArn(Aws::String&& value) { m_lambdaFunctionArnHasBeenSet = true; m_lambdaFunctionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Lambda function used for connection * authorization.

*/ inline void SetLambdaFunctionArn(const char* value) { m_lambdaFunctionArnHasBeenSet = true; m_lambdaFunctionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Lambda function used for connection * authorization.

*/ inline ClientConnectResponseOptions& WithLambdaFunctionArn(const Aws::String& value) { SetLambdaFunctionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Lambda function used for connection * authorization.

*/ inline ClientConnectResponseOptions& WithLambdaFunctionArn(Aws::String&& value) { SetLambdaFunctionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Lambda function used for connection * authorization.

*/ inline ClientConnectResponseOptions& WithLambdaFunctionArn(const char* value) { SetLambdaFunctionArn(value); return *this;} /** *

The status of any updates to the client connect options.

*/ inline const ClientVpnEndpointAttributeStatus& GetStatus() const{ return m_status; } /** *

The status of any updates to the client connect options.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of any updates to the client connect options.

*/ inline void SetStatus(const ClientVpnEndpointAttributeStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of any updates to the client connect options.

*/ inline void SetStatus(ClientVpnEndpointAttributeStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of any updates to the client connect options.

*/ inline ClientConnectResponseOptions& WithStatus(const ClientVpnEndpointAttributeStatus& value) { SetStatus(value); return *this;} /** *

The status of any updates to the client connect options.

*/ inline ClientConnectResponseOptions& WithStatus(ClientVpnEndpointAttributeStatus&& value) { SetStatus(std::move(value)); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; Aws::String m_lambdaFunctionArn; bool m_lambdaFunctionArnHasBeenSet = false; ClientVpnEndpointAttributeStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws