/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 ClientConnectOptions { public: AWS_EC2_API ClientConnectOptions(); AWS_EC2_API ClientConnectOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ClientConnectOptions& 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. The default is * false (not enabled).

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

Indicates whether client connect options are enabled. The default is * false (not enabled).

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

Indicates whether client connect options are enabled. The default is * false (not enabled).

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

Indicates whether client connect options are enabled. The default is * false (not enabled).

*/ inline ClientConnectOptions& 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 ClientConnectOptions& WithLambdaFunctionArn(const Aws::String& value) { SetLambdaFunctionArn(value); return *this;} /** *

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

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

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

*/ inline ClientConnectOptions& WithLambdaFunctionArn(const char* value) { SetLambdaFunctionArn(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; Aws::String m_lambdaFunctionArn; bool m_lambdaFunctionArnHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws