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

An AWS * Lambda layer.

See Also:

AWS API * Reference

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

The Amazon Resource Name (ARN) of the function layer.

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

The Amazon Resource Name (ARN) of the function layer.

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

The Amazon Resource Name (ARN) of the function layer.

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

The Amazon Resource Name (ARN) of the function layer.

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

The Amazon Resource Name (ARN) of the function layer.

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

The Amazon Resource Name (ARN) of the function layer.

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

The Amazon Resource Name (ARN) of the function layer.

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

The Amazon Resource Name (ARN) of the function layer.

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

The size of the layer archive in bytes.

*/ inline long long 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(long long value) { m_codeSizeHasBeenSet = true; m_codeSize = value; } /** *

The size of the layer archive in bytes.

*/ inline Layer& WithCodeSize(long long value) { SetCodeSize(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet; long long m_codeSize; bool m_codeSizeHasBeenSet; }; } // namespace Model } // namespace Lambda } // namespace Aws