com.amazonaws.services.mediaconvert.model.HopDestination 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
* Optional. Configuration for a destination queue to which the job can hop once a customer-defined minimum wait time
* has passed.
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class HopDestination implements Serializable, Cloneable, StructuredPojo {
/**
* Optional. When you set up a job to use queue hopping, you can specify a different relative priority for the job
* in the destination queue. If you don't specify, the relative priority will remain the same as in the previous
* queue.
*/
private Integer priority;
/**
* Optional unless the job is submitted on the default queue. When you set up a job to use queue hopping, you can
* specify a destination queue. This queue cannot be the original queue to which the job is submitted. If the
* original queue isn't the default queue and you don't specify the destination queue, the job will move to the
* default queue.
*/
private String queue;
/**
* Required for setting up a job to use queue hopping. Minimum wait time in minutes until the job can hop to the
* destination queue. Valid range is 1 to 4320 minutes, inclusive.
*/
private Integer waitMinutes;
/**
* Optional. When you set up a job to use queue hopping, you can specify a different relative priority for the job
* in the destination queue. If you don't specify, the relative priority will remain the same as in the previous
* queue.
*
* @param priority
* Optional. When you set up a job to use queue hopping, you can specify a different relative priority for
* the job in the destination queue. If you don't specify, the relative priority will remain the same as in
* the previous queue.
*/
public void setPriority(Integer priority) {
this.priority = priority;
}
/**
* Optional. When you set up a job to use queue hopping, you can specify a different relative priority for the job
* in the destination queue. If you don't specify, the relative priority will remain the same as in the previous
* queue.
*
* @return Optional. When you set up a job to use queue hopping, you can specify a different relative priority for
* the job in the destination queue. If you don't specify, the relative priority will remain the same as in
* the previous queue.
*/
public Integer getPriority() {
return this.priority;
}
/**
* Optional. When you set up a job to use queue hopping, you can specify a different relative priority for the job
* in the destination queue. If you don't specify, the relative priority will remain the same as in the previous
* queue.
*
* @param priority
* Optional. When you set up a job to use queue hopping, you can specify a different relative priority for
* the job in the destination queue. If you don't specify, the relative priority will remain the same as in
* the previous queue.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HopDestination withPriority(Integer priority) {
setPriority(priority);
return this;
}
/**
* Optional unless the job is submitted on the default queue. When you set up a job to use queue hopping, you can
* specify a destination queue. This queue cannot be the original queue to which the job is submitted. If the
* original queue isn't the default queue and you don't specify the destination queue, the job will move to the
* default queue.
*
* @param queue
* Optional unless the job is submitted on the default queue. When you set up a job to use queue hopping, you
* can specify a destination queue. This queue cannot be the original queue to which the job is submitted. If
* the original queue isn't the default queue and you don't specify the destination queue, the job will move
* to the default queue.
*/
public void setQueue(String queue) {
this.queue = queue;
}
/**
* Optional unless the job is submitted on the default queue. When you set up a job to use queue hopping, you can
* specify a destination queue. This queue cannot be the original queue to which the job is submitted. If the
* original queue isn't the default queue and you don't specify the destination queue, the job will move to the
* default queue.
*
* @return Optional unless the job is submitted on the default queue. When you set up a job to use queue hopping,
* you can specify a destination queue. This queue cannot be the original queue to which the job is
* submitted. If the original queue isn't the default queue and you don't specify the destination queue, the
* job will move to the default queue.
*/
public String getQueue() {
return this.queue;
}
/**
* Optional unless the job is submitted on the default queue. When you set up a job to use queue hopping, you can
* specify a destination queue. This queue cannot be the original queue to which the job is submitted. If the
* original queue isn't the default queue and you don't specify the destination queue, the job will move to the
* default queue.
*
* @param queue
* Optional unless the job is submitted on the default queue. When you set up a job to use queue hopping, you
* can specify a destination queue. This queue cannot be the original queue to which the job is submitted. If
* the original queue isn't the default queue and you don't specify the destination queue, the job will move
* to the default queue.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HopDestination withQueue(String queue) {
setQueue(queue);
return this;
}
/**
* Required for setting up a job to use queue hopping. Minimum wait time in minutes until the job can hop to the
* destination queue. Valid range is 1 to 4320 minutes, inclusive.
*
* @param waitMinutes
* Required for setting up a job to use queue hopping. Minimum wait time in minutes until the job can hop to
* the destination queue. Valid range is 1 to 4320 minutes, inclusive.
*/
public void setWaitMinutes(Integer waitMinutes) {
this.waitMinutes = waitMinutes;
}
/**
* Required for setting up a job to use queue hopping. Minimum wait time in minutes until the job can hop to the
* destination queue. Valid range is 1 to 4320 minutes, inclusive.
*
* @return Required for setting up a job to use queue hopping. Minimum wait time in minutes until the job can hop to
* the destination queue. Valid range is 1 to 4320 minutes, inclusive.
*/
public Integer getWaitMinutes() {
return this.waitMinutes;
}
/**
* Required for setting up a job to use queue hopping. Minimum wait time in minutes until the job can hop to the
* destination queue. Valid range is 1 to 4320 minutes, inclusive.
*
* @param waitMinutes
* Required for setting up a job to use queue hopping. Minimum wait time in minutes until the job can hop to
* the destination queue. Valid range is 1 to 4320 minutes, inclusive.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HopDestination withWaitMinutes(Integer waitMinutes) {
setWaitMinutes(waitMinutes);
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 (getPriority() != null)
sb.append("Priority: ").append(getPriority()).append(",");
if (getQueue() != null)
sb.append("Queue: ").append(getQueue()).append(",");
if (getWaitMinutes() != null)
sb.append("WaitMinutes: ").append(getWaitMinutes());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof HopDestination == false)
return false;
HopDestination other = (HopDestination) obj;
if (other.getPriority() == null ^ this.getPriority() == null)
return false;
if (other.getPriority() != null && other.getPriority().equals(this.getPriority()) == 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.getWaitMinutes() == null ^ this.getWaitMinutes() == null)
return false;
if (other.getWaitMinutes() != null && other.getWaitMinutes().equals(this.getWaitMinutes()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getPriority() == null) ? 0 : getPriority().hashCode());
hashCode = prime * hashCode + ((getQueue() == null) ? 0 : getQueue().hashCode());
hashCode = prime * hashCode + ((getWaitMinutes() == null) ? 0 : getWaitMinutes().hashCode());
return hashCode;
}
@Override
public HopDestination clone() {
try {
return (HopDestination) 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.HopDestinationMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}