All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.securityhub.model.AwsLambdaLayerVersionDetails Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS SecurityHub module holds the client classes that are used for communicating with AWS SecurityHub Service

The newest version!
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.securityhub.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Details about a Lambda layer version. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsLambdaLayerVersionDetails implements Serializable, Cloneable, StructuredPojo { /** *

* The version number. *

*/ private Long version; /** *

* The layer's compatible function * runtimes. *

*

* The following list includes deprecated runtimes. For more information, see Runtime * deprecation policy in the Lambda Developer Guide. *

*

* Array Members: Maximum number of 5 items. *

*

* Valid Values: * nodejs | nodejs4.3 | nodejs6.10 | nodejs8.10 | nodejs10.x | nodejs12.x | nodejs14.x | nodejs16.x | java8 | java8.al2 | java11 | python2.7 | python3.6 | python3.7 | python3.8 | python3.9 | dotnetcore1.0 | dotnetcore2.0 | dotnetcore2.1 | dotnetcore3.1 | dotnet6 | nodejs4.3-edge | go1.x | ruby2.5 | ruby2.7 | provided | provided.al2 | nodejs18.x | python3.10 | java17 | ruby3.2 | python3.11 | nodejs20.x | provided.al2023 | python3.12 | java21 *

*/ private java.util.List compatibleRuntimes; /** *

* Indicates when the version was created. *

*

* This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

*
    *
  • *

    * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

    *
  • *
*/ private String createdDate; /** *

* The version number. *

* * @param version * The version number. */ public void setVersion(Long version) { this.version = version; } /** *

* The version number. *

* * @return The version number. */ public Long getVersion() { return this.version; } /** *

* The version number. *

* * @param version * The version number. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsLambdaLayerVersionDetails withVersion(Long version) { setVersion(version); return this; } /** *

* The layer's compatible function * runtimes. *

*

* The following list includes deprecated runtimes. For more information, see Runtime * deprecation policy in the Lambda Developer Guide. *

*

* Array Members: Maximum number of 5 items. *

*

* Valid Values: * nodejs | nodejs4.3 | nodejs6.10 | nodejs8.10 | nodejs10.x | nodejs12.x | nodejs14.x | nodejs16.x | java8 | java8.al2 | java11 | python2.7 | python3.6 | python3.7 | python3.8 | python3.9 | dotnetcore1.0 | dotnetcore2.0 | dotnetcore2.1 | dotnetcore3.1 | dotnet6 | nodejs4.3-edge | go1.x | ruby2.5 | ruby2.7 | provided | provided.al2 | nodejs18.x | python3.10 | java17 | ruby3.2 | python3.11 | nodejs20.x | provided.al2023 | python3.12 | java21 *

* * @return The layer's compatible function runtimes.

*

* The following list includes deprecated runtimes. For more information, see Runtime * deprecation policy in the Lambda Developer Guide. *

*

* Array Members: Maximum number of 5 items. *

*

* Valid Values: * nodejs | nodejs4.3 | nodejs6.10 | nodejs8.10 | nodejs10.x | nodejs12.x | nodejs14.x | nodejs16.x | java8 | java8.al2 | java11 | python2.7 | python3.6 | python3.7 | python3.8 | python3.9 | dotnetcore1.0 | dotnetcore2.0 | dotnetcore2.1 | dotnetcore3.1 | dotnet6 | nodejs4.3-edge | go1.x | ruby2.5 | ruby2.7 | provided | provided.al2 | nodejs18.x | python3.10 | java17 | ruby3.2 | python3.11 | nodejs20.x | provided.al2023 | python3.12 | java21 */ public java.util.List getCompatibleRuntimes() { return compatibleRuntimes; } /** *

* The layer's compatible function * runtimes. *

*

* The following list includes deprecated runtimes. For more information, see Runtime * deprecation policy in the Lambda Developer Guide. *

*

* Array Members: Maximum number of 5 items. *

*

* Valid Values: * nodejs | nodejs4.3 | nodejs6.10 | nodejs8.10 | nodejs10.x | nodejs12.x | nodejs14.x | nodejs16.x | java8 | java8.al2 | java11 | python2.7 | python3.6 | python3.7 | python3.8 | python3.9 | dotnetcore1.0 | dotnetcore2.0 | dotnetcore2.1 | dotnetcore3.1 | dotnet6 | nodejs4.3-edge | go1.x | ruby2.5 | ruby2.7 | provided | provided.al2 | nodejs18.x | python3.10 | java17 | ruby3.2 | python3.11 | nodejs20.x | provided.al2023 | python3.12 | java21 *

* * @param compatibleRuntimes * The layer's compatible function runtimes.

*

* The following list includes deprecated runtimes. For more information, see Runtime * deprecation policy in the Lambda Developer Guide. *

*

* Array Members: Maximum number of 5 items. *

*

* Valid Values: * nodejs | nodejs4.3 | nodejs6.10 | nodejs8.10 | nodejs10.x | nodejs12.x | nodejs14.x | nodejs16.x | java8 | java8.al2 | java11 | python2.7 | python3.6 | python3.7 | python3.8 | python3.9 | dotnetcore1.0 | dotnetcore2.0 | dotnetcore2.1 | dotnetcore3.1 | dotnet6 | nodejs4.3-edge | go1.x | ruby2.5 | ruby2.7 | provided | provided.al2 | nodejs18.x | python3.10 | java17 | ruby3.2 | python3.11 | nodejs20.x | provided.al2023 | python3.12 | java21 */ public void setCompatibleRuntimes(java.util.Collection compatibleRuntimes) { if (compatibleRuntimes == null) { this.compatibleRuntimes = null; return; } this.compatibleRuntimes = new java.util.ArrayList(compatibleRuntimes); } /** *

* The layer's compatible function * runtimes. *

*

* The following list includes deprecated runtimes. For more information, see Runtime * deprecation policy in the Lambda Developer Guide. *

*

* Array Members: Maximum number of 5 items. *

*

* Valid Values: * nodejs | nodejs4.3 | nodejs6.10 | nodejs8.10 | nodejs10.x | nodejs12.x | nodejs14.x | nodejs16.x | java8 | java8.al2 | java11 | python2.7 | python3.6 | python3.7 | python3.8 | python3.9 | dotnetcore1.0 | dotnetcore2.0 | dotnetcore2.1 | dotnetcore3.1 | dotnet6 | nodejs4.3-edge | go1.x | ruby2.5 | ruby2.7 | provided | provided.al2 | nodejs18.x | python3.10 | java17 | ruby3.2 | python3.11 | nodejs20.x | provided.al2023 | python3.12 | java21 *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setCompatibleRuntimes(java.util.Collection)} or {@link #withCompatibleRuntimes(java.util.Collection)} if * you want to override the existing values. *

* * @param compatibleRuntimes * The layer's compatible function runtimes.

*

* The following list includes deprecated runtimes. For more information, see Runtime * deprecation policy in the Lambda Developer Guide. *

*

* Array Members: Maximum number of 5 items. *

*

* Valid Values: * nodejs | nodejs4.3 | nodejs6.10 | nodejs8.10 | nodejs10.x | nodejs12.x | nodejs14.x | nodejs16.x | java8 | java8.al2 | java11 | python2.7 | python3.6 | python3.7 | python3.8 | python3.9 | dotnetcore1.0 | dotnetcore2.0 | dotnetcore2.1 | dotnetcore3.1 | dotnet6 | nodejs4.3-edge | go1.x | ruby2.5 | ruby2.7 | provided | provided.al2 | nodejs18.x | python3.10 | java17 | ruby3.2 | python3.11 | nodejs20.x | provided.al2023 | python3.12 | java21 * @return Returns a reference to this object so that method calls can be chained together. */ public AwsLambdaLayerVersionDetails withCompatibleRuntimes(String... compatibleRuntimes) { if (this.compatibleRuntimes == null) { setCompatibleRuntimes(new java.util.ArrayList(compatibleRuntimes.length)); } for (String ele : compatibleRuntimes) { this.compatibleRuntimes.add(ele); } return this; } /** *

* The layer's compatible function * runtimes. *

*

* The following list includes deprecated runtimes. For more information, see Runtime * deprecation policy in the Lambda Developer Guide. *

*

* Array Members: Maximum number of 5 items. *

*

* Valid Values: * nodejs | nodejs4.3 | nodejs6.10 | nodejs8.10 | nodejs10.x | nodejs12.x | nodejs14.x | nodejs16.x | java8 | java8.al2 | java11 | python2.7 | python3.6 | python3.7 | python3.8 | python3.9 | dotnetcore1.0 | dotnetcore2.0 | dotnetcore2.1 | dotnetcore3.1 | dotnet6 | nodejs4.3-edge | go1.x | ruby2.5 | ruby2.7 | provided | provided.al2 | nodejs18.x | python3.10 | java17 | ruby3.2 | python3.11 | nodejs20.x | provided.al2023 | python3.12 | java21 *

* * @param compatibleRuntimes * The layer's compatible function runtimes.

*

* The following list includes deprecated runtimes. For more information, see Runtime * deprecation policy in the Lambda Developer Guide. *

*

* Array Members: Maximum number of 5 items. *

*

* Valid Values: * nodejs | nodejs4.3 | nodejs6.10 | nodejs8.10 | nodejs10.x | nodejs12.x | nodejs14.x | nodejs16.x | java8 | java8.al2 | java11 | python2.7 | python3.6 | python3.7 | python3.8 | python3.9 | dotnetcore1.0 | dotnetcore2.0 | dotnetcore2.1 | dotnetcore3.1 | dotnet6 | nodejs4.3-edge | go1.x | ruby2.5 | ruby2.7 | provided | provided.al2 | nodejs18.x | python3.10 | java17 | ruby3.2 | python3.11 | nodejs20.x | provided.al2023 | python3.12 | java21 * @return Returns a reference to this object so that method calls can be chained together. */ public AwsLambdaLayerVersionDetails withCompatibleRuntimes(java.util.Collection compatibleRuntimes) { setCompatibleRuntimes(compatibleRuntimes); return this; } /** *

* Indicates when the version was created. *

*

* This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

*
    *
  • *

    * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

    *
  • *
* * @param createdDate * Indicates when the version was created.

*

* This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

*
    *
  • *

    * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

    *
  • */ public void setCreatedDate(String createdDate) { this.createdDate = createdDate; } /** *

    * Indicates when the version was created. *

    *

    * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

    *
      *
    • *

      * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

      *
    • *
    * * @return Indicates when the version was created.

    *

    * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

    *
      *
    • *

      * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

      *
    • */ public String getCreatedDate() { return this.createdDate; } /** *

      * Indicates when the version was created. *

      *

      * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

      *
        *
      • *

        * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

        *
      • *
      * * @param createdDate * Indicates when the version was created.

      *

      * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

      *
        *
      • *

        * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public AwsLambdaLayerVersionDetails withCreatedDate(String createdDate) { setCreatedDate(createdDate); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getVersion() != null) sb.append("Version: ").append(getVersion()).append(","); if (getCompatibleRuntimes() != null) sb.append("CompatibleRuntimes: ").append(getCompatibleRuntimes()).append(","); if (getCreatedDate() != null) sb.append("CreatedDate: ").append(getCreatedDate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AwsLambdaLayerVersionDetails == false) return false; AwsLambdaLayerVersionDetails other = (AwsLambdaLayerVersionDetails) obj; if (other.getVersion() == null ^ this.getVersion() == null) return false; if (other.getVersion() != null && other.getVersion().equals(this.getVersion()) == false) return false; if (other.getCompatibleRuntimes() == null ^ this.getCompatibleRuntimes() == null) return false; if (other.getCompatibleRuntimes() != null && other.getCompatibleRuntimes().equals(this.getCompatibleRuntimes()) == false) return false; if (other.getCreatedDate() == null ^ this.getCreatedDate() == null) return false; if (other.getCreatedDate() != null && other.getCreatedDate().equals(this.getCreatedDate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVersion() == null) ? 0 : getVersion().hashCode()); hashCode = prime * hashCode + ((getCompatibleRuntimes() == null) ? 0 : getCompatibleRuntimes().hashCode()); hashCode = prime * hashCode + ((getCreatedDate() == null) ? 0 : getCreatedDate().hashCode()); return hashCode; } @Override public AwsLambdaLayerVersionDetails clone() { try { return (AwsLambdaLayerVersionDetails) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.securityhub.model.transform.AwsLambdaLayerVersionDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy