/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Details about a Lambda layer version.

See Also:

AWS * API Reference

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

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 AwsLambdaLayerVersionDetails& WithVersion(long long value) { SetVersion(value); return *this;} /** *

The layer's compatible runtimes. Maximum number of five items.

Valid * values: nodejs10.x | nodejs12.x | java8 | * java11 | python2.7 | python3.6 | * python3.7 | python3.8 | dotnetcore1.0 | * dotnetcore2.1 | go1.x | ruby2.5 | * provided

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

The layer's compatible runtimes. Maximum number of five items.

Valid * values: nodejs10.x | nodejs12.x | java8 | * java11 | python2.7 | python3.6 | * python3.7 | python3.8 | dotnetcore1.0 | * dotnetcore2.1 | go1.x | ruby2.5 | * provided

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

The layer's compatible runtimes. Maximum number of five items.

Valid * values: nodejs10.x | nodejs12.x | java8 | * java11 | python2.7 | python3.6 | * python3.7 | python3.8 | dotnetcore1.0 | * dotnetcore2.1 | go1.x | ruby2.5 | * provided

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

The layer's compatible runtimes. Maximum number of five items.

Valid * values: nodejs10.x | nodejs12.x | java8 | * java11 | python2.7 | python3.6 | * python3.7 | python3.8 | dotnetcore1.0 | * dotnetcore2.1 | go1.x | ruby2.5 | * provided

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

The layer's compatible runtimes. Maximum number of five items.

Valid * values: nodejs10.x | nodejs12.x | java8 | * java11 | python2.7 | python3.6 | * python3.7 | python3.8 | dotnetcore1.0 | * dotnetcore2.1 | go1.x | ruby2.5 | * provided

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

The layer's compatible runtimes. Maximum number of five items.

Valid * values: nodejs10.x | nodejs12.x | java8 | * java11 | python2.7 | python3.6 | * python3.7 | python3.8 | dotnetcore1.0 | * dotnetcore2.1 | go1.x | ruby2.5 | * provided

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

The layer's compatible runtimes. Maximum number of five items.

Valid * values: nodejs10.x | nodejs12.x | java8 | * java11 | python2.7 | python3.6 | * python3.7 | python3.8 | dotnetcore1.0 | * dotnetcore2.1 | go1.x | ruby2.5 | * provided

*/ inline AwsLambdaLayerVersionDetails& AddCompatibleRuntimes(const Aws::String& value) { m_compatibleRuntimesHasBeenSet = true; m_compatibleRuntimes.push_back(value); return *this; } /** *

The layer's compatible runtimes. Maximum number of five items.

Valid * values: nodejs10.x | nodejs12.x | java8 | * java11 | python2.7 | python3.6 | * python3.7 | python3.8 | dotnetcore1.0 | * dotnetcore2.1 | go1.x | ruby2.5 | * provided

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

The layer's compatible runtimes. Maximum number of five items.

Valid * values: nodejs10.x | nodejs12.x | java8 | * java11 | python2.7 | python3.6 | * python3.7 | python3.8 | dotnetcore1.0 | * dotnetcore2.1 | go1.x | ruby2.5 | * provided

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

Indicates when the version was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

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

Indicates when the version was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

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

Indicates when the version was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

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

Indicates when the version was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

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

Indicates when the version was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

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

Indicates when the version was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

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

Indicates when the version was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

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

Indicates when the version was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsLambdaLayerVersionDetails& WithCreatedDate(const char* value) { SetCreatedDate(value); return *this;} private: long long m_version; bool m_versionHasBeenSet = false; Aws::Vector m_compatibleRuntimes; bool m_compatibleRuntimesHasBeenSet = false; Aws::String m_createdDate; bool m_createdDateHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws