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

com.amazonaws.services.lambda.model.ListLayerVersionsRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2018-2023 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.lambda.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* A runtime identifier. For example, go1.x. *

*

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

*/ private String compatibleRuntime; /** *

* The name or Amazon Resource Name (ARN) of the layer. *

*/ private String layerName; /** *

* A pagination token returned by a previous call. *

*/ private String marker; /** *

* The maximum number of versions to return. *

*/ private Integer maxItems; /** *

* The compatible instruction set * architecture. *

*/ private String compatibleArchitecture; /** *

* A runtime identifier. For example, go1.x. *

*

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

* * @param compatibleRuntime * A runtime identifier. For example, go1.x.

*

* The following list includes deprecated runtimes. For more information, see Runtime * deprecation policy. * @see Runtime */ public void setCompatibleRuntime(String compatibleRuntime) { this.compatibleRuntime = compatibleRuntime; } /** *

* A runtime identifier. For example, go1.x. *

*

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

* * @return A runtime identifier. For example, go1.x.

*

* The following list includes deprecated runtimes. For more information, see Runtime * deprecation policy. * @see Runtime */ public String getCompatibleRuntime() { return this.compatibleRuntime; } /** *

* A runtime identifier. For example, go1.x. *

*

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

* * @param compatibleRuntime * A runtime identifier. For example, go1.x.

*

* The following list includes deprecated runtimes. For more information, see Runtime * deprecation policy. * @return Returns a reference to this object so that method calls can be chained together. * @see Runtime */ public ListLayerVersionsRequest withCompatibleRuntime(String compatibleRuntime) { setCompatibleRuntime(compatibleRuntime); return this; } /** *

* A runtime identifier. For example, go1.x. *

*

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

* * @param compatibleRuntime * A runtime identifier. For example, go1.x.

*

* The following list includes deprecated runtimes. For more information, see Runtime * deprecation policy. * @return Returns a reference to this object so that method calls can be chained together. * @see Runtime */ public ListLayerVersionsRequest withCompatibleRuntime(Runtime compatibleRuntime) { this.compatibleRuntime = compatibleRuntime.toString(); return this; } /** *

* The name or Amazon Resource Name (ARN) of the layer. *

* * @param layerName * The name or Amazon Resource Name (ARN) of the layer. */ public void setLayerName(String layerName) { this.layerName = layerName; } /** *

* The name or Amazon Resource Name (ARN) of the layer. *

* * @return The name or Amazon Resource Name (ARN) of the layer. */ public String getLayerName() { return this.layerName; } /** *

* The name or Amazon Resource Name (ARN) of the layer. *

* * @param layerName * The name or Amazon Resource Name (ARN) of the layer. * @return Returns a reference to this object so that method calls can be chained together. */ public ListLayerVersionsRequest withLayerName(String layerName) { setLayerName(layerName); return this; } /** *

* A pagination token returned by a previous call. *

* * @param marker * A pagination token returned by a previous call. */ public void setMarker(String marker) { this.marker = marker; } /** *

* A pagination token returned by a previous call. *

* * @return A pagination token returned by a previous call. */ public String getMarker() { return this.marker; } /** *

* A pagination token returned by a previous call. *

* * @param marker * A pagination token returned by a previous call. * @return Returns a reference to this object so that method calls can be chained together. */ public ListLayerVersionsRequest withMarker(String marker) { setMarker(marker); return this; } /** *

* The maximum number of versions to return. *

* * @param maxItems * The maximum number of versions to return. */ public void setMaxItems(Integer maxItems) { this.maxItems = maxItems; } /** *

* The maximum number of versions to return. *

* * @return The maximum number of versions to return. */ public Integer getMaxItems() { return this.maxItems; } /** *

* The maximum number of versions to return. *

* * @param maxItems * The maximum number of versions to return. * @return Returns a reference to this object so that method calls can be chained together. */ public ListLayerVersionsRequest withMaxItems(Integer maxItems) { setMaxItems(maxItems); return this; } /** *

* The compatible instruction set * architecture. *

* * @param compatibleArchitecture * The compatible instruction set * architecture. * @see Architecture */ public void setCompatibleArchitecture(String compatibleArchitecture) { this.compatibleArchitecture = compatibleArchitecture; } /** *

* The compatible instruction set * architecture. *

* * @return The compatible instruction * set architecture. * @see Architecture */ public String getCompatibleArchitecture() { return this.compatibleArchitecture; } /** *

* The compatible instruction set * architecture. *

* * @param compatibleArchitecture * The compatible instruction set * architecture. * @return Returns a reference to this object so that method calls can be chained together. * @see Architecture */ public ListLayerVersionsRequest withCompatibleArchitecture(String compatibleArchitecture) { setCompatibleArchitecture(compatibleArchitecture); return this; } /** *

* The compatible instruction set * architecture. *

* * @param compatibleArchitecture * The compatible instruction set * architecture. * @return Returns a reference to this object so that method calls can be chained together. * @see Architecture */ public ListLayerVersionsRequest withCompatibleArchitecture(Architecture compatibleArchitecture) { this.compatibleArchitecture = compatibleArchitecture.toString(); 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 (getCompatibleRuntime() != null) sb.append("CompatibleRuntime: ").append(getCompatibleRuntime()).append(","); if (getLayerName() != null) sb.append("LayerName: ").append(getLayerName()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()).append(","); if (getMaxItems() != null) sb.append("MaxItems: ").append(getMaxItems()).append(","); if (getCompatibleArchitecture() != null) sb.append("CompatibleArchitecture: ").append(getCompatibleArchitecture()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListLayerVersionsRequest == false) return false; ListLayerVersionsRequest other = (ListLayerVersionsRequest) obj; if (other.getCompatibleRuntime() == null ^ this.getCompatibleRuntime() == null) return false; if (other.getCompatibleRuntime() != null && other.getCompatibleRuntime().equals(this.getCompatibleRuntime()) == false) return false; if (other.getLayerName() == null ^ this.getLayerName() == null) return false; if (other.getLayerName() != null && other.getLayerName().equals(this.getLayerName()) == false) return false; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.getMaxItems() == null ^ this.getMaxItems() == null) return false; if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == false) return false; if (other.getCompatibleArchitecture() == null ^ this.getCompatibleArchitecture() == null) return false; if (other.getCompatibleArchitecture() != null && other.getCompatibleArchitecture().equals(this.getCompatibleArchitecture()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCompatibleRuntime() == null) ? 0 : getCompatibleRuntime().hashCode()); hashCode = prime * hashCode + ((getLayerName() == null) ? 0 : getLayerName().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); hashCode = prime * hashCode + ((getCompatibleArchitecture() == null) ? 0 : getCompatibleArchitecture().hashCode()); return hashCode; } @Override public ListLayerVersionsRequest clone() { return (ListLayerVersionsRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy