/* * Copyright 2018-2023 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.glue.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 GetMLTaskRunsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The unique identifier of the machine learning transform. *
*/ private String transformId; /** ** A token for pagination of the results. The default is empty. *
*/ private String nextToken; /** ** The maximum number of results to return. *
*/ private Integer maxResults; /** *
* The filter criteria, in the TaskRunFilterCriteria
structure, for the task run.
*
* The sorting criteria, in the TaskRunSortCriteria
structure, for the task run.
*
* The unique identifier of the machine learning transform. *
* * @param transformId * The unique identifier of the machine learning transform. */ public void setTransformId(String transformId) { this.transformId = transformId; } /** ** The unique identifier of the machine learning transform. *
* * @return The unique identifier of the machine learning transform. */ public String getTransformId() { return this.transformId; } /** ** The unique identifier of the machine learning transform. *
* * @param transformId * The unique identifier of the machine learning transform. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTaskRunsRequest withTransformId(String transformId) { setTransformId(transformId); return this; } /** ** A token for pagination of the results. The default is empty. *
* * @param nextToken * A token for pagination of the results. The default is empty. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** A token for pagination of the results. The default is empty. *
* * @return A token for pagination of the results. The default is empty. */ public String getNextToken() { return this.nextToken; } /** ** A token for pagination of the results. The default is empty. *
* * @param nextToken * A token for pagination of the results. The default is empty. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTaskRunsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** ** The maximum number of results to return. *
* * @param maxResults * The maximum number of results to return. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** ** The maximum number of results to return. *
* * @return The maximum number of results to return. */ public Integer getMaxResults() { return this.maxResults; } /** ** The maximum number of results to return. *
* * @param maxResults * The maximum number of results to return. * @return Returns a reference to this object so that method calls can be chained together. */ public GetMLTaskRunsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *
* The filter criteria, in the TaskRunFilterCriteria
structure, for the task run.
*
TaskRunFilterCriteria
structure, for the task run.
*/
public void setFilter(TaskRunFilterCriteria filter) {
this.filter = filter;
}
/**
*
* The filter criteria, in the TaskRunFilterCriteria
structure, for the task run.
*
TaskRunFilterCriteria
structure, for the task run.
*/
public TaskRunFilterCriteria getFilter() {
return this.filter;
}
/**
*
* The filter criteria, in the TaskRunFilterCriteria
structure, for the task run.
*
TaskRunFilterCriteria
structure, for the task run.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetMLTaskRunsRequest withFilter(TaskRunFilterCriteria filter) {
setFilter(filter);
return this;
}
/**
*
* The sorting criteria, in the TaskRunSortCriteria
structure, for the task run.
*
TaskRunSortCriteria
structure, for the task run.
*/
public void setSort(TaskRunSortCriteria sort) {
this.sort = sort;
}
/**
*
* The sorting criteria, in the TaskRunSortCriteria
structure, for the task run.
*
TaskRunSortCriteria
structure, for the task run.
*/
public TaskRunSortCriteria getSort() {
return this.sort;
}
/**
*
* The sorting criteria, in the TaskRunSortCriteria
structure, for the task run.
*
TaskRunSortCriteria
structure, for the task run.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetMLTaskRunsRequest withSort(TaskRunSortCriteria sort) {
setSort(sort);
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 (getTransformId() != null)
sb.append("TransformId: ").append(getTransformId()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getFilter() != null)
sb.append("Filter: ").append(getFilter()).append(",");
if (getSort() != null)
sb.append("Sort: ").append(getSort());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetMLTaskRunsRequest == false)
return false;
GetMLTaskRunsRequest other = (GetMLTaskRunsRequest) obj;
if (other.getTransformId() == null ^ this.getTransformId() == null)
return false;
if (other.getTransformId() != null && other.getTransformId().equals(this.getTransformId()) == 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.getFilter() == null ^ this.getFilter() == null)
return false;
if (other.getFilter() != null && other.getFilter().equals(this.getFilter()) == false)
return false;
if (other.getSort() == null ^ this.getSort() == null)
return false;
if (other.getSort() != null && other.getSort().equals(this.getSort()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getTransformId() == null) ? 0 : getTransformId().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getFilter() == null) ? 0 : getFilter().hashCode());
hashCode = prime * hashCode + ((getSort() == null) ? 0 : getSort().hashCode());
return hashCode;
}
@Override
public GetMLTaskRunsRequest clone() {
return (GetMLTaskRunsRequest) super.clone();
}
}