/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #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 Lambda * layer.

See Also:

AWS * API Reference

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

The ARN of the layer version.

*/ inline const Aws::String& GetLayerVersionArn() const{ return m_layerVersionArn; } /** *

The ARN of the layer version.

*/ inline bool LayerVersionArnHasBeenSet() const { return m_layerVersionArnHasBeenSet; } /** *

The ARN of the layer version.

*/ inline void SetLayerVersionArn(const Aws::String& value) { m_layerVersionArnHasBeenSet = true; m_layerVersionArn = value; } /** *

The ARN of the layer version.

*/ inline void SetLayerVersionArn(Aws::String&& value) { m_layerVersionArnHasBeenSet = true; m_layerVersionArn = std::move(value); } /** *

The ARN of the layer version.

*/ inline void SetLayerVersionArn(const char* value) { m_layerVersionArnHasBeenSet = true; m_layerVersionArn.assign(value); } /** *

The ARN of the layer version.

*/ inline LayerVersionsListItem& WithLayerVersionArn(const Aws::String& value) { SetLayerVersionArn(value); return *this;} /** *

The ARN of the layer version.

*/ inline LayerVersionsListItem& WithLayerVersionArn(Aws::String&& value) { SetLayerVersionArn(std::move(value)); return *this;} /** *

The ARN of the layer version.

*/ inline LayerVersionsListItem& WithLayerVersionArn(const char* value) { SetLayerVersionArn(value); return *this;} /** *

The version number.

*/ inline long long GetVersion() const{ return m_version; } /** *

The version number.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The version number.

*/ inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; } /** *

The version number.

*/ inline LayerVersionsListItem& WithVersion(long long value) { SetVersion(value); return *this;} /** *

The description of the version.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the version.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the version.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the version.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the version.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the version.

*/ inline LayerVersionsListItem& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the version.

*/ inline LayerVersionsListItem& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the version.

*/ inline LayerVersionsListItem& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The date that the version was created, in ISO 8601 format. For example, * 2018-11-27T15:10:45.123+0000.

*/ inline const Aws::String& GetCreatedDate() const{ return m_createdDate; } /** *

The date that the version was created, in ISO 8601 format. For example, * 2018-11-27T15:10:45.123+0000.

*/ inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } /** *

The date that the version was created, in ISO 8601 format. For example, * 2018-11-27T15:10:45.123+0000.

*/ inline void SetCreatedDate(const Aws::String& value) { m_createdDateHasBeenSet = true; m_createdDate = value; } /** *

The date that the version was created, in ISO 8601 format. For example, * 2018-11-27T15:10:45.123+0000.

*/ inline void SetCreatedDate(Aws::String&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); } /** *

The date that the version was created, in ISO 8601 format. For example, * 2018-11-27T15:10:45.123+0000.

*/ inline void SetCreatedDate(const char* value) { m_createdDateHasBeenSet = true; m_createdDate.assign(value); } /** *

The date that the version was created, in ISO 8601 format. For example, * 2018-11-27T15:10:45.123+0000.

*/ inline LayerVersionsListItem& WithCreatedDate(const Aws::String& value) { SetCreatedDate(value); return *this;} /** *

The date that the version was created, in ISO 8601 format. For example, * 2018-11-27T15:10:45.123+0000.

*/ inline LayerVersionsListItem& WithCreatedDate(Aws::String&& value) { SetCreatedDate(std::move(value)); return *this;} /** *

The date that the version was created, in ISO 8601 format. For example, * 2018-11-27T15:10:45.123+0000.

*/ inline LayerVersionsListItem& WithCreatedDate(const char* value) { SetCreatedDate(value); return *this;} /** *

The layer's compatible runtimes.

The following list includes * deprecated runtimes. For more information, see Runtime * deprecation policy.

*/ inline const Aws::Vector& GetCompatibleRuntimes() const{ return m_compatibleRuntimes; } /** *

The layer's compatible runtimes.

The following list includes * deprecated runtimes. For more information, see Runtime * deprecation policy.

*/ inline bool CompatibleRuntimesHasBeenSet() const { return m_compatibleRuntimesHasBeenSet; } /** *

The layer's compatible runtimes.

The following list includes * deprecated runtimes. For more information, see Runtime * deprecation policy.

*/ inline void SetCompatibleRuntimes(const Aws::Vector& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes = value; } /** *

The layer's compatible runtimes.

The following list includes * deprecated runtimes. For more information, see Runtime * deprecation policy.

*/ inline void SetCompatibleRuntimes(Aws::Vector&& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes = std::move(value); } /** *

The layer's compatible runtimes.

The following list includes * deprecated runtimes. For more information, see Runtime * deprecation policy.

*/ inline LayerVersionsListItem& WithCompatibleRuntimes(const Aws::Vector& value) { SetCompatibleRuntimes(value); return *this;} /** *

The layer's compatible runtimes.

The following list includes * deprecated runtimes. For more information, see Runtime * deprecation policy.

*/ inline LayerVersionsListItem& WithCompatibleRuntimes(Aws::Vector&& value) { SetCompatibleRuntimes(std::move(value)); return *this;} /** *

The layer's compatible runtimes.

The following list includes * deprecated runtimes. For more information, see Runtime * deprecation policy.

*/ inline LayerVersionsListItem& AddCompatibleRuntimes(const Runtime& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes.push_back(value); return *this; } /** *

The layer's compatible runtimes.

The following list includes * deprecated runtimes. For more information, see Runtime * deprecation policy.

*/ inline LayerVersionsListItem& AddCompatibleRuntimes(Runtime&& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes.push_back(std::move(value)); return *this; } /** *

The layer's open-source license.

*/ inline const Aws::String& GetLicenseInfo() const{ return m_licenseInfo; } /** *

The layer's open-source license.

*/ inline bool LicenseInfoHasBeenSet() const { return m_licenseInfoHasBeenSet; } /** *

The layer's open-source license.

*/ inline void SetLicenseInfo(const Aws::String& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo = value; } /** *

The layer's open-source license.

*/ inline void SetLicenseInfo(Aws::String&& value) { m_licenseInfoHasBeenSet = true; m_licenseInfo = std::move(value); } /** *

The layer's open-source license.

*/ inline void SetLicenseInfo(const char* value) { m_licenseInfoHasBeenSet = true; m_licenseInfo.assign(value); } /** *

The layer's open-source license.

*/ inline LayerVersionsListItem& WithLicenseInfo(const Aws::String& value) { SetLicenseInfo(value); return *this;} /** *

The layer's open-source license.

*/ inline LayerVersionsListItem& WithLicenseInfo(Aws::String&& value) { SetLicenseInfo(std::move(value)); return *this;} /** *

The layer's open-source license.

*/ inline LayerVersionsListItem& WithLicenseInfo(const char* value) { SetLicenseInfo(value); return *this;} /** *

A list of compatible instruction * set architectures.

*/ inline const Aws::Vector& GetCompatibleArchitectures() const{ return m_compatibleArchitectures; } /** *

A list of compatible instruction * set architectures.

*/ inline bool CompatibleArchitecturesHasBeenSet() const { return m_compatibleArchitecturesHasBeenSet; } /** *

A list of compatible instruction * set architectures.

*/ inline void SetCompatibleArchitectures(const Aws::Vector& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures = value; } /** *

A list of compatible instruction * set architectures.

*/ inline void SetCompatibleArchitectures(Aws::Vector&& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures = std::move(value); } /** *

A list of compatible instruction * set architectures.

*/ inline LayerVersionsListItem& WithCompatibleArchitectures(const Aws::Vector& value) { SetCompatibleArchitectures(value); return *this;} /** *

A list of compatible instruction * set architectures.

*/ inline LayerVersionsListItem& WithCompatibleArchitectures(Aws::Vector&& value) { SetCompatibleArchitectures(std::move(value)); return *this;} /** *

A list of compatible instruction * set architectures.

*/ inline LayerVersionsListItem& AddCompatibleArchitectures(const Architecture& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures.push_back(value); return *this; } /** *

A list of compatible instruction * set architectures.

*/ inline LayerVersionsListItem& AddCompatibleArchitectures(Architecture&& value) { m_compatibleArchitecturesHasBeenSet = true; m_compatibleArchitectures.push_back(std::move(value)); return *this; } private: Aws::String m_layerVersionArn; bool m_layerVersionArnHasBeenSet = false; long long m_version; bool m_versionHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_createdDate; bool m_createdDateHasBeenSet = false; Aws::Vector m_compatibleRuntimes; bool m_compatibleRuntimesHasBeenSet = false; Aws::String m_licenseInfo; bool m_licenseInfoHasBeenSet = false; Aws::Vector m_compatibleArchitectures; bool m_compatibleArchitecturesHasBeenSet = false; }; } // namespace Model } // namespace Lambda } // namespace Aws