/** * 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 SecurityHub { namespace Model { /** *

An Lambda layer.

See Also:

AWS * API Reference

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

The ARN of the function layer.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the function layer.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of the function layer.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN of the function layer.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN of the function layer.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN of the function layer.

*/ inline AwsLambdaFunctionLayer& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the function layer.

*/ inline AwsLambdaFunctionLayer& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the function layer.

*/ inline AwsLambdaFunctionLayer& WithArn(const char* value) { SetArn(value); return *this;} /** *

The size of the layer archive in bytes.

*/ inline int GetCodeSize() const{ return m_codeSize; } /** *

The size of the layer archive in bytes.

*/ inline bool CodeSizeHasBeenSet() const { return m_codeSizeHasBeenSet; } /** *

The size of the layer archive in bytes.

*/ inline void SetCodeSize(int value) { m_codeSizeHasBeenSet = true; m_codeSize = value; } /** *

The size of the layer archive in bytes.

*/ inline AwsLambdaFunctionLayer& WithCodeSize(int value) { SetCodeSize(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; int m_codeSize; bool m_codeSizeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws