com.amazonaws.services.lambda.model.ListLayersRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-lambda Show documentation
/*
* 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.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 ListLayersRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* A runtime identifier. For example, java21
.
*
*
* The following list includes deprecated runtimes. For more information, see Runtime
* deprecation policy.
*
*/
private String compatibleRuntime;
/**
*
* A pagination token returned by a previous call.
*
*/
private String marker;
/**
*
* The maximum number of layers to return.
*
*/
private Integer maxItems;
/**
*
* The compatible instruction set
* architecture.
*
*/
private String compatibleArchitecture;
/**
*
* A runtime identifier. For example, java21
.
*
*
* The following list includes deprecated runtimes. For more information, see Runtime
* deprecation policy.
*
*
* @param compatibleRuntime
* A runtime identifier. For example, java21
.
*
* 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, java21
.
*
*
* The following list includes deprecated runtimes. For more information, see Runtime
* deprecation policy.
*
*
* @return A runtime identifier. For example, java21
.
*
* 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, java21
.
*
*
* The following list includes deprecated runtimes. For more information, see Runtime
* deprecation policy.
*
*
* @param compatibleRuntime
* A runtime identifier. For example, java21
.
*
* 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 ListLayersRequest withCompatibleRuntime(String compatibleRuntime) {
setCompatibleRuntime(compatibleRuntime);
return this;
}
/**
*
* A runtime identifier. For example, java21
.
*
*
* The following list includes deprecated runtimes. For more information, see Runtime
* deprecation policy.
*
*
* @param compatibleRuntime
* A runtime identifier. For example, java21
.
*
* 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 ListLayersRequest withCompatibleRuntime(Runtime compatibleRuntime) {
this.compatibleRuntime = compatibleRuntime.toString();
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 ListLayersRequest withMarker(String marker) {
setMarker(marker);
return this;
}
/**
*
* The maximum number of layers to return.
*
*
* @param maxItems
* The maximum number of layers to return.
*/
public void setMaxItems(Integer maxItems) {
this.maxItems = maxItems;
}
/**
*
* The maximum number of layers to return.
*
*
* @return The maximum number of layers to return.
*/
public Integer getMaxItems() {
return this.maxItems;
}
/**
*
* The maximum number of layers to return.
*
*
* @param maxItems
* The maximum number of layers to return.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListLayersRequest 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 ListLayersRequest 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 ListLayersRequest 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 (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 ListLayersRequest == false)
return false;
ListLayersRequest other = (ListLayersRequest) obj;
if (other.getCompatibleRuntime() == null ^ this.getCompatibleRuntime() == null)
return false;
if (other.getCompatibleRuntime() != null && other.getCompatibleRuntime().equals(this.getCompatibleRuntime()) == 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 + ((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 ListLayersRequest clone() {
return (ListLayersRequest) super.clone();
}
}