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

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

/*
 * 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 ListModelCardVersionsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* Only list model card versions that were created after the time specified. *

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

* Only list model card versions that were created before the time specified. *

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

* The maximum number of model card versions to list. *

*/ private Integer maxResults; /** *

* List model card versions for the model card with the specified name or Amazon Resource Name (ARN). *

*/ private String modelCardName; /** *

* Only list model card versions with the specified approval status. *

*/ private String modelCardStatus; /** *

* If the response to a previous ListModelCardVersions request was truncated, the response includes a * NextToken. To retrieve the next set of model card versions, use the token in the next request. *

*/ private String nextToken; /** *

* Sort listed model card versions by version. Sorts by version by default. *

*/ private String sortBy; /** *

* Sort model card versions by ascending or descending order. *

*/ private String sortOrder; /** *

* Only list model card versions that were created after the time specified. *

* * @param creationTimeAfter * Only list model card versions that were created after the time specified. */ public void setCreationTimeAfter(java.util.Date creationTimeAfter) { this.creationTimeAfter = creationTimeAfter; } /** *

* Only list model card versions that were created after the time specified. *

* * @return Only list model card versions that were created after the time specified. */ public java.util.Date getCreationTimeAfter() { return this.creationTimeAfter; } /** *

* Only list model card versions that were created after the time specified. *

* * @param creationTimeAfter * Only list model card versions that were created after the time specified. * @return Returns a reference to this object so that method calls can be chained together. */ public ListModelCardVersionsRequest withCreationTimeAfter(java.util.Date creationTimeAfter) { setCreationTimeAfter(creationTimeAfter); return this; } /** *

* Only list model card versions that were created before the time specified. *

* * @param creationTimeBefore * Only list model card versions that were created before the time specified. */ public void setCreationTimeBefore(java.util.Date creationTimeBefore) { this.creationTimeBefore = creationTimeBefore; } /** *

* Only list model card versions that were created before the time specified. *

* * @return Only list model card versions that were created before the time specified. */ public java.util.Date getCreationTimeBefore() { return this.creationTimeBefore; } /** *

* Only list model card versions that were created before the time specified. *

* * @param creationTimeBefore * Only list model card versions that were created before the time specified. * @return Returns a reference to this object so that method calls can be chained together. */ public ListModelCardVersionsRequest withCreationTimeBefore(java.util.Date creationTimeBefore) { setCreationTimeBefore(creationTimeBefore); return this; } /** *

* The maximum number of model card versions to list. *

* * @param maxResults * The maximum number of model card versions to list. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* The maximum number of model card versions to list. *

* * @return The maximum number of model card versions to list. */ public Integer getMaxResults() { return this.maxResults; } /** *

* The maximum number of model card versions to list. *

* * @param maxResults * The maximum number of model card versions to list. * @return Returns a reference to this object so that method calls can be chained together. */ public ListModelCardVersionsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *

* List model card versions for the model card with the specified name or Amazon Resource Name (ARN). *

* * @param modelCardName * List model card versions for the model card with the specified name or Amazon Resource Name (ARN). */ public void setModelCardName(String modelCardName) { this.modelCardName = modelCardName; } /** *

* List model card versions for the model card with the specified name or Amazon Resource Name (ARN). *

* * @return List model card versions for the model card with the specified name or Amazon Resource Name (ARN). */ public String getModelCardName() { return this.modelCardName; } /** *

* List model card versions for the model card with the specified name or Amazon Resource Name (ARN). *

* * @param modelCardName * List model card versions for the model card with the specified name or Amazon Resource Name (ARN). * @return Returns a reference to this object so that method calls can be chained together. */ public ListModelCardVersionsRequest withModelCardName(String modelCardName) { setModelCardName(modelCardName); return this; } /** *

* Only list model card versions with the specified approval status. *

* * @param modelCardStatus * Only list model card versions with the specified approval status. * @see ModelCardStatus */ public void setModelCardStatus(String modelCardStatus) { this.modelCardStatus = modelCardStatus; } /** *

* Only list model card versions with the specified approval status. *

* * @return Only list model card versions with the specified approval status. * @see ModelCardStatus */ public String getModelCardStatus() { return this.modelCardStatus; } /** *

* Only list model card versions with the specified approval status. *

* * @param modelCardStatus * Only list model card versions with the specified approval status. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelCardStatus */ public ListModelCardVersionsRequest withModelCardStatus(String modelCardStatus) { setModelCardStatus(modelCardStatus); return this; } /** *

* Only list model card versions with the specified approval status. *

* * @param modelCardStatus * Only list model card versions with the specified approval status. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelCardStatus */ public ListModelCardVersionsRequest withModelCardStatus(ModelCardStatus modelCardStatus) { this.modelCardStatus = modelCardStatus.toString(); return this; } /** *

* If the response to a previous ListModelCardVersions request was truncated, the response includes a * NextToken. To retrieve the next set of model card versions, use the token in the next request. *

* * @param nextToken * If the response to a previous ListModelCardVersions request was truncated, the response * includes a NextToken. To retrieve the next set of model card versions, use the token in the * next request. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* If the response to a previous ListModelCardVersions request was truncated, the response includes a * NextToken. To retrieve the next set of model card versions, use the token in the next request. *

* * @return If the response to a previous ListModelCardVersions request was truncated, the response * includes a NextToken. To retrieve the next set of model card versions, use the token in the * next request. */ public String getNextToken() { return this.nextToken; } /** *

* If the response to a previous ListModelCardVersions request was truncated, the response includes a * NextToken. To retrieve the next set of model card versions, use the token in the next request. *

* * @param nextToken * If the response to a previous ListModelCardVersions request was truncated, the response * includes a NextToken. To retrieve the next set of model card versions, use the token in the * next request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListModelCardVersionsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* Sort listed model card versions by version. Sorts by version by default. *

* * @param sortBy * Sort listed model card versions by version. Sorts by version by default. * @see ModelCardVersionSortBy */ public void setSortBy(String sortBy) { this.sortBy = sortBy; } /** *

* Sort listed model card versions by version. Sorts by version by default. *

* * @return Sort listed model card versions by version. Sorts by version by default. * @see ModelCardVersionSortBy */ public String getSortBy() { return this.sortBy; } /** *

* Sort listed model card versions by version. Sorts by version by default. *

* * @param sortBy * Sort listed model card versions by version. Sorts by version by default. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelCardVersionSortBy */ public ListModelCardVersionsRequest withSortBy(String sortBy) { setSortBy(sortBy); return this; } /** *

* Sort listed model card versions by version. Sorts by version by default. *

* * @param sortBy * Sort listed model card versions by version. Sorts by version by default. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelCardVersionSortBy */ public ListModelCardVersionsRequest withSortBy(ModelCardVersionSortBy sortBy) { this.sortBy = sortBy.toString(); return this; } /** *

* Sort model card versions by ascending or descending order. *

* * @param sortOrder * Sort model card versions by ascending or descending order. * @see ModelCardSortOrder */ public void setSortOrder(String sortOrder) { this.sortOrder = sortOrder; } /** *

* Sort model card versions by ascending or descending order. *

* * @return Sort model card versions by ascending or descending order. * @see ModelCardSortOrder */ public String getSortOrder() { return this.sortOrder; } /** *

* Sort model card versions by ascending or descending order. *

* * @param sortOrder * Sort model card versions by ascending or descending order. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelCardSortOrder */ public ListModelCardVersionsRequest withSortOrder(String sortOrder) { setSortOrder(sortOrder); return this; } /** *

* Sort model card versions by ascending or descending order. *

* * @param sortOrder * Sort model card versions by ascending or descending order. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelCardSortOrder */ public ListModelCardVersionsRequest withSortOrder(ModelCardSortOrder 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 (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getModelCardName() != null) sb.append("ModelCardName: ").append(getModelCardName()).append(","); if (getModelCardStatus() != null) sb.append("ModelCardStatus: ").append(getModelCardStatus()).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 ListModelCardVersionsRequest == false) return false; ListModelCardVersionsRequest other = (ListModelCardVersionsRequest) 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.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getModelCardName() == null ^ this.getModelCardName() == null) return false; if (other.getModelCardName() != null && other.getModelCardName().equals(this.getModelCardName()) == false) return false; if (other.getModelCardStatus() == null ^ this.getModelCardStatus() == null) return false; if (other.getModelCardStatus() != null && other.getModelCardStatus().equals(this.getModelCardStatus()) == 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 + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getModelCardName() == null) ? 0 : getModelCardName().hashCode()); hashCode = prime * hashCode + ((getModelCardStatus() == null) ? 0 : getModelCardStatus().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 ListModelCardVersionsRequest clone() { return (ListModelCardVersionsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy