com.amazonaws.services.sagemaker.model.ListInferenceComponentsRequest 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 ListInferenceComponentsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The field by which to sort the inference components in the response. The default is CreationTime
.
*
*/
private String sortBy;
/**
*
* The sort order for results. The default is Descending
.
*
*/
private String sortOrder;
/**
*
* A token that you use to get the next set of results following a truncated response. If the response to the
* previous request was truncated, that response provides the value for this token.
*
*/
private String nextToken;
/**
*
* The maximum number of inference components to return in the response. This value defaults to 10.
*
*/
private Integer maxResults;
/**
*
* Filters the results to only those inference components with a name that contains the specified string.
*
*/
private String nameContains;
/**
*
* Filters the results to only those inference components that were created before the specified time.
*
*/
private java.util.Date creationTimeBefore;
/**
*
* Filters the results to only those inference components that were created after the specified time.
*
*/
private java.util.Date creationTimeAfter;
/**
*
* Filters the results to only those inference components that were updated before the specified time.
*
*/
private java.util.Date lastModifiedTimeBefore;
/**
*
* Filters the results to only those inference components that were updated after the specified time.
*
*/
private java.util.Date lastModifiedTimeAfter;
/**
*
* Filters the results to only those inference components with the specified status.
*
*/
private String statusEquals;
/**
*
* An endpoint name to filter the listed inference components. The response includes only those inference components
* that are hosted at the specified endpoint.
*
*/
private String endpointNameEquals;
/**
*
* A production variant name to filter the listed inference components. The response includes only those inference
* components that are hosted at the specified variant.
*
*/
private String variantNameEquals;
/**
*
* The field by which to sort the inference components in the response. The default is CreationTime
.
*
*
* @param sortBy
* The field by which to sort the inference components in the response. The default is
* CreationTime
.
* @see InferenceComponentSortKey
*/
public void setSortBy(String sortBy) {
this.sortBy = sortBy;
}
/**
*
* The field by which to sort the inference components in the response. The default is CreationTime
.
*
*
* @return The field by which to sort the inference components in the response. The default is
* CreationTime
.
* @see InferenceComponentSortKey
*/
public String getSortBy() {
return this.sortBy;
}
/**
*
* The field by which to sort the inference components in the response. The default is CreationTime
.
*
*
* @param sortBy
* The field by which to sort the inference components in the response. The default is
* CreationTime
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see InferenceComponentSortKey
*/
public ListInferenceComponentsRequest withSortBy(String sortBy) {
setSortBy(sortBy);
return this;
}
/**
*
* The field by which to sort the inference components in the response. The default is CreationTime
.
*
*
* @param sortBy
* The field by which to sort the inference components in the response. The default is
* CreationTime
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see InferenceComponentSortKey
*/
public ListInferenceComponentsRequest withSortBy(InferenceComponentSortKey sortBy) {
this.sortBy = sortBy.toString();
return this;
}
/**
*
* The sort order for results. The default is Descending
.
*
*
* @param sortOrder
* The sort order for results. The default is Descending
.
* @see OrderKey
*/
public void setSortOrder(String sortOrder) {
this.sortOrder = sortOrder;
}
/**
*
* The sort order for results. The default is Descending
.
*
*
* @return The sort order for results. The default is Descending
.
* @see OrderKey
*/
public String getSortOrder() {
return this.sortOrder;
}
/**
*
* The sort order for results. The default is Descending
.
*
*
* @param sortOrder
* The sort order for results. The default is Descending
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OrderKey
*/
public ListInferenceComponentsRequest withSortOrder(String sortOrder) {
setSortOrder(sortOrder);
return this;
}
/**
*
* The sort order for results. The default is Descending
.
*
*
* @param sortOrder
* The sort order for results. The default is Descending
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see OrderKey
*/
public ListInferenceComponentsRequest withSortOrder(OrderKey sortOrder) {
this.sortOrder = sortOrder.toString();
return this;
}
/**
*
* A token that you use to get the next set of results following a truncated response. If the response to the
* previous request was truncated, that response provides the value for this token.
*
*
* @param nextToken
* A token that you use to get the next set of results following a truncated response. If the response to the
* previous request was truncated, that response provides the value for this token.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* A token that you use to get the next set of results following a truncated response. If the response to the
* previous request was truncated, that response provides the value for this token.
*
*
* @return A token that you use to get the next set of results following a truncated response. If the response to
* the previous request was truncated, that response provides the value for this token.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* A token that you use to get the next set of results following a truncated response. If the response to the
* previous request was truncated, that response provides the value for this token.
*
*
* @param nextToken
* A token that you use to get the next set of results following a truncated response. If the response to the
* previous request was truncated, that response provides the value for this token.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceComponentsRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
* The maximum number of inference components to return in the response. This value defaults to 10.
*
*
* @param maxResults
* The maximum number of inference components to return in the response. This value defaults to 10.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* The maximum number of inference components to return in the response. This value defaults to 10.
*
*
* @return The maximum number of inference components to return in the response. This value defaults to 10.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* The maximum number of inference components to return in the response. This value defaults to 10.
*
*
* @param maxResults
* The maximum number of inference components to return in the response. This value defaults to 10.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceComponentsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* Filters the results to only those inference components with a name that contains the specified string.
*
*
* @param nameContains
* Filters the results to only those inference components with a name that contains the specified string.
*/
public void setNameContains(String nameContains) {
this.nameContains = nameContains;
}
/**
*
* Filters the results to only those inference components with a name that contains the specified string.
*
*
* @return Filters the results to only those inference components with a name that contains the specified string.
*/
public String getNameContains() {
return this.nameContains;
}
/**
*
* Filters the results to only those inference components with a name that contains the specified string.
*
*
* @param nameContains
* Filters the results to only those inference components with a name that contains the specified string.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceComponentsRequest withNameContains(String nameContains) {
setNameContains(nameContains);
return this;
}
/**
*
* Filters the results to only those inference components that were created before the specified time.
*
*
* @param creationTimeBefore
* Filters the results to only those inference components that were created before the specified time.
*/
public void setCreationTimeBefore(java.util.Date creationTimeBefore) {
this.creationTimeBefore = creationTimeBefore;
}
/**
*
* Filters the results to only those inference components that were created before the specified time.
*
*
* @return Filters the results to only those inference components that were created before the specified time.
*/
public java.util.Date getCreationTimeBefore() {
return this.creationTimeBefore;
}
/**
*
* Filters the results to only those inference components that were created before the specified time.
*
*
* @param creationTimeBefore
* Filters the results to only those inference components that were created before the specified time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceComponentsRequest withCreationTimeBefore(java.util.Date creationTimeBefore) {
setCreationTimeBefore(creationTimeBefore);
return this;
}
/**
*
* Filters the results to only those inference components that were created after the specified time.
*
*
* @param creationTimeAfter
* Filters the results to only those inference components that were created after the specified time.
*/
public void setCreationTimeAfter(java.util.Date creationTimeAfter) {
this.creationTimeAfter = creationTimeAfter;
}
/**
*
* Filters the results to only those inference components that were created after the specified time.
*
*
* @return Filters the results to only those inference components that were created after the specified time.
*/
public java.util.Date getCreationTimeAfter() {
return this.creationTimeAfter;
}
/**
*
* Filters the results to only those inference components that were created after the specified time.
*
*
* @param creationTimeAfter
* Filters the results to only those inference components that were created after the specified time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceComponentsRequest withCreationTimeAfter(java.util.Date creationTimeAfter) {
setCreationTimeAfter(creationTimeAfter);
return this;
}
/**
*
* Filters the results to only those inference components that were updated before the specified time.
*
*
* @param lastModifiedTimeBefore
* Filters the results to only those inference components that were updated before the specified time.
*/
public void setLastModifiedTimeBefore(java.util.Date lastModifiedTimeBefore) {
this.lastModifiedTimeBefore = lastModifiedTimeBefore;
}
/**
*
* Filters the results to only those inference components that were updated before the specified time.
*
*
* @return Filters the results to only those inference components that were updated before the specified time.
*/
public java.util.Date getLastModifiedTimeBefore() {
return this.lastModifiedTimeBefore;
}
/**
*
* Filters the results to only those inference components that were updated before the specified time.
*
*
* @param lastModifiedTimeBefore
* Filters the results to only those inference components that were updated before the specified time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceComponentsRequest withLastModifiedTimeBefore(java.util.Date lastModifiedTimeBefore) {
setLastModifiedTimeBefore(lastModifiedTimeBefore);
return this;
}
/**
*
* Filters the results to only those inference components that were updated after the specified time.
*
*
* @param lastModifiedTimeAfter
* Filters the results to only those inference components that were updated after the specified time.
*/
public void setLastModifiedTimeAfter(java.util.Date lastModifiedTimeAfter) {
this.lastModifiedTimeAfter = lastModifiedTimeAfter;
}
/**
*
* Filters the results to only those inference components that were updated after the specified time.
*
*
* @return Filters the results to only those inference components that were updated after the specified time.
*/
public java.util.Date getLastModifiedTimeAfter() {
return this.lastModifiedTimeAfter;
}
/**
*
* Filters the results to only those inference components that were updated after the specified time.
*
*
* @param lastModifiedTimeAfter
* Filters the results to only those inference components that were updated after the specified time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceComponentsRequest withLastModifiedTimeAfter(java.util.Date lastModifiedTimeAfter) {
setLastModifiedTimeAfter(lastModifiedTimeAfter);
return this;
}
/**
*
* Filters the results to only those inference components with the specified status.
*
*
* @param statusEquals
* Filters the results to only those inference components with the specified status.
* @see InferenceComponentStatus
*/
public void setStatusEquals(String statusEquals) {
this.statusEquals = statusEquals;
}
/**
*
* Filters the results to only those inference components with the specified status.
*
*
* @return Filters the results to only those inference components with the specified status.
* @see InferenceComponentStatus
*/
public String getStatusEquals() {
return this.statusEquals;
}
/**
*
* Filters the results to only those inference components with the specified status.
*
*
* @param statusEquals
* Filters the results to only those inference components with the specified status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see InferenceComponentStatus
*/
public ListInferenceComponentsRequest withStatusEquals(String statusEquals) {
setStatusEquals(statusEquals);
return this;
}
/**
*
* Filters the results to only those inference components with the specified status.
*
*
* @param statusEquals
* Filters the results to only those inference components with the specified status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see InferenceComponentStatus
*/
public ListInferenceComponentsRequest withStatusEquals(InferenceComponentStatus statusEquals) {
this.statusEquals = statusEquals.toString();
return this;
}
/**
*
* An endpoint name to filter the listed inference components. The response includes only those inference components
* that are hosted at the specified endpoint.
*
*
* @param endpointNameEquals
* An endpoint name to filter the listed inference components. The response includes only those inference
* components that are hosted at the specified endpoint.
*/
public void setEndpointNameEquals(String endpointNameEquals) {
this.endpointNameEquals = endpointNameEquals;
}
/**
*
* An endpoint name to filter the listed inference components. The response includes only those inference components
* that are hosted at the specified endpoint.
*
*
* @return An endpoint name to filter the listed inference components. The response includes only those inference
* components that are hosted at the specified endpoint.
*/
public String getEndpointNameEquals() {
return this.endpointNameEquals;
}
/**
*
* An endpoint name to filter the listed inference components. The response includes only those inference components
* that are hosted at the specified endpoint.
*
*
* @param endpointNameEquals
* An endpoint name to filter the listed inference components. The response includes only those inference
* components that are hosted at the specified endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceComponentsRequest withEndpointNameEquals(String endpointNameEquals) {
setEndpointNameEquals(endpointNameEquals);
return this;
}
/**
*
* A production variant name to filter the listed inference components. The response includes only those inference
* components that are hosted at the specified variant.
*
*
* @param variantNameEquals
* A production variant name to filter the listed inference components. The response includes only those
* inference components that are hosted at the specified variant.
*/
public void setVariantNameEquals(String variantNameEquals) {
this.variantNameEquals = variantNameEquals;
}
/**
*
* A production variant name to filter the listed inference components. The response includes only those inference
* components that are hosted at the specified variant.
*
*
* @return A production variant name to filter the listed inference components. The response includes only those
* inference components that are hosted at the specified variant.
*/
public String getVariantNameEquals() {
return this.variantNameEquals;
}
/**
*
* A production variant name to filter the listed inference components. The response includes only those inference
* components that are hosted at the specified variant.
*
*
* @param variantNameEquals
* A production variant name to filter the listed inference components. The response includes only those
* inference components that are hosted at the specified variant.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInferenceComponentsRequest withVariantNameEquals(String variantNameEquals) {
setVariantNameEquals(variantNameEquals);
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 (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 (getNameContains() != null)
sb.append("NameContains: ").append(getNameContains()).append(",");
if (getCreationTimeBefore() != null)
sb.append("CreationTimeBefore: ").append(getCreationTimeBefore()).append(",");
if (getCreationTimeAfter() != null)
sb.append("CreationTimeAfter: ").append(getCreationTimeAfter()).append(",");
if (getLastModifiedTimeBefore() != null)
sb.append("LastModifiedTimeBefore: ").append(getLastModifiedTimeBefore()).append(",");
if (getLastModifiedTimeAfter() != null)
sb.append("LastModifiedTimeAfter: ").append(getLastModifiedTimeAfter()).append(",");
if (getStatusEquals() != null)
sb.append("StatusEquals: ").append(getStatusEquals()).append(",");
if (getEndpointNameEquals() != null)
sb.append("EndpointNameEquals: ").append(getEndpointNameEquals()).append(",");
if (getVariantNameEquals() != null)
sb.append("VariantNameEquals: ").append(getVariantNameEquals());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListInferenceComponentsRequest == false)
return false;
ListInferenceComponentsRequest other = (ListInferenceComponentsRequest) obj;
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.getNameContains() == null ^ this.getNameContains() == null)
return false;
if (other.getNameContains() != null && other.getNameContains().equals(this.getNameContains()) == 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.getCreationTimeAfter() == null ^ this.getCreationTimeAfter() == null)
return false;
if (other.getCreationTimeAfter() != null && other.getCreationTimeAfter().equals(this.getCreationTimeAfter()) == 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.getLastModifiedTimeAfter() == null ^ this.getLastModifiedTimeAfter() == null)
return false;
if (other.getLastModifiedTimeAfter() != null && other.getLastModifiedTimeAfter().equals(this.getLastModifiedTimeAfter()) == 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.getEndpointNameEquals() == null ^ this.getEndpointNameEquals() == null)
return false;
if (other.getEndpointNameEquals() != null && other.getEndpointNameEquals().equals(this.getEndpointNameEquals()) == false)
return false;
if (other.getVariantNameEquals() == null ^ this.getVariantNameEquals() == null)
return false;
if (other.getVariantNameEquals() != null && other.getVariantNameEquals().equals(this.getVariantNameEquals()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
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 + ((getNameContains() == null) ? 0 : getNameContains().hashCode());
hashCode = prime * hashCode + ((getCreationTimeBefore() == null) ? 0 : getCreationTimeBefore().hashCode());
hashCode = prime * hashCode + ((getCreationTimeAfter() == null) ? 0 : getCreationTimeAfter().hashCode());
hashCode = prime * hashCode + ((getLastModifiedTimeBefore() == null) ? 0 : getLastModifiedTimeBefore().hashCode());
hashCode = prime * hashCode + ((getLastModifiedTimeAfter() == null) ? 0 : getLastModifiedTimeAfter().hashCode());
hashCode = prime * hashCode + ((getStatusEquals() == null) ? 0 : getStatusEquals().hashCode());
hashCode = prime * hashCode + ((getEndpointNameEquals() == null) ? 0 : getEndpointNameEquals().hashCode());
hashCode = prime * hashCode + ((getVariantNameEquals() == null) ? 0 : getVariantNameEquals().hashCode());
return hashCode;
}
@Override
public ListInferenceComponentsRequest clone() {
return (ListInferenceComponentsRequest) super.clone();
}
}