com.amazonaws.services.lookoutequipment.model.ListModelVersionsRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-lookoutequipment 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.lookoutequipment.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 ListModelVersionsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* Then name of the machine learning model for which the model versions are to be listed.
*
*/
private String modelName;
/**
*
* If the total number of results exceeds the limit that the response can display, the response returns an opaque
* pagination token indicating where to continue the listing of machine learning model versions. Use this token in
* the NextToken
field in the request to list the next page of results.
*
*/
private String nextToken;
/**
*
* Specifies the maximum number of machine learning model versions to list.
*
*/
private Integer maxResults;
/**
*
* Filter the results based on the current status of the model version.
*
*/
private String status;
/**
*
* Filter the results based on the way the model version was generated.
*
*/
private String sourceType;
/**
*
* Filter results to return all the model versions created before this time.
*
*/
private java.util.Date createdAtEndTime;
/**
*
* Filter results to return all the model versions created after this time.
*
*/
private java.util.Date createdAtStartTime;
/**
*
* Specifies the highest version of the model to return in the list.
*
*/
private Long maxModelVersion;
/**
*
* Specifies the lowest version of the model to return in the list.
*
*/
private Long minModelVersion;
/**
*
* Then name of the machine learning model for which the model versions are to be listed.
*
*
* @param modelName
* Then name of the machine learning model for which the model versions are to be listed.
*/
public void setModelName(String modelName) {
this.modelName = modelName;
}
/**
*
* Then name of the machine learning model for which the model versions are to be listed.
*
*
* @return Then name of the machine learning model for which the model versions are to be listed.
*/
public String getModelName() {
return this.modelName;
}
/**
*
* Then name of the machine learning model for which the model versions are to be listed.
*
*
* @param modelName
* Then name of the machine learning model for which the model versions are to be listed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListModelVersionsRequest withModelName(String modelName) {
setModelName(modelName);
return this;
}
/**
*
* If the total number of results exceeds the limit that the response can display, the response returns an opaque
* pagination token indicating where to continue the listing of machine learning model versions. Use this token in
* the NextToken
field in the request to list the next page of results.
*
*
* @param nextToken
* If the total number of results exceeds the limit that the response can display, the response returns an
* opaque pagination token indicating where to continue the listing of machine learning model versions. Use
* this token in the NextToken
field in the request to list the next page of results.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* If the total number of results exceeds the limit that the response can display, the response returns an opaque
* pagination token indicating where to continue the listing of machine learning model versions. Use this token in
* the NextToken
field in the request to list the next page of results.
*
*
* @return If the total number of results exceeds the limit that the response can display, the response returns an
* opaque pagination token indicating where to continue the listing of machine learning model versions. Use
* this token in the NextToken
field in the request to list the next page of results.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* If the total number of results exceeds the limit that the response can display, the response returns an opaque
* pagination token indicating where to continue the listing of machine learning model versions. Use this token in
* the NextToken
field in the request to list the next page of results.
*
*
* @param nextToken
* If the total number of results exceeds the limit that the response can display, the response returns an
* opaque pagination token indicating where to continue the listing of machine learning model versions. Use
* this token in the NextToken
field in the request to list the next page of results.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListModelVersionsRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
* Specifies the maximum number of machine learning model versions to list.
*
*
* @param maxResults
* Specifies the maximum number of machine learning model versions to list.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* Specifies the maximum number of machine learning model versions to list.
*
*
* @return Specifies the maximum number of machine learning model versions to list.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* Specifies the maximum number of machine learning model versions to list.
*
*
* @param maxResults
* Specifies the maximum number of machine learning model versions to list.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListModelVersionsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* Filter the results based on the current status of the model version.
*
*
* @param status
* Filter the results based on the current status of the model version.
* @see ModelVersionStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* Filter the results based on the current status of the model version.
*
*
* @return Filter the results based on the current status of the model version.
* @see ModelVersionStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* Filter the results based on the current status of the model version.
*
*
* @param status
* Filter the results based on the current status of the model version.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ModelVersionStatus
*/
public ListModelVersionsRequest withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* Filter the results based on the current status of the model version.
*
*
* @param status
* Filter the results based on the current status of the model version.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ModelVersionStatus
*/
public ListModelVersionsRequest withStatus(ModelVersionStatus status) {
this.status = status.toString();
return this;
}
/**
*
* Filter the results based on the way the model version was generated.
*
*
* @param sourceType
* Filter the results based on the way the model version was generated.
* @see ModelVersionSourceType
*/
public void setSourceType(String sourceType) {
this.sourceType = sourceType;
}
/**
*
* Filter the results based on the way the model version was generated.
*
*
* @return Filter the results based on the way the model version was generated.
* @see ModelVersionSourceType
*/
public String getSourceType() {
return this.sourceType;
}
/**
*
* Filter the results based on the way the model version was generated.
*
*
* @param sourceType
* Filter the results based on the way the model version was generated.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ModelVersionSourceType
*/
public ListModelVersionsRequest withSourceType(String sourceType) {
setSourceType(sourceType);
return this;
}
/**
*
* Filter the results based on the way the model version was generated.
*
*
* @param sourceType
* Filter the results based on the way the model version was generated.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ModelVersionSourceType
*/
public ListModelVersionsRequest withSourceType(ModelVersionSourceType sourceType) {
this.sourceType = sourceType.toString();
return this;
}
/**
*
* Filter results to return all the model versions created before this time.
*
*
* @param createdAtEndTime
* Filter results to return all the model versions created before this time.
*/
public void setCreatedAtEndTime(java.util.Date createdAtEndTime) {
this.createdAtEndTime = createdAtEndTime;
}
/**
*
* Filter results to return all the model versions created before this time.
*
*
* @return Filter results to return all the model versions created before this time.
*/
public java.util.Date getCreatedAtEndTime() {
return this.createdAtEndTime;
}
/**
*
* Filter results to return all the model versions created before this time.
*
*
* @param createdAtEndTime
* Filter results to return all the model versions created before this time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListModelVersionsRequest withCreatedAtEndTime(java.util.Date createdAtEndTime) {
setCreatedAtEndTime(createdAtEndTime);
return this;
}
/**
*
* Filter results to return all the model versions created after this time.
*
*
* @param createdAtStartTime
* Filter results to return all the model versions created after this time.
*/
public void setCreatedAtStartTime(java.util.Date createdAtStartTime) {
this.createdAtStartTime = createdAtStartTime;
}
/**
*
* Filter results to return all the model versions created after this time.
*
*
* @return Filter results to return all the model versions created after this time.
*/
public java.util.Date getCreatedAtStartTime() {
return this.createdAtStartTime;
}
/**
*
* Filter results to return all the model versions created after this time.
*
*
* @param createdAtStartTime
* Filter results to return all the model versions created after this time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListModelVersionsRequest withCreatedAtStartTime(java.util.Date createdAtStartTime) {
setCreatedAtStartTime(createdAtStartTime);
return this;
}
/**
*
* Specifies the highest version of the model to return in the list.
*
*
* @param maxModelVersion
* Specifies the highest version of the model to return in the list.
*/
public void setMaxModelVersion(Long maxModelVersion) {
this.maxModelVersion = maxModelVersion;
}
/**
*
* Specifies the highest version of the model to return in the list.
*
*
* @return Specifies the highest version of the model to return in the list.
*/
public Long getMaxModelVersion() {
return this.maxModelVersion;
}
/**
*
* Specifies the highest version of the model to return in the list.
*
*
* @param maxModelVersion
* Specifies the highest version of the model to return in the list.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListModelVersionsRequest withMaxModelVersion(Long maxModelVersion) {
setMaxModelVersion(maxModelVersion);
return this;
}
/**
*
* Specifies the lowest version of the model to return in the list.
*
*
* @param minModelVersion
* Specifies the lowest version of the model to return in the list.
*/
public void setMinModelVersion(Long minModelVersion) {
this.minModelVersion = minModelVersion;
}
/**
*
* Specifies the lowest version of the model to return in the list.
*
*
* @return Specifies the lowest version of the model to return in the list.
*/
public Long getMinModelVersion() {
return this.minModelVersion;
}
/**
*
* Specifies the lowest version of the model to return in the list.
*
*
* @param minModelVersion
* Specifies the lowest version of the model to return in the list.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListModelVersionsRequest withMinModelVersion(Long minModelVersion) {
setMinModelVersion(minModelVersion);
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 (getModelName() != null)
sb.append("ModelName: ").append(getModelName()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getSourceType() != null)
sb.append("SourceType: ").append(getSourceType()).append(",");
if (getCreatedAtEndTime() != null)
sb.append("CreatedAtEndTime: ").append(getCreatedAtEndTime()).append(",");
if (getCreatedAtStartTime() != null)
sb.append("CreatedAtStartTime: ").append(getCreatedAtStartTime()).append(",");
if (getMaxModelVersion() != null)
sb.append("MaxModelVersion: ").append(getMaxModelVersion()).append(",");
if (getMinModelVersion() != null)
sb.append("MinModelVersion: ").append(getMinModelVersion());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListModelVersionsRequest == false)
return false;
ListModelVersionsRequest other = (ListModelVersionsRequest) obj;
if (other.getModelName() == null ^ this.getModelName() == null)
return false;
if (other.getModelName() != null && other.getModelName().equals(this.getModelName()) == 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.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getSourceType() == null ^ this.getSourceType() == null)
return false;
if (other.getSourceType() != null && other.getSourceType().equals(this.getSourceType()) == false)
return false;
if (other.getCreatedAtEndTime() == null ^ this.getCreatedAtEndTime() == null)
return false;
if (other.getCreatedAtEndTime() != null && other.getCreatedAtEndTime().equals(this.getCreatedAtEndTime()) == false)
return false;
if (other.getCreatedAtStartTime() == null ^ this.getCreatedAtStartTime() == null)
return false;
if (other.getCreatedAtStartTime() != null && other.getCreatedAtStartTime().equals(this.getCreatedAtStartTime()) == false)
return false;
if (other.getMaxModelVersion() == null ^ this.getMaxModelVersion() == null)
return false;
if (other.getMaxModelVersion() != null && other.getMaxModelVersion().equals(this.getMaxModelVersion()) == false)
return false;
if (other.getMinModelVersion() == null ^ this.getMinModelVersion() == null)
return false;
if (other.getMinModelVersion() != null && other.getMinModelVersion().equals(this.getMinModelVersion()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getModelName() == null) ? 0 : getModelName().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getSourceType() == null) ? 0 : getSourceType().hashCode());
hashCode = prime * hashCode + ((getCreatedAtEndTime() == null) ? 0 : getCreatedAtEndTime().hashCode());
hashCode = prime * hashCode + ((getCreatedAtStartTime() == null) ? 0 : getCreatedAtStartTime().hashCode());
hashCode = prime * hashCode + ((getMaxModelVersion() == null) ? 0 : getMaxModelVersion().hashCode());
hashCode = prime * hashCode + ((getMinModelVersion() == null) ? 0 : getMinModelVersion().hashCode());
return hashCode;
}
@Override
public ListModelVersionsRequest clone() {
return (ListModelVersionsRequest) super.clone();
}
}