/** * 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 { /** *

Details about a version of an AWS * Lambda layer.

See Also:

AWS * API Reference

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

A link to the layer archive in Amazon S3 that is valid for 10 minutes.

*/ inline const Aws::String& GetLocation() const{ return m_location; } /** *

A link to the layer archive in Amazon S3 that is valid for 10 minutes.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

A link to the layer archive in Amazon S3 that is valid for 10 minutes.

*/ inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; } /** *

A link to the layer archive in Amazon S3 that is valid for 10 minutes.

*/ inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

A link to the layer archive in Amazon S3 that is valid for 10 minutes.

*/ inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); } /** *

A link to the layer archive in Amazon S3 that is valid for 10 minutes.

*/ inline LayerVersionContentOutput& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *

A link to the layer archive in Amazon S3 that is valid for 10 minutes.

*/ inline LayerVersionContentOutput& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} /** *

A link to the layer archive in Amazon S3 that is valid for 10 minutes.

*/ inline LayerVersionContentOutput& WithLocation(const char* value) { SetLocation(value); return *this;} /** *

The SHA-256 hash of the layer archive.

*/ inline const Aws::String& GetCodeSha256() const{ return m_codeSha256; } /** *

The SHA-256 hash of the layer archive.

*/ inline bool CodeSha256HasBeenSet() const { return m_codeSha256HasBeenSet; } /** *

The SHA-256 hash of the layer archive.

*/ inline void SetCodeSha256(const Aws::String& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = value; } /** *

The SHA-256 hash of the layer archive.

*/ inline void SetCodeSha256(Aws::String&& value) { m_codeSha256HasBeenSet = true; m_codeSha256 = std::move(value); } /** *

The SHA-256 hash of the layer archive.

*/ inline void SetCodeSha256(const char* value) { m_codeSha256HasBeenSet = true; m_codeSha256.assign(value); } /** *

The SHA-256 hash of the layer archive.

*/ inline LayerVersionContentOutput& WithCodeSha256(const Aws::String& value) { SetCodeSha256(value); return *this;} /** *

The SHA-256 hash of the layer archive.

*/ inline LayerVersionContentOutput& WithCodeSha256(Aws::String&& value) { SetCodeSha256(std::move(value)); return *this;} /** *

The SHA-256 hash of the layer archive.

*/ inline LayerVersionContentOutput& WithCodeSha256(const char* value) { SetCodeSha256(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 LayerVersionContentOutput& WithCodeSize(long long value) { SetCodeSize(value); return *this;} private: Aws::String m_location; bool m_locationHasBeenSet; Aws::String m_codeSha256; bool m_codeSha256HasBeenSet; long long m_codeSize; bool m_codeSizeHasBeenSet; }; } // namespace Model } // namespace Lambda } // namespace Aws