com.amazonaws.services.mediaconvert.model.Queue 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 2013-2018 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
* MediaConvert jobs are submitted to a queue. Unless specified otherwise jobs are submitted to a built-in default
* queue. User can create additional queues to separate the jobs of different categories or priority.
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class Queue implements Serializable, Cloneable, StructuredPojo {
/** An identifier for this resource that is unique within all of AWS. */
private String arn;
/** The timestamp in epoch seconds for queue creation. */
private java.util.Date createdAt;
/** An optional description you create for each queue. */
private String description;
/** The timestamp in epoch seconds when the queue was last updated. */
private java.util.Date lastUpdated;
/** A name you create for each queue. Each name must be unique within your account. */
private String name;
private String status;
/**
* A queue can be of two types: system or custom. System or built-in queues can't be modified or deleted by the
* user.
*/
private String type;
/**
* An identifier for this resource that is unique within all of AWS.
*
* @param arn
* An identifier for this resource that is unique within all of AWS.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
* An identifier for this resource that is unique within all of AWS.
*
* @return An identifier for this resource that is unique within all of AWS.
*/
public String getArn() {
return this.arn;
}
/**
* An identifier for this resource that is unique within all of AWS.
*
* @param arn
* An identifier for this resource that is unique within all of AWS.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Queue withArn(String arn) {
setArn(arn);
return this;
}
/**
* The timestamp in epoch seconds for queue creation.
*
* @param createdAt
* The timestamp in epoch seconds for queue creation.
*/
public void setCreatedAt(java.util.Date createdAt) {
this.createdAt = createdAt;
}
/**
* The timestamp in epoch seconds for queue creation.
*
* @return The timestamp in epoch seconds for queue creation.
*/
public java.util.Date getCreatedAt() {
return this.createdAt;
}
/**
* The timestamp in epoch seconds for queue creation.
*
* @param createdAt
* The timestamp in epoch seconds for queue creation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Queue withCreatedAt(java.util.Date createdAt) {
setCreatedAt(createdAt);
return this;
}
/**
* An optional description you create for each queue.
*
* @param description
* An optional description you create for each queue.
*/
public void setDescription(String description) {
this.description = description;
}
/**
* An optional description you create for each queue.
*
* @return An optional description you create for each queue.
*/
public String getDescription() {
return this.description;
}
/**
* An optional description you create for each queue.
*
* @param description
* An optional description you create for each queue.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Queue withDescription(String description) {
setDescription(description);
return this;
}
/**
* The timestamp in epoch seconds when the queue was last updated.
*
* @param lastUpdated
* The timestamp in epoch seconds when the queue was last updated.
*/
public void setLastUpdated(java.util.Date lastUpdated) {
this.lastUpdated = lastUpdated;
}
/**
* The timestamp in epoch seconds when the queue was last updated.
*
* @return The timestamp in epoch seconds when the queue was last updated.
*/
public java.util.Date getLastUpdated() {
return this.lastUpdated;
}
/**
* The timestamp in epoch seconds when the queue was last updated.
*
* @param lastUpdated
* The timestamp in epoch seconds when the queue was last updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Queue withLastUpdated(java.util.Date lastUpdated) {
setLastUpdated(lastUpdated);
return this;
}
/**
* A name you create for each queue. Each name must be unique within your account.
*
* @param name
* A name you create for each queue. Each name must be unique within your account.
*/
public void setName(String name) {
this.name = name;
}
/**
* A name you create for each queue. Each name must be unique within your account.
*
* @return A name you create for each queue. Each name must be unique within your account.
*/
public String getName() {
return this.name;
}
/**
* A name you create for each queue. Each name must be unique within your account.
*
* @param name
* A name you create for each queue. Each name must be unique within your account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Queue withName(String name) {
setName(name);
return this;
}
/**
* @param status
* @see QueueStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
* @return
* @see QueueStatus
*/
public String getStatus() {
return this.status;
}
/**
* @param status
* @return Returns a reference to this object so that method calls can be chained together.
* @see QueueStatus
*/
public Queue withStatus(String status) {
setStatus(status);
return this;
}
/**
* @param status
* @return Returns a reference to this object so that method calls can be chained together.
* @see QueueStatus
*/
public Queue withStatus(QueueStatus status) {
this.status = status.toString();
return this;
}
/**
* A queue can be of two types: system or custom. System or built-in queues can't be modified or deleted by the
* user.
*
* @param type
* A queue can be of two types: system or custom. System or built-in queues can't be modified or deleted by
* the user.
* @see Type
*/
public void setType(String type) {
this.type = type;
}
/**
* A queue can be of two types: system or custom. System or built-in queues can't be modified or deleted by the
* user.
*
* @return A queue can be of two types: system or custom. System or built-in queues can't be modified or deleted by
* the user.
* @see Type
*/
public String getType() {
return this.type;
}
/**
* A queue can be of two types: system or custom. System or built-in queues can't be modified or deleted by the
* user.
*
* @param type
* A queue can be of two types: system or custom. System or built-in queues can't be modified or deleted by
* the user.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Type
*/
public Queue withType(String type) {
setType(type);
return this;
}
/**
* A queue can be of two types: system or custom. System or built-in queues can't be modified or deleted by the
* user.
*
* @param type
* A queue can be of two types: system or custom. System or built-in queues can't be modified or deleted by
* the user.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Type
*/
public Queue withType(Type type) {
this.type = type.toString();
return this;
}
/**
* Returns a string representation of this object; useful for testing and debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getLastUpdated() != null)
sb.append("LastUpdated: ").append(getLastUpdated()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getType() != null)
sb.append("Type: ").append(getType());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof Queue == false)
return false;
Queue other = (Queue) obj;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
return false;
if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getLastUpdated() == null ^ this.getLastUpdated() == null)
return false;
if (other.getLastUpdated() != null && other.getLastUpdated().equals(this.getLastUpdated()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == 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.getType() == null ^ this.getType() == null)
return false;
if (other.getType() != null && other.getType().equals(this.getType()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getLastUpdated() == null) ? 0 : getLastUpdated().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode());
return hashCode;
}
@Override
public Queue clone() {
try {
return (Queue) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.mediaconvert.model.transform.QueueMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy