com.amazonaws.services.mediaconvert.model.SearchJobsRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-mediaconvert Show documentation
Show all versions of aws-java-sdk-mediaconvert Show documentation
The AWS Java SDK for AWS Elemental MediaConvert module holds the client classes that are used for communicating with AWS Elemental MediaConvert Service
/*
* 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.mediaconvert.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 SearchJobsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
* Optional. Provide your input file URL or your partial input file name. The maximum length for an input file is
* 300 characters.
*/
private String inputFile;
/** Optional. Number of jobs, up to twenty, that will be returned at one time. */
private Integer maxResults;
/** Optional. Use this string, provided with the response to a previous request, to request the next batch of jobs. */
private String nextToken;
/**
* Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING
* order. Default varies by resource.
*/
private String order;
/** Optional. Provide a queue name, or a queue ARN, to return only jobs from that queue. */
private String queue;
/** Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR. */
private String status;
/**
* Optional. Provide your input file URL or your partial input file name. The maximum length for an input file is
* 300 characters.
*
* @param inputFile
* Optional. Provide your input file URL or your partial input file name. The maximum length for an input
* file is 300 characters.
*/
public void setInputFile(String inputFile) {
this.inputFile = inputFile;
}
/**
* Optional. Provide your input file URL or your partial input file name. The maximum length for an input file is
* 300 characters.
*
* @return Optional. Provide your input file URL or your partial input file name. The maximum length for an input
* file is 300 characters.
*/
public String getInputFile() {
return this.inputFile;
}
/**
* Optional. Provide your input file URL or your partial input file name. The maximum length for an input file is
* 300 characters.
*
* @param inputFile
* Optional. Provide your input file URL or your partial input file name. The maximum length for an input
* file is 300 characters.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SearchJobsRequest withInputFile(String inputFile) {
setInputFile(inputFile);
return this;
}
/**
* Optional. Number of jobs, up to twenty, that will be returned at one time.
*
* @param maxResults
* Optional. Number of jobs, up to twenty, that will be returned at one time.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
* Optional. Number of jobs, up to twenty, that will be returned at one time.
*
* @return Optional. Number of jobs, up to twenty, that will be returned at one time.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
* Optional. Number of jobs, up to twenty, that will be returned at one time.
*
* @param maxResults
* Optional. Number of jobs, up to twenty, that will be returned at one time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SearchJobsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
* Optional. Use this string, provided with the response to a previous request, to request the next batch of jobs.
*
* @param nextToken
* Optional. Use this string, provided with the response to a previous request, to request the next batch of
* jobs.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
* Optional. Use this string, provided with the response to a previous request, to request the next batch of jobs.
*
* @return Optional. Use this string, provided with the response to a previous request, to request the next batch of
* jobs.
*/
public String getNextToken() {
return this.nextToken;
}
/**
* Optional. Use this string, provided with the response to a previous request, to request the next batch of jobs.
*
* @param nextToken
* Optional. Use this string, provided with the response to a previous request, to request the next batch of
* jobs.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SearchJobsRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
* Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING
* order. Default varies by resource.
*
* @param order
* Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or
* DESCENDING order. Default varies by resource.
* @see Order
*/
public void setOrder(String order) {
this.order = order;
}
/**
* Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING
* order. Default varies by resource.
*
* @return Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or
* DESCENDING order. Default varies by resource.
* @see Order
*/
public String getOrder() {
return this.order;
}
/**
* Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING
* order. Default varies by resource.
*
* @param order
* Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or
* DESCENDING order. Default varies by resource.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Order
*/
public SearchJobsRequest withOrder(String order) {
setOrder(order);
return this;
}
/**
* Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING
* order. Default varies by resource.
*
* @param order
* Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or
* DESCENDING order. Default varies by resource.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Order
*/
public SearchJobsRequest withOrder(Order order) {
this.order = order.toString();
return this;
}
/**
* Optional. Provide a queue name, or a queue ARN, to return only jobs from that queue.
*
* @param queue
* Optional. Provide a queue name, or a queue ARN, to return only jobs from that queue.
*/
public void setQueue(String queue) {
this.queue = queue;
}
/**
* Optional. Provide a queue name, or a queue ARN, to return only jobs from that queue.
*
* @return Optional. Provide a queue name, or a queue ARN, to return only jobs from that queue.
*/
public String getQueue() {
return this.queue;
}
/**
* Optional. Provide a queue name, or a queue ARN, to return only jobs from that queue.
*
* @param queue
* Optional. Provide a queue name, or a queue ARN, to return only jobs from that queue.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SearchJobsRequest withQueue(String queue) {
setQueue(queue);
return this;
}
/**
* Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
*
* @param status
* Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
* @see JobStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
* Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
*
* @return Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
* @see JobStatus
*/
public String getStatus() {
return this.status;
}
/**
* Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
*
* @param status
* Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobStatus
*/
public SearchJobsRequest withStatus(String status) {
setStatus(status);
return this;
}
/**
* Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
*
* @param status
* Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobStatus
*/
public SearchJobsRequest withStatus(JobStatus status) {
this.status = status.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 (getInputFile() != null)
sb.append("InputFile: ").append(getInputFile()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getOrder() != null)
sb.append("Order: ").append(getOrder()).append(",");
if (getQueue() != null)
sb.append("Queue: ").append(getQueue()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof SearchJobsRequest == false)
return false;
SearchJobsRequest other = (SearchJobsRequest) obj;
if (other.getInputFile() == null ^ this.getInputFile() == null)
return false;
if (other.getInputFile() != null && other.getInputFile().equals(this.getInputFile()) == 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.getOrder() == null ^ this.getOrder() == null)
return false;
if (other.getOrder() != null && other.getOrder().equals(this.getOrder()) == false)
return false;
if (other.getQueue() == null ^ this.getQueue() == null)
return false;
if (other.getQueue() != null && other.getQueue().equals(this.getQueue()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getInputFile() == null) ? 0 : getInputFile().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getOrder() == null) ? 0 : getOrder().hashCode());
hashCode = prime * hashCode + ((getQueue() == null) ? 0 : getQueue().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
return hashCode;
}
@Override
public SearchJobsRequest clone() {
return (SearchJobsRequest) super.clone();
}
}