All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.elastictranscoder.model.Playlist Maven / Gradle / Ivy

Go to download

The Amazon Web Services SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

The newest version!
/*
 * Copyright 2010-2014 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.elastictranscoder.model;

import java.io.Serializable;

/**
 * 

* Use Only for MPEG-TS Outputs. If you specify a preset for which the * value of Container is ts (MPEG-TS), Playlists contains * information about the master playlists that you want Elastic * Transcoder to create. We recommend that you create only one master * playlist. The maximum number of master playlists in a job is 30. *

*/ public class Playlist implements Serializable { /** * The name that you want Elastic Transcoder to assign to the master * playlist, for example, nyc-vacation.m3u8. The name cannot include a / * character. If you create more than one master playlist (not * recommended), the values of all Name objects must be * unique. Note: Elastic Transcoder automatically appends .m3u8 to * the file name. If you include .m3u8 in Name, it will * appear twice in the file name. *

* Constraints:
* Length: 1 - 255
*/ private String name; /** * This value must currently be HLSv3. *

* Constraints:
* Pattern: (^HLSv3$)
*/ private String format; /** * For each output in this job that you want to include in a master * playlist, the value of the Outputs:Key object. If you include more * than one output in a playlist, the value of * SegmentDuration for all of the outputs must be the same. *

* Constraints:
* Length: 0 - 30
*/ private com.amazonaws.internal.ListWithAutoConstructFlag outputKeys; /** * The status of the job with which the playlist is associated. *

* Constraints:
* Pattern: (^Submitted$)|(^Progressing$)|(^Complete$)|(^Canceled$)|(^Error$)
*/ private String status; /** * Information that further explains the status. *

* Constraints:
* Length: 0 - 255
*/ private String statusDetail; /** * The name that you want Elastic Transcoder to assign to the master * playlist, for example, nyc-vacation.m3u8. The name cannot include a / * character. If you create more than one master playlist (not * recommended), the values of all Name objects must be * unique. Note: Elastic Transcoder automatically appends .m3u8 to * the file name. If you include .m3u8 in Name, it will * appear twice in the file name. *

* Constraints:
* Length: 1 - 255
* * @return The name that you want Elastic Transcoder to assign to the master * playlist, for example, nyc-vacation.m3u8. The name cannot include a / * character. If you create more than one master playlist (not * recommended), the values of all Name objects must be * unique. Note: Elastic Transcoder automatically appends .m3u8 to * the file name. If you include .m3u8 in Name, it will * appear twice in the file name. */ public String getName() { return name; } /** * The name that you want Elastic Transcoder to assign to the master * playlist, for example, nyc-vacation.m3u8. The name cannot include a / * character. If you create more than one master playlist (not * recommended), the values of all Name objects must be * unique. Note: Elastic Transcoder automatically appends .m3u8 to * the file name. If you include .m3u8 in Name, it will * appear twice in the file name. *

* Constraints:
* Length: 1 - 255
* * @param name The name that you want Elastic Transcoder to assign to the master * playlist, for example, nyc-vacation.m3u8. The name cannot include a / * character. If you create more than one master playlist (not * recommended), the values of all Name objects must be * unique. Note: Elastic Transcoder automatically appends .m3u8 to * the file name. If you include .m3u8 in Name, it will * appear twice in the file name. */ public void setName(String name) { this.name = name; } /** * The name that you want Elastic Transcoder to assign to the master * playlist, for example, nyc-vacation.m3u8. The name cannot include a / * character. If you create more than one master playlist (not * recommended), the values of all Name objects must be * unique. Note: Elastic Transcoder automatically appends .m3u8 to * the file name. If you include .m3u8 in Name, it will * appear twice in the file name. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 - 255
* * @param name The name that you want Elastic Transcoder to assign to the master * playlist, for example, nyc-vacation.m3u8. The name cannot include a / * character. If you create more than one master playlist (not * recommended), the values of all Name objects must be * unique. Note: Elastic Transcoder automatically appends .m3u8 to * the file name. If you include .m3u8 in Name, it will * appear twice in the file name. * * @return A reference to this updated object so that method calls can be chained * together. */ public Playlist withName(String name) { this.name = name; return this; } /** * This value must currently be HLSv3. *

* Constraints:
* Pattern: (^HLSv3$)
* * @return This value must currently be HLSv3. */ public String getFormat() { return format; } /** * This value must currently be HLSv3. *

* Constraints:
* Pattern: (^HLSv3$)
* * @param format This value must currently be HLSv3. */ public void setFormat(String format) { this.format = format; } /** * This value must currently be HLSv3. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Pattern: (^HLSv3$)
* * @param format This value must currently be HLSv3. * * @return A reference to this updated object so that method calls can be chained * together. */ public Playlist withFormat(String format) { this.format = format; return this; } /** * For each output in this job that you want to include in a master * playlist, the value of the Outputs:Key object. If you include more * than one output in a playlist, the value of * SegmentDuration for all of the outputs must be the same. *

* Constraints:
* Length: 0 - 30
* * @return For each output in this job that you want to include in a master * playlist, the value of the Outputs:Key object. If you include more * than one output in a playlist, the value of * SegmentDuration for all of the outputs must be the same. */ public java.util.List getOutputKeys() { if (outputKeys == null) { outputKeys = new com.amazonaws.internal.ListWithAutoConstructFlag(); outputKeys.setAutoConstruct(true); } return outputKeys; } /** * For each output in this job that you want to include in a master * playlist, the value of the Outputs:Key object. If you include more * than one output in a playlist, the value of * SegmentDuration for all of the outputs must be the same. *

* Constraints:
* Length: 0 - 30
* * @param outputKeys For each output in this job that you want to include in a master * playlist, the value of the Outputs:Key object. If you include more * than one output in a playlist, the value of * SegmentDuration for all of the outputs must be the same. */ public void setOutputKeys(java.util.Collection outputKeys) { if (outputKeys == null) { this.outputKeys = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag outputKeysCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(outputKeys.size()); outputKeysCopy.addAll(outputKeys); this.outputKeys = outputKeysCopy; } /** * For each output in this job that you want to include in a master * playlist, the value of the Outputs:Key object. If you include more * than one output in a playlist, the value of * SegmentDuration for all of the outputs must be the same. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 0 - 30
* * @param outputKeys For each output in this job that you want to include in a master * playlist, the value of the Outputs:Key object. If you include more * than one output in a playlist, the value of * SegmentDuration for all of the outputs must be the same. * * @return A reference to this updated object so that method calls can be chained * together. */ public Playlist withOutputKeys(String... outputKeys) { if (getOutputKeys() == null) setOutputKeys(new java.util.ArrayList(outputKeys.length)); for (String value : outputKeys) { getOutputKeys().add(value); } return this; } /** * For each output in this job that you want to include in a master * playlist, the value of the Outputs:Key object. If you include more * than one output in a playlist, the value of * SegmentDuration for all of the outputs must be the same. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 0 - 30
* * @param outputKeys For each output in this job that you want to include in a master * playlist, the value of the Outputs:Key object. If you include more * than one output in a playlist, the value of * SegmentDuration for all of the outputs must be the same. * * @return A reference to this updated object so that method calls can be chained * together. */ public Playlist withOutputKeys(java.util.Collection outputKeys) { if (outputKeys == null) { this.outputKeys = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag outputKeysCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(outputKeys.size()); outputKeysCopy.addAll(outputKeys); this.outputKeys = outputKeysCopy; } return this; } /** * The status of the job with which the playlist is associated. *

* Constraints:
* Pattern: (^Submitted$)|(^Progressing$)|(^Complete$)|(^Canceled$)|(^Error$)
* * @return The status of the job with which the playlist is associated. */ public String getStatus() { return status; } /** * The status of the job with which the playlist is associated. *

* Constraints:
* Pattern: (^Submitted$)|(^Progressing$)|(^Complete$)|(^Canceled$)|(^Error$)
* * @param status The status of the job with which the playlist is associated. */ public void setStatus(String status) { this.status = status; } /** * The status of the job with which the playlist is associated. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Pattern: (^Submitted$)|(^Progressing$)|(^Complete$)|(^Canceled$)|(^Error$)
* * @param status The status of the job with which the playlist is associated. * * @return A reference to this updated object so that method calls can be chained * together. */ public Playlist withStatus(String status) { this.status = status; return this; } /** * Information that further explains the status. *

* Constraints:
* Length: 0 - 255
* * @return Information that further explains the status. */ public String getStatusDetail() { return statusDetail; } /** * Information that further explains the status. *

* Constraints:
* Length: 0 - 255
* * @param statusDetail Information that further explains the status. */ public void setStatusDetail(String statusDetail) { this.statusDetail = statusDetail; } /** * Information that further explains the status. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 0 - 255
* * @param statusDetail Information that further explains the status. * * @return A reference to this updated object so that method calls can be chained * together. */ public Playlist withStatusDetail(String statusDetail) { this.statusDetail = statusDetail; 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 (getName() != null) sb.append("Name: " + getName() + ","); if (getFormat() != null) sb.append("Format: " + getFormat() + ","); if (getOutputKeys() != null) sb.append("OutputKeys: " + getOutputKeys() + ","); if (getStatus() != null) sb.append("Status: " + getStatus() + ","); if (getStatusDetail() != null) sb.append("StatusDetail: " + getStatusDetail() ); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getFormat() == null) ? 0 : getFormat().hashCode()); hashCode = prime * hashCode + ((getOutputKeys() == null) ? 0 : getOutputKeys().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusDetail() == null) ? 0 : getStatusDetail().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Playlist == false) return false; Playlist other = (Playlist)obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getFormat() == null ^ this.getFormat() == null) return false; if (other.getFormat() != null && other.getFormat().equals(this.getFormat()) == false) return false; if (other.getOutputKeys() == null ^ this.getOutputKeys() == null) return false; if (other.getOutputKeys() != null && other.getOutputKeys().equals(this.getOutputKeys()) == 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.getStatusDetail() == null ^ this.getStatusDetail() == null) return false; if (other.getStatusDetail() != null && other.getStatusDetail().equals(this.getStatusDetail()) == false) return false; return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy