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

com.amazonaws.services.sagemaker.model.ListImageVersionsRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon SageMaker module holds the client classes that are used for communicating with Amazon SageMaker 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.sagemaker.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 ListImageVersionsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* A filter that returns only versions created on or after the specified time. *

*/ private java.util.Date creationTimeAfter; /** *

* A filter that returns only versions created on or before the specified time. *

*/ private java.util.Date creationTimeBefore; /** *

* The name of the image to list the versions of. *

*/ private String imageName; /** *

* A filter that returns only versions modified on or after the specified time. *

*/ private java.util.Date lastModifiedTimeAfter; /** *

* A filter that returns only versions modified on or before the specified time. *

*/ private java.util.Date lastModifiedTimeBefore; /** *

* The maximum number of versions to return in the response. The default value is 10. *

*/ private Integer maxResults; /** *

* If the previous call to ListImageVersions didn't return the full set of versions, the call returns a * token for getting the next set of versions. *

*/ private String nextToken; /** *

* The property used to sort results. The default value is CREATION_TIME. *

*/ private String sortBy; /** *

* The sort order. The default value is DESCENDING. *

*/ private String sortOrder; /** *

* A filter that returns only versions created on or after the specified time. *

* * @param creationTimeAfter * A filter that returns only versions created on or after the specified time. */ public void setCreationTimeAfter(java.util.Date creationTimeAfter) { this.creationTimeAfter = creationTimeAfter; } /** *

* A filter that returns only versions created on or after the specified time. *

* * @return A filter that returns only versions created on or after the specified time. */ public java.util.Date getCreationTimeAfter() { return this.creationTimeAfter; } /** *

* A filter that returns only versions created on or after the specified time. *

* * @param creationTimeAfter * A filter that returns only versions created on or after the specified time. * @return Returns a reference to this object so that method calls can be chained together. */ public ListImageVersionsRequest withCreationTimeAfter(java.util.Date creationTimeAfter) { setCreationTimeAfter(creationTimeAfter); return this; } /** *

* A filter that returns only versions created on or before the specified time. *

* * @param creationTimeBefore * A filter that returns only versions created on or before the specified time. */ public void setCreationTimeBefore(java.util.Date creationTimeBefore) { this.creationTimeBefore = creationTimeBefore; } /** *

* A filter that returns only versions created on or before the specified time. *

* * @return A filter that returns only versions created on or before the specified time. */ public java.util.Date getCreationTimeBefore() { return this.creationTimeBefore; } /** *

* A filter that returns only versions created on or before the specified time. *

* * @param creationTimeBefore * A filter that returns only versions created on or before the specified time. * @return Returns a reference to this object so that method calls can be chained together. */ public ListImageVersionsRequest withCreationTimeBefore(java.util.Date creationTimeBefore) { setCreationTimeBefore(creationTimeBefore); return this; } /** *

* The name of the image to list the versions of. *

* * @param imageName * The name of the image to list the versions of. */ public void setImageName(String imageName) { this.imageName = imageName; } /** *

* The name of the image to list the versions of. *

* * @return The name of the image to list the versions of. */ public String getImageName() { return this.imageName; } /** *

* The name of the image to list the versions of. *

* * @param imageName * The name of the image to list the versions of. * @return Returns a reference to this object so that method calls can be chained together. */ public ListImageVersionsRequest withImageName(String imageName) { setImageName(imageName); return this; } /** *

* A filter that returns only versions modified on or after the specified time. *

* * @param lastModifiedTimeAfter * A filter that returns only versions modified on or after the specified time. */ public void setLastModifiedTimeAfter(java.util.Date lastModifiedTimeAfter) { this.lastModifiedTimeAfter = lastModifiedTimeAfter; } /** *

* A filter that returns only versions modified on or after the specified time. *

* * @return A filter that returns only versions modified on or after the specified time. */ public java.util.Date getLastModifiedTimeAfter() { return this.lastModifiedTimeAfter; } /** *

* A filter that returns only versions modified on or after the specified time. *

* * @param lastModifiedTimeAfter * A filter that returns only versions modified on or after the specified time. * @return Returns a reference to this object so that method calls can be chained together. */ public ListImageVersionsRequest withLastModifiedTimeAfter(java.util.Date lastModifiedTimeAfter) { setLastModifiedTimeAfter(lastModifiedTimeAfter); return this; } /** *

* A filter that returns only versions modified on or before the specified time. *

* * @param lastModifiedTimeBefore * A filter that returns only versions modified on or before the specified time. */ public void setLastModifiedTimeBefore(java.util.Date lastModifiedTimeBefore) { this.lastModifiedTimeBefore = lastModifiedTimeBefore; } /** *

* A filter that returns only versions modified on or before the specified time. *

* * @return A filter that returns only versions modified on or before the specified time. */ public java.util.Date getLastModifiedTimeBefore() { return this.lastModifiedTimeBefore; } /** *

* A filter that returns only versions modified on or before the specified time. *

* * @param lastModifiedTimeBefore * A filter that returns only versions modified on or before the specified time. * @return Returns a reference to this object so that method calls can be chained together. */ public ListImageVersionsRequest withLastModifiedTimeBefore(java.util.Date lastModifiedTimeBefore) { setLastModifiedTimeBefore(lastModifiedTimeBefore); return this; } /** *

* The maximum number of versions to return in the response. The default value is 10. *

* * @param maxResults * The maximum number of versions to return in the response. The default value is 10. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* The maximum number of versions to return in the response. The default value is 10. *

* * @return The maximum number of versions to return in the response. The default value is 10. */ public Integer getMaxResults() { return this.maxResults; } /** *

* The maximum number of versions to return in the response. The default value is 10. *

* * @param maxResults * The maximum number of versions to return in the response. The default value is 10. * @return Returns a reference to this object so that method calls can be chained together. */ public ListImageVersionsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *

* If the previous call to ListImageVersions didn't return the full set of versions, the call returns a * token for getting the next set of versions. *

* * @param nextToken * If the previous call to ListImageVersions didn't return the full set of versions, the call * returns a token for getting the next set of versions. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* If the previous call to ListImageVersions didn't return the full set of versions, the call returns a * token for getting the next set of versions. *

* * @return If the previous call to ListImageVersions didn't return the full set of versions, the call * returns a token for getting the next set of versions. */ public String getNextToken() { return this.nextToken; } /** *

* If the previous call to ListImageVersions didn't return the full set of versions, the call returns a * token for getting the next set of versions. *

* * @param nextToken * If the previous call to ListImageVersions didn't return the full set of versions, the call * returns a token for getting the next set of versions. * @return Returns a reference to this object so that method calls can be chained together. */ public ListImageVersionsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* The property used to sort results. The default value is CREATION_TIME. *

* * @param sortBy * The property used to sort results. The default value is CREATION_TIME. * @see ImageVersionSortBy */ public void setSortBy(String sortBy) { this.sortBy = sortBy; } /** *

* The property used to sort results. The default value is CREATION_TIME. *

* * @return The property used to sort results. The default value is CREATION_TIME. * @see ImageVersionSortBy */ public String getSortBy() { return this.sortBy; } /** *

* The property used to sort results. The default value is CREATION_TIME. *

* * @param sortBy * The property used to sort results. The default value is CREATION_TIME. * @return Returns a reference to this object so that method calls can be chained together. * @see ImageVersionSortBy */ public ListImageVersionsRequest withSortBy(String sortBy) { setSortBy(sortBy); return this; } /** *

* The property used to sort results. The default value is CREATION_TIME. *

* * @param sortBy * The property used to sort results. The default value is CREATION_TIME. * @return Returns a reference to this object so that method calls can be chained together. * @see ImageVersionSortBy */ public ListImageVersionsRequest withSortBy(ImageVersionSortBy sortBy) { this.sortBy = sortBy.toString(); return this; } /** *

* The sort order. The default value is DESCENDING. *

* * @param sortOrder * The sort order. The default value is DESCENDING. * @see ImageVersionSortOrder */ public void setSortOrder(String sortOrder) { this.sortOrder = sortOrder; } /** *

* The sort order. The default value is DESCENDING. *

* * @return The sort order. The default value is DESCENDING. * @see ImageVersionSortOrder */ public String getSortOrder() { return this.sortOrder; } /** *

* The sort order. The default value is DESCENDING. *

* * @param sortOrder * The sort order. The default value is DESCENDING. * @return Returns a reference to this object so that method calls can be chained together. * @see ImageVersionSortOrder */ public ListImageVersionsRequest withSortOrder(String sortOrder) { setSortOrder(sortOrder); return this; } /** *

* The sort order. The default value is DESCENDING. *

* * @param sortOrder * The sort order. The default value is DESCENDING. * @return Returns a reference to this object so that method calls can be chained together. * @see ImageVersionSortOrder */ public ListImageVersionsRequest withSortOrder(ImageVersionSortOrder sortOrder) { this.sortOrder = sortOrder.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 (getCreationTimeAfter() != null) sb.append("CreationTimeAfter: ").append(getCreationTimeAfter()).append(","); if (getCreationTimeBefore() != null) sb.append("CreationTimeBefore: ").append(getCreationTimeBefore()).append(","); if (getImageName() != null) sb.append("ImageName: ").append(getImageName()).append(","); if (getLastModifiedTimeAfter() != null) sb.append("LastModifiedTimeAfter: ").append(getLastModifiedTimeAfter()).append(","); if (getLastModifiedTimeBefore() != null) sb.append("LastModifiedTimeBefore: ").append(getLastModifiedTimeBefore()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getSortBy() != null) sb.append("SortBy: ").append(getSortBy()).append(","); if (getSortOrder() != null) sb.append("SortOrder: ").append(getSortOrder()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListImageVersionsRequest == false) return false; ListImageVersionsRequest other = (ListImageVersionsRequest) obj; if (other.getCreationTimeAfter() == null ^ this.getCreationTimeAfter() == null) return false; if (other.getCreationTimeAfter() != null && other.getCreationTimeAfter().equals(this.getCreationTimeAfter()) == false) return false; if (other.getCreationTimeBefore() == null ^ this.getCreationTimeBefore() == null) return false; if (other.getCreationTimeBefore() != null && other.getCreationTimeBefore().equals(this.getCreationTimeBefore()) == false) return false; if (other.getImageName() == null ^ this.getImageName() == null) return false; if (other.getImageName() != null && other.getImageName().equals(this.getImageName()) == false) return false; if (other.getLastModifiedTimeAfter() == null ^ this.getLastModifiedTimeAfter() == null) return false; if (other.getLastModifiedTimeAfter() != null && other.getLastModifiedTimeAfter().equals(this.getLastModifiedTimeAfter()) == false) return false; if (other.getLastModifiedTimeBefore() == null ^ this.getLastModifiedTimeBefore() == null) return false; if (other.getLastModifiedTimeBefore() != null && other.getLastModifiedTimeBefore().equals(this.getLastModifiedTimeBefore()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getSortBy() == null ^ this.getSortBy() == null) return false; if (other.getSortBy() != null && other.getSortBy().equals(this.getSortBy()) == false) return false; if (other.getSortOrder() == null ^ this.getSortOrder() == null) return false; if (other.getSortOrder() != null && other.getSortOrder().equals(this.getSortOrder()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreationTimeAfter() == null) ? 0 : getCreationTimeAfter().hashCode()); hashCode = prime * hashCode + ((getCreationTimeBefore() == null) ? 0 : getCreationTimeBefore().hashCode()); hashCode = prime * hashCode + ((getImageName() == null) ? 0 : getImageName().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTimeAfter() == null) ? 0 : getLastModifiedTimeAfter().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTimeBefore() == null) ? 0 : getLastModifiedTimeBefore().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getSortBy() == null) ? 0 : getSortBy().hashCode()); hashCode = prime * hashCode + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode()); return hashCode; } @Override public ListImageVersionsRequest clone() { return (ListImageVersionsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy