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

com.amazonaws.services.bedrock.model.ListCustomModelsRequest Maven / Gradle / Ivy

Go to download

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

    /**
     * 

* Return custom models created before the specified time. *

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

* Return custom models created after the specified time. *

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

* Return custom models only if the job name contains these characters. *

*/ private String nameContains; /** *

* Return custom models only if the base model Amazon Resource Name (ARN) matches this parameter. *

*/ private String baseModelArnEquals; /** *

* Return custom models only if the foundation model Amazon Resource Name (ARN) matches this parameter. *

*/ private String foundationModelArnEquals; /** *

* Maximum number of results to return in the response. *

*/ private Integer maxResults; /** *

* Continuation token from the previous response, for Amazon Bedrock to list the next set of results. *

*/ private String nextToken; /** *

* The field to sort by in the returned list of models. *

*/ private String sortBy; /** *

* The sort order of the results. *

*/ private String sortOrder; /** *

* Return custom models created before the specified time. *

* * @param creationTimeBefore * Return custom models created before the specified time. */ public void setCreationTimeBefore(java.util.Date creationTimeBefore) { this.creationTimeBefore = creationTimeBefore; } /** *

* Return custom models created before the specified time. *

* * @return Return custom models created before the specified time. */ public java.util.Date getCreationTimeBefore() { return this.creationTimeBefore; } /** *

* Return custom models created before the specified time. *

* * @param creationTimeBefore * Return custom models created before the specified time. * @return Returns a reference to this object so that method calls can be chained together. */ public ListCustomModelsRequest withCreationTimeBefore(java.util.Date creationTimeBefore) { setCreationTimeBefore(creationTimeBefore); return this; } /** *

* Return custom models created after the specified time. *

* * @param creationTimeAfter * Return custom models created after the specified time. */ public void setCreationTimeAfter(java.util.Date creationTimeAfter) { this.creationTimeAfter = creationTimeAfter; } /** *

* Return custom models created after the specified time. *

* * @return Return custom models created after the specified time. */ public java.util.Date getCreationTimeAfter() { return this.creationTimeAfter; } /** *

* Return custom models created after the specified time. *

* * @param creationTimeAfter * Return custom models created after the specified time. * @return Returns a reference to this object so that method calls can be chained together. */ public ListCustomModelsRequest withCreationTimeAfter(java.util.Date creationTimeAfter) { setCreationTimeAfter(creationTimeAfter); return this; } /** *

* Return custom models only if the job name contains these characters. *

* * @param nameContains * Return custom models only if the job name contains these characters. */ public void setNameContains(String nameContains) { this.nameContains = nameContains; } /** *

* Return custom models only if the job name contains these characters. *

* * @return Return custom models only if the job name contains these characters. */ public String getNameContains() { return this.nameContains; } /** *

* Return custom models only if the job name contains these characters. *

* * @param nameContains * Return custom models only if the job name contains these characters. * @return Returns a reference to this object so that method calls can be chained together. */ public ListCustomModelsRequest withNameContains(String nameContains) { setNameContains(nameContains); return this; } /** *

* Return custom models only if the base model Amazon Resource Name (ARN) matches this parameter. *

* * @param baseModelArnEquals * Return custom models only if the base model Amazon Resource Name (ARN) matches this parameter. */ public void setBaseModelArnEquals(String baseModelArnEquals) { this.baseModelArnEquals = baseModelArnEquals; } /** *

* Return custom models only if the base model Amazon Resource Name (ARN) matches this parameter. *

* * @return Return custom models only if the base model Amazon Resource Name (ARN) matches this parameter. */ public String getBaseModelArnEquals() { return this.baseModelArnEquals; } /** *

* Return custom models only if the base model Amazon Resource Name (ARN) matches this parameter. *

* * @param baseModelArnEquals * Return custom models only if the base model Amazon Resource Name (ARN) matches this parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public ListCustomModelsRequest withBaseModelArnEquals(String baseModelArnEquals) { setBaseModelArnEquals(baseModelArnEquals); return this; } /** *

* Return custom models only if the foundation model Amazon Resource Name (ARN) matches this parameter. *

* * @param foundationModelArnEquals * Return custom models only if the foundation model Amazon Resource Name (ARN) matches this parameter. */ public void setFoundationModelArnEquals(String foundationModelArnEquals) { this.foundationModelArnEquals = foundationModelArnEquals; } /** *

* Return custom models only if the foundation model Amazon Resource Name (ARN) matches this parameter. *

* * @return Return custom models only if the foundation model Amazon Resource Name (ARN) matches this parameter. */ public String getFoundationModelArnEquals() { return this.foundationModelArnEquals; } /** *

* Return custom models only if the foundation model Amazon Resource Name (ARN) matches this parameter. *

* * @param foundationModelArnEquals * Return custom models only if the foundation model Amazon Resource Name (ARN) matches this parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public ListCustomModelsRequest withFoundationModelArnEquals(String foundationModelArnEquals) { setFoundationModelArnEquals(foundationModelArnEquals); return this; } /** *

* Maximum number of results to return in the response. *

* * @param maxResults * Maximum number of results to return in the response. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* Maximum number of results to return in the response. *

* * @return Maximum number of results to return in the response. */ public Integer getMaxResults() { return this.maxResults; } /** *

* Maximum number of results to return in the response. *

* * @param maxResults * Maximum number of results to return in the response. * @return Returns a reference to this object so that method calls can be chained together. */ public ListCustomModelsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *

* Continuation token from the previous response, for Amazon Bedrock to list the next set of results. *

* * @param nextToken * Continuation token from the previous response, for Amazon Bedrock to list the next set of results. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* Continuation token from the previous response, for Amazon Bedrock to list the next set of results. *

* * @return Continuation token from the previous response, for Amazon Bedrock to list the next set of results. */ public String getNextToken() { return this.nextToken; } /** *

* Continuation token from the previous response, for Amazon Bedrock to list the next set of results. *

* * @param nextToken * Continuation token from the previous response, for Amazon Bedrock to list the next set of results. * @return Returns a reference to this object so that method calls can be chained together. */ public ListCustomModelsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* The field to sort by in the returned list of models. *

* * @param sortBy * The field to sort by in the returned list of models. * @see SortModelsBy */ public void setSortBy(String sortBy) { this.sortBy = sortBy; } /** *

* The field to sort by in the returned list of models. *

* * @return The field to sort by in the returned list of models. * @see SortModelsBy */ public String getSortBy() { return this.sortBy; } /** *

* The field to sort by in the returned list of models. *

* * @param sortBy * The field to sort by in the returned list of models. * @return Returns a reference to this object so that method calls can be chained together. * @see SortModelsBy */ public ListCustomModelsRequest withSortBy(String sortBy) { setSortBy(sortBy); return this; } /** *

* The field to sort by in the returned list of models. *

* * @param sortBy * The field to sort by in the returned list of models. * @return Returns a reference to this object so that method calls can be chained together. * @see SortModelsBy */ public ListCustomModelsRequest withSortBy(SortModelsBy sortBy) { this.sortBy = sortBy.toString(); return this; } /** *

* The sort order of the results. *

* * @param sortOrder * The sort order of the results. * @see SortOrder */ public void setSortOrder(String sortOrder) { this.sortOrder = sortOrder; } /** *

* The sort order of the results. *

* * @return The sort order of the results. * @see SortOrder */ public String getSortOrder() { return this.sortOrder; } /** *

* The sort order of the results. *

* * @param sortOrder * The sort order of the results. * @return Returns a reference to this object so that method calls can be chained together. * @see SortOrder */ public ListCustomModelsRequest withSortOrder(String sortOrder) { setSortOrder(sortOrder); return this; } /** *

* The sort order of the results. *

* * @param sortOrder * The sort order of the results. * @return Returns a reference to this object so that method calls can be chained together. * @see SortOrder */ public ListCustomModelsRequest withSortOrder(SortOrder 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 (getCreationTimeBefore() != null) sb.append("CreationTimeBefore: ").append(getCreationTimeBefore()).append(","); if (getCreationTimeAfter() != null) sb.append("CreationTimeAfter: ").append(getCreationTimeAfter()).append(","); if (getNameContains() != null) sb.append("NameContains: ").append(getNameContains()).append(","); if (getBaseModelArnEquals() != null) sb.append("BaseModelArnEquals: ").append(getBaseModelArnEquals()).append(","); if (getFoundationModelArnEquals() != null) sb.append("FoundationModelArnEquals: ").append(getFoundationModelArnEquals()).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 ListCustomModelsRequest == false) return false; ListCustomModelsRequest other = (ListCustomModelsRequest) obj; if (other.getCreationTimeBefore() == null ^ this.getCreationTimeBefore() == null) return false; if (other.getCreationTimeBefore() != null && other.getCreationTimeBefore().equals(this.getCreationTimeBefore()) == false) return false; if (other.getCreationTimeAfter() == null ^ this.getCreationTimeAfter() == null) return false; if (other.getCreationTimeAfter() != null && other.getCreationTimeAfter().equals(this.getCreationTimeAfter()) == false) return false; if (other.getNameContains() == null ^ this.getNameContains() == null) return false; if (other.getNameContains() != null && other.getNameContains().equals(this.getNameContains()) == false) return false; if (other.getBaseModelArnEquals() == null ^ this.getBaseModelArnEquals() == null) return false; if (other.getBaseModelArnEquals() != null && other.getBaseModelArnEquals().equals(this.getBaseModelArnEquals()) == false) return false; if (other.getFoundationModelArnEquals() == null ^ this.getFoundationModelArnEquals() == null) return false; if (other.getFoundationModelArnEquals() != null && other.getFoundationModelArnEquals().equals(this.getFoundationModelArnEquals()) == 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 + ((getCreationTimeBefore() == null) ? 0 : getCreationTimeBefore().hashCode()); hashCode = prime * hashCode + ((getCreationTimeAfter() == null) ? 0 : getCreationTimeAfter().hashCode()); hashCode = prime * hashCode + ((getNameContains() == null) ? 0 : getNameContains().hashCode()); hashCode = prime * hashCode + ((getBaseModelArnEquals() == null) ? 0 : getBaseModelArnEquals().hashCode()); hashCode = prime * hashCode + ((getFoundationModelArnEquals() == null) ? 0 : getFoundationModelArnEquals().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 ListCustomModelsRequest clone() { return (ListCustomModelsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy