(hopDestinations);
}
/**
* Optional list of hop destinations.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setHopDestinations(java.util.Collection)} or {@link #withHopDestinations(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param hopDestinations
* Optional list of hop destinations.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobTemplate withHopDestinations(HopDestination... hopDestinations) {
if (this.hopDestinations == null) {
setHopDestinations(new java.util.ArrayList(hopDestinations.length));
}
for (HopDestination ele : hopDestinations) {
this.hopDestinations.add(ele);
}
return this;
}
/**
* Optional list of hop destinations.
*
* @param hopDestinations
* Optional list of hop destinations.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobTemplate withHopDestinations(java.util.Collection hopDestinations) {
setHopDestinations(hopDestinations);
return this;
}
/**
* The timestamp in epoch seconds when the Job template was last updated.
*
* @param lastUpdated
* The timestamp in epoch seconds when the Job template was last updated.
*/
public void setLastUpdated(java.util.Date lastUpdated) {
this.lastUpdated = lastUpdated;
}
/**
* The timestamp in epoch seconds when the Job template was last updated.
*
* @return The timestamp in epoch seconds when the Job template was last updated.
*/
public java.util.Date getLastUpdated() {
return this.lastUpdated;
}
/**
* The timestamp in epoch seconds when the Job template was last updated.
*
* @param lastUpdated
* The timestamp in epoch seconds when the Job template was last updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobTemplate withLastUpdated(java.util.Date lastUpdated) {
setLastUpdated(lastUpdated);
return this;
}
/**
* A name you create for each job template. Each name must be unique within your account.
*
* @param name
* A name you create for each job template. Each name must be unique within your account.
*/
public void setName(String name) {
this.name = name;
}
/**
* A name you create for each job template. Each name must be unique within your account.
*
* @return A name you create for each job template. Each name must be unique within your account.
*/
public String getName() {
return this.name;
}
/**
* A name you create for each job template. Each name must be unique within your account.
*
* @param name
* A name you create for each job template. Each name must be unique within your account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobTemplate withName(String name) {
setName(name);
return this;
}
/**
* Relative priority on the job.
*
* @param priority
* Relative priority on the job.
*/
public void setPriority(Integer priority) {
this.priority = priority;
}
/**
* Relative priority on the job.
*
* @return Relative priority on the job.
*/
public Integer getPriority() {
return this.priority;
}
/**
* Relative priority on the job.
*
* @param priority
* Relative priority on the job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobTemplate withPriority(Integer priority) {
setPriority(priority);
return this;
}
/**
* Optional. The queue that jobs created from this template are assigned to. If you don't specify this, jobs will go
* to the default queue.
*
* @param queue
* Optional. The queue that jobs created from this template are assigned to. If you don't specify this, jobs
* will go to the default queue.
*/
public void setQueue(String queue) {
this.queue = queue;
}
/**
* Optional. The queue that jobs created from this template are assigned to. If you don't specify this, jobs will go
* to the default queue.
*
* @return Optional. The queue that jobs created from this template are assigned to. If you don't specify this, jobs
* will go to the default queue.
*/
public String getQueue() {
return this.queue;
}
/**
* Optional. The queue that jobs created from this template are assigned to. If you don't specify this, jobs will go
* to the default queue.
*
* @param queue
* Optional. The queue that jobs created from this template are assigned to. If you don't specify this, jobs
* will go to the default queue.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobTemplate withQueue(String queue) {
setQueue(queue);
return this;
}
/**
* JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs
* created from it.
*
* @param settings
* JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs
* created from it.
*/
public void setSettings(JobTemplateSettings settings) {
this.settings = settings;
}
/**
* JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs
* created from it.
*
* @return JobTemplateSettings contains all the transcode settings saved in the template that will be applied to
* jobs created from it.
*/
public JobTemplateSettings getSettings() {
return this.settings;
}
/**
* JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs
* created from it.
*
* @param settings
* JobTemplateSettings contains all the transcode settings saved in the template that will be applied to jobs
* created from it.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobTemplate withSettings(JobTemplateSettings settings) {
setSettings(settings);
return this;
}
/**
* Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in
* seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins
* processing your job to the time it completes the transcode or encounters an error.
*
* @param statusUpdateInterval
* Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval,
* in seconds, between status updates. MediaConvert sends an update at this interval from the time the
* service begins processing your job to the time it completes the transcode or encounters an error.
* @see StatusUpdateInterval
*/
public void setStatusUpdateInterval(String statusUpdateInterval) {
this.statusUpdateInterval = statusUpdateInterval;
}
/**
* Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in
* seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins
* processing your job to the time it completes the transcode or encounters an error.
*
* @return Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval,
* in seconds, between status updates. MediaConvert sends an update at this interval from the time the
* service begins processing your job to the time it completes the transcode or encounters an error.
* @see StatusUpdateInterval
*/
public String getStatusUpdateInterval() {
return this.statusUpdateInterval;
}
/**
* Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in
* seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins
* processing your job to the time it completes the transcode or encounters an error.
*
* @param statusUpdateInterval
* Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval,
* in seconds, between status updates. MediaConvert sends an update at this interval from the time the
* service begins processing your job to the time it completes the transcode or encounters an error.
* @return Returns a reference to this object so that method calls can be chained together.
* @see StatusUpdateInterval
*/
public JobTemplate withStatusUpdateInterval(String statusUpdateInterval) {
setStatusUpdateInterval(statusUpdateInterval);
return this;
}
/**
* Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval, in
* seconds, between status updates. MediaConvert sends an update at this interval from the time the service begins
* processing your job to the time it completes the transcode or encounters an error.
*
* @param statusUpdateInterval
* Specify how often MediaConvert sends STATUS_UPDATE events to Amazon CloudWatch Events. Set the interval,
* in seconds, between status updates. MediaConvert sends an update at this interval from the time the
* service begins processing your job to the time it completes the transcode or encounters an error.
* @return Returns a reference to this object so that method calls can be chained together.
* @see StatusUpdateInterval
*/
public JobTemplate withStatusUpdateInterval(StatusUpdateInterval statusUpdateInterval) {
this.statusUpdateInterval = statusUpdateInterval.toString();
return this;
}
/**
* A job template can be of two types: system or custom. System or built-in job templates can't be modified or
* deleted by the user.
*
* @param type
* A job template can be of two types: system or custom. System or built-in job templates can't be modified
* or deleted by the user.
* @see Type
*/
public void setType(String type) {
this.type = type;
}
/**
* A job template can be of two types: system or custom. System or built-in job templates can't be modified or
* deleted by the user.
*
* @return A job template can be of two types: system or custom. System or built-in job templates can't be modified
* or deleted by the user.
* @see Type
*/
public String getType() {
return this.type;
}
/**
* A job template can be of two types: system or custom. System or built-in job templates can't be modified or
* deleted by the user.
*
* @param type
* A job template can be of two types: system or custom. System or built-in job templates 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 JobTemplate withType(String type) {
setType(type);
return this;
}
/**
* A job template can be of two types: system or custom. System or built-in job templates can't be modified or
* deleted by the user.
*
* @param type
* A job template can be of two types: system or custom. System or built-in job templates 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 JobTemplate withType(Type type) {
this.type = type.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 (getAccelerationSettings() != null)
sb.append("AccelerationSettings: ").append(getAccelerationSettings()).append(",");
if (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getCategory() != null)
sb.append("Category: ").append(getCategory()).append(",");
if (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getHopDestinations() != null)
sb.append("HopDestinations: ").append(getHopDestinations()).append(",");
if (getLastUpdated() != null)
sb.append("LastUpdated: ").append(getLastUpdated()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getPriority() != null)
sb.append("Priority: ").append(getPriority()).append(",");
if (getQueue() != null)
sb.append("Queue: ").append(getQueue()).append(",");
if (getSettings() != null)
sb.append("Settings: ").append(getSettings()).append(",");
if (getStatusUpdateInterval() != null)
sb.append("StatusUpdateInterval: ").append(getStatusUpdateInterval()).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 JobTemplate == false)
return false;
JobTemplate other = (JobTemplate) obj;
if (other.getAccelerationSettings() == null ^ this.getAccelerationSettings() == null)
return false;
if (other.getAccelerationSettings() != null && other.getAccelerationSettings().equals(this.getAccelerationSettings()) == false)
return false;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getCategory() == null ^ this.getCategory() == null)
return false;
if (other.getCategory() != null && other.getCategory().equals(this.getCategory()) == 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.getHopDestinations() == null ^ this.getHopDestinations() == null)
return false;
if (other.getHopDestinations() != null && other.getHopDestinations().equals(this.getHopDestinations()) == 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.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.getSettings() == null ^ this.getSettings() == null)
return false;
if (other.getSettings() != null && other.getSettings().equals(this.getSettings()) == false)
return false;
if (other.getStatusUpdateInterval() == null ^ this.getStatusUpdateInterval() == null)
return false;
if (other.getStatusUpdateInterval() != null && other.getStatusUpdateInterval().equals(this.getStatusUpdateInterval()) == 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 + ((getAccelerationSettings() == null) ? 0 : getAccelerationSettings().hashCode());
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getCategory() == null) ? 0 : getCategory().hashCode());
hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getHopDestinations() == null) ? 0 : getHopDestinations().hashCode());
hashCode = prime * hashCode + ((getLastUpdated() == null) ? 0 : getLastUpdated().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getPriority() == null) ? 0 : getPriority().hashCode());
hashCode = prime * hashCode + ((getQueue() == null) ? 0 : getQueue().hashCode());
hashCode = prime * hashCode + ((getSettings() == null) ? 0 : getSettings().hashCode());
hashCode = prime * hashCode + ((getStatusUpdateInterval() == null) ? 0 : getStatusUpdateInterval().hashCode());
hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode());
return hashCode;
}
@Override
public JobTemplate clone() {
try {
return (JobTemplate) 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.JobTemplateMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}