com.amazonaws.services.sagemaker.model.ListInferenceRecommendationsJobsRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-sagemaker 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.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 ListInferenceRecommendationsJobsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* A filter that returns only jobs created after the specified time (timestamp).
*
*/
private java.util.Date creationTimeAfter;
/**
*
* A filter that returns only jobs created before the specified time (timestamp).
*
*/
private java.util.Date creationTimeBefore;
/**
*
* A filter that returns only jobs that were last modified after the specified time (timestamp).
*
*/
private java.util.Date lastModifiedTimeAfter;
/**
*
* A filter that returns only jobs that were last modified before the specified time (timestamp).
*
*/
private java.util.Date lastModifiedTimeBefore;
/**
*
* A string in the job name. This filter returns only recommendations whose name contains the specified string.
*
*/
private String nameContains;
/**
*
* A filter that retrieves only inference recommendations jobs with a specific status.
*
*/
private String statusEquals;
/**
*
* The parameter by which to sort the results.
*
*/
private String sortBy;
/**
*
* The sort order for the results.
*
*/
private String sortOrder;
/**
*
* If the response to a previous ListInferenceRecommendationsJobsRequest
request was truncated, the
* response includes a NextToken
. To retrieve the next set of recommendations, use the token in the
* next request.
*
*/
private String nextToken;
/**
*
* The maximum number of recommendations to return in the response.
*
*/
private Integer maxResults;
/**
*
* A filter that returns only jobs that were created for this model.
*
*/
private String modelNameEquals;
/**
*
* A filter that returns only jobs that were created for this versioned model package.
*
*/
private String modelPackageVersionArnEquals;
/**
*
* A filter that returns only jobs created after the specified time (timestamp).
*
*
* @param creationTimeAfter
* A filter that returns only jobs created after the specified time (timestamp).
*/
public void setCreationTimeAfter(java.util.Date creationTimeAfter) {
this.creationTimeAfter = creationTimeAfter;
}
/**
*
* A filter that returns only jobs created after the specified time (timestamp).
*
*
* @return A filter that returns only jobs created after the specified time (timestamp).
*/
public java.util.Date getCreationTimeAfter() {
return this.creationTimeAfter;
}
/**
*
* A filter that returns only jobs created after the specified time (timestamp).
*
*
* @param creationTimeAfter
* A filter that returns only jobs created after the specified time (timestamp).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceRecommendationsJobsRequest withCreationTimeAfter(java.util.Date creationTimeAfter) {
setCreationTimeAfter(creationTimeAfter);
return this;
}
/**
*
* A filter that returns only jobs created before the specified time (timestamp).
*
*
* @param creationTimeBefore
* A filter that returns only jobs created before the specified time (timestamp).
*/
public void setCreationTimeBefore(java.util.Date creationTimeBefore) {
this.creationTimeBefore = creationTimeBefore;
}
/**
*
* A filter that returns only jobs created before the specified time (timestamp).
*
*
* @return A filter that returns only jobs created before the specified time (timestamp).
*/
public java.util.Date getCreationTimeBefore() {
return this.creationTimeBefore;
}
/**
*
* A filter that returns only jobs created before the specified time (timestamp).
*
*
* @param creationTimeBefore
* A filter that returns only jobs created before the specified time (timestamp).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceRecommendationsJobsRequest withCreationTimeBefore(java.util.Date creationTimeBefore) {
setCreationTimeBefore(creationTimeBefore);
return this;
}
/**
*
* A filter that returns only jobs that were last modified after the specified time (timestamp).
*
*
* @param lastModifiedTimeAfter
* A filter that returns only jobs that were last modified after the specified time (timestamp).
*/
public void setLastModifiedTimeAfter(java.util.Date lastModifiedTimeAfter) {
this.lastModifiedTimeAfter = lastModifiedTimeAfter;
}
/**
*
* A filter that returns only jobs that were last modified after the specified time (timestamp).
*
*
* @return A filter that returns only jobs that were last modified after the specified time (timestamp).
*/
public java.util.Date getLastModifiedTimeAfter() {
return this.lastModifiedTimeAfter;
}
/**
*
* A filter that returns only jobs that were last modified after the specified time (timestamp).
*
*
* @param lastModifiedTimeAfter
* A filter that returns only jobs that were last modified after the specified time (timestamp).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceRecommendationsJobsRequest withLastModifiedTimeAfter(java.util.Date lastModifiedTimeAfter) {
setLastModifiedTimeAfter(lastModifiedTimeAfter);
return this;
}
/**
*
* A filter that returns only jobs that were last modified before the specified time (timestamp).
*
*
* @param lastModifiedTimeBefore
* A filter that returns only jobs that were last modified before the specified time (timestamp).
*/
public void setLastModifiedTimeBefore(java.util.Date lastModifiedTimeBefore) {
this.lastModifiedTimeBefore = lastModifiedTimeBefore;
}
/**
*
* A filter that returns only jobs that were last modified before the specified time (timestamp).
*
*
* @return A filter that returns only jobs that were last modified before the specified time (timestamp).
*/
public java.util.Date getLastModifiedTimeBefore() {
return this.lastModifiedTimeBefore;
}
/**
*
* A filter that returns only jobs that were last modified before the specified time (timestamp).
*
*
* @param lastModifiedTimeBefore
* A filter that returns only jobs that were last modified before the specified time (timestamp).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceRecommendationsJobsRequest withLastModifiedTimeBefore(java.util.Date lastModifiedTimeBefore) {
setLastModifiedTimeBefore(lastModifiedTimeBefore);
return this;
}
/**
*
* A string in the job name. This filter returns only recommendations whose name contains the specified string.
*
*
* @param nameContains
* A string in the job name. This filter returns only recommendations whose name contains the specified
* string.
*/
public void setNameContains(String nameContains) {
this.nameContains = nameContains;
}
/**
*
* A string in the job name. This filter returns only recommendations whose name contains the specified string.
*
*
* @return A string in the job name. This filter returns only recommendations whose name contains the specified
* string.
*/
public String getNameContains() {
return this.nameContains;
}
/**
*
* A string in the job name. This filter returns only recommendations whose name contains the specified string.
*
*
* @param nameContains
* A string in the job name. This filter returns only recommendations whose name contains the specified
* string.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceRecommendationsJobsRequest withNameContains(String nameContains) {
setNameContains(nameContains);
return this;
}
/**
*
* A filter that retrieves only inference recommendations jobs with a specific status.
*
*
* @param statusEquals
* A filter that retrieves only inference recommendations jobs with a specific status.
* @see RecommendationJobStatus
*/
public void setStatusEquals(String statusEquals) {
this.statusEquals = statusEquals;
}
/**
*
* A filter that retrieves only inference recommendations jobs with a specific status.
*
*
* @return A filter that retrieves only inference recommendations jobs with a specific status.
* @see RecommendationJobStatus
*/
public String getStatusEquals() {
return this.statusEquals;
}
/**
*
* A filter that retrieves only inference recommendations jobs with a specific status.
*
*
* @param statusEquals
* A filter that retrieves only inference recommendations jobs with a specific status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RecommendationJobStatus
*/
public ListInferenceRecommendationsJobsRequest withStatusEquals(String statusEquals) {
setStatusEquals(statusEquals);
return this;
}
/**
*
* A filter that retrieves only inference recommendations jobs with a specific status.
*
*
* @param statusEquals
* A filter that retrieves only inference recommendations jobs with a specific status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see RecommendationJobStatus
*/
public ListInferenceRecommendationsJobsRequest withStatusEquals(RecommendationJobStatus statusEquals) {
this.statusEquals = statusEquals.toString();
return this;
}
/**
*
* The parameter by which to sort the results.
*
*
* @param sortBy
* The parameter by which to sort the results.
* @see ListInferenceRecommendationsJobsSortBy
*/
public void setSortBy(String sortBy) {
this.sortBy = sortBy;
}
/**
*
* The parameter by which to sort the results.
*
*
* @return The parameter by which to sort the results.
* @see ListInferenceRecommendationsJobsSortBy
*/
public String getSortBy() {
return this.sortBy;
}
/**
*
* The parameter by which to sort the results.
*
*
* @param sortBy
* The parameter by which to sort the results.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ListInferenceRecommendationsJobsSortBy
*/
public ListInferenceRecommendationsJobsRequest withSortBy(String sortBy) {
setSortBy(sortBy);
return this;
}
/**
*
* The parameter by which to sort the results.
*
*
* @param sortBy
* The parameter by which to sort the results.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ListInferenceRecommendationsJobsSortBy
*/
public ListInferenceRecommendationsJobsRequest withSortBy(ListInferenceRecommendationsJobsSortBy sortBy) {
this.sortBy = sortBy.toString();
return this;
}
/**
*
* The sort order for the results.
*
*
* @param sortOrder
* The sort order for the results.
* @see SortOrder
*/
public void setSortOrder(String sortOrder) {
this.sortOrder = sortOrder;
}
/**
*
* The sort order for the results.
*
*
* @return The sort order for the results.
* @see SortOrder
*/
public String getSortOrder() {
return this.sortOrder;
}
/**
*
* The sort order for the results.
*
*
* @param sortOrder
* The sort order for the results.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SortOrder
*/
public ListInferenceRecommendationsJobsRequest withSortOrder(String sortOrder) {
setSortOrder(sortOrder);
return this;
}
/**
*
* The sort order for the results.
*
*
* @param sortOrder
* The sort order for the results.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SortOrder
*/
public ListInferenceRecommendationsJobsRequest withSortOrder(SortOrder sortOrder) {
this.sortOrder = sortOrder.toString();
return this;
}
/**
*
* If the response to a previous ListInferenceRecommendationsJobsRequest
request was truncated, the
* response includes a NextToken
. To retrieve the next set of recommendations, use the token in the
* next request.
*
*
* @param nextToken
* If the response to a previous ListInferenceRecommendationsJobsRequest
request was truncated,
* the response includes a NextToken
. To retrieve the next set of recommendations, use the token
* in the next request.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* If the response to a previous ListInferenceRecommendationsJobsRequest
request was truncated, the
* response includes a NextToken
. To retrieve the next set of recommendations, use the token in the
* next request.
*
*
* @return If the response to a previous ListInferenceRecommendationsJobsRequest
request was truncated,
* the response includes a NextToken
. To retrieve the next set of recommendations, use the
* token in the next request.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* If the response to a previous ListInferenceRecommendationsJobsRequest
request was truncated, the
* response includes a NextToken
. To retrieve the next set of recommendations, use the token in the
* next request.
*
*
* @param nextToken
* If the response to a previous ListInferenceRecommendationsJobsRequest
request was truncated,
* the response includes a NextToken
. To retrieve the next set of recommendations, use the token
* in the next request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceRecommendationsJobsRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
* The maximum number of recommendations to return in the response.
*
*
* @param maxResults
* The maximum number of recommendations to return in the response.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* The maximum number of recommendations to return in the response.
*
*
* @return The maximum number of recommendations to return in the response.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* The maximum number of recommendations to return in the response.
*
*
* @param maxResults
* The maximum number of recommendations to return in the response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceRecommendationsJobsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* A filter that returns only jobs that were created for this model.
*
*
* @param modelNameEquals
* A filter that returns only jobs that were created for this model.
*/
public void setModelNameEquals(String modelNameEquals) {
this.modelNameEquals = modelNameEquals;
}
/**
*
* A filter that returns only jobs that were created for this model.
*
*
* @return A filter that returns only jobs that were created for this model.
*/
public String getModelNameEquals() {
return this.modelNameEquals;
}
/**
*
* A filter that returns only jobs that were created for this model.
*
*
* @param modelNameEquals
* A filter that returns only jobs that were created for this model.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceRecommendationsJobsRequest withModelNameEquals(String modelNameEquals) {
setModelNameEquals(modelNameEquals);
return this;
}
/**
*
* A filter that returns only jobs that were created for this versioned model package.
*
*
* @param modelPackageVersionArnEquals
* A filter that returns only jobs that were created for this versioned model package.
*/
public void setModelPackageVersionArnEquals(String modelPackageVersionArnEquals) {
this.modelPackageVersionArnEquals = modelPackageVersionArnEquals;
}
/**
*
* A filter that returns only jobs that were created for this versioned model package.
*
*
* @return A filter that returns only jobs that were created for this versioned model package.
*/
public String getModelPackageVersionArnEquals() {
return this.modelPackageVersionArnEquals;
}
/**
*
* A filter that returns only jobs that were created for this versioned model package.
*
*
* @param modelPackageVersionArnEquals
* A filter that returns only jobs that were created for this versioned model package.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceRecommendationsJobsRequest withModelPackageVersionArnEquals(String modelPackageVersionArnEquals) {
setModelPackageVersionArnEquals(modelPackageVersionArnEquals);
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 (getLastModifiedTimeAfter() != null)
sb.append("LastModifiedTimeAfter: ").append(getLastModifiedTimeAfter()).append(",");
if (getLastModifiedTimeBefore() != null)
sb.append("LastModifiedTimeBefore: ").append(getLastModifiedTimeBefore()).append(",");
if (getNameContains() != null)
sb.append("NameContains: ").append(getNameContains()).append(",");
if (getStatusEquals() != null)
sb.append("StatusEquals: ").append(getStatusEquals()).append(",");
if (getSortBy() != null)
sb.append("SortBy: ").append(getSortBy()).append(",");
if (getSortOrder() != null)
sb.append("SortOrder: ").append(getSortOrder()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getModelNameEquals() != null)
sb.append("ModelNameEquals: ").append(getModelNameEquals()).append(",");
if (getModelPackageVersionArnEquals() != null)
sb.append("ModelPackageVersionArnEquals: ").append(getModelPackageVersionArnEquals());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListInferenceRecommendationsJobsRequest == false)
return false;
ListInferenceRecommendationsJobsRequest other = (ListInferenceRecommendationsJobsRequest) 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.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.getNameContains() == null ^ this.getNameContains() == null)
return false;
if (other.getNameContains() != null && other.getNameContains().equals(this.getNameContains()) == false)
return false;
if (other.getStatusEquals() == null ^ this.getStatusEquals() == null)
return false;
if (other.getStatusEquals() != null && other.getStatusEquals().equals(this.getStatusEquals()) == 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;
if (other.getNextToken() == null ^ this.getNextToken() == null)
return false;
if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == 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.getModelNameEquals() == null ^ this.getModelNameEquals() == null)
return false;
if (other.getModelNameEquals() != null && other.getModelNameEquals().equals(this.getModelNameEquals()) == false)
return false;
if (other.getModelPackageVersionArnEquals() == null ^ this.getModelPackageVersionArnEquals() == null)
return false;
if (other.getModelPackageVersionArnEquals() != null && other.getModelPackageVersionArnEquals().equals(this.getModelPackageVersionArnEquals()) == 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 + ((getLastModifiedTimeAfter() == null) ? 0 : getLastModifiedTimeAfter().hashCode());
hashCode = prime * hashCode + ((getLastModifiedTimeBefore() == null) ? 0 : getLastModifiedTimeBefore().hashCode());
hashCode = prime * hashCode + ((getNameContains() == null) ? 0 : getNameContains().hashCode());
hashCode = prime * hashCode + ((getStatusEquals() == null) ? 0 : getStatusEquals().hashCode());
hashCode = prime * hashCode + ((getSortBy() == null) ? 0 : getSortBy().hashCode());
hashCode = prime * hashCode + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getModelNameEquals() == null) ? 0 : getModelNameEquals().hashCode());
hashCode = prime * hashCode + ((getModelPackageVersionArnEquals() == null) ? 0 : getModelPackageVersionArnEquals().hashCode());
return hashCode;
}
@Override
public ListInferenceRecommendationsJobsRequest clone() {
return (ListInferenceRecommendationsJobsRequest) super.clone();
}
}