(tracks);
}
/**
* Identify a track from the input audio to include in this selector by entering the track index number. To include
* several tracks in a single audio selector, specify multiple tracks as follows. Using the console, enter a
* comma-separated list. For example, type "1,2,3" to include tracks 1 through 3.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTracks(java.util.Collection)} or {@link #withTracks(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param tracks
* Identify a track from the input audio to include in this selector by entering the track index number. To
* include several tracks in a single audio selector, specify multiple tracks as follows. Using the console,
* enter a comma-separated list. For example, type "1,2,3" to include tracks 1 through 3.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AudioSelector withTracks(Integer... tracks) {
if (this.tracks == null) {
setTracks(new java.util.ArrayList(tracks.length));
}
for (Integer ele : tracks) {
this.tracks.add(ele);
}
return this;
}
/**
* Identify a track from the input audio to include in this selector by entering the track index number. To include
* several tracks in a single audio selector, specify multiple tracks as follows. Using the console, enter a
* comma-separated list. For example, type "1,2,3" to include tracks 1 through 3.
*
* @param tracks
* Identify a track from the input audio to include in this selector by entering the track index number. To
* include several tracks in a single audio selector, specify multiple tracks as follows. Using the console,
* enter a comma-separated list. For example, type "1,2,3" to include tracks 1 through 3.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AudioSelector withTracks(java.util.Collection tracks) {
setTracks(tracks);
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 (getAudioDurationCorrection() != null)
sb.append("AudioDurationCorrection: ").append(getAudioDurationCorrection()).append(",");
if (getCustomLanguageCode() != null)
sb.append("CustomLanguageCode: ").append(getCustomLanguageCode()).append(",");
if (getDefaultSelection() != null)
sb.append("DefaultSelection: ").append(getDefaultSelection()).append(",");
if (getExternalAudioFileInput() != null)
sb.append("ExternalAudioFileInput: ").append(getExternalAudioFileInput()).append(",");
if (getHlsRenditionGroupSettings() != null)
sb.append("HlsRenditionGroupSettings: ").append(getHlsRenditionGroupSettings()).append(",");
if (getLanguageCode() != null)
sb.append("LanguageCode: ").append(getLanguageCode()).append(",");
if (getOffset() != null)
sb.append("Offset: ").append(getOffset()).append(",");
if (getPids() != null)
sb.append("Pids: ").append(getPids()).append(",");
if (getProgramSelection() != null)
sb.append("ProgramSelection: ").append(getProgramSelection()).append(",");
if (getRemixSettings() != null)
sb.append("RemixSettings: ").append(getRemixSettings()).append(",");
if (getSelectorType() != null)
sb.append("SelectorType: ").append(getSelectorType()).append(",");
if (getTracks() != null)
sb.append("Tracks: ").append(getTracks());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof AudioSelector == false)
return false;
AudioSelector other = (AudioSelector) obj;
if (other.getAudioDurationCorrection() == null ^ this.getAudioDurationCorrection() == null)
return false;
if (other.getAudioDurationCorrection() != null && other.getAudioDurationCorrection().equals(this.getAudioDurationCorrection()) == false)
return false;
if (other.getCustomLanguageCode() == null ^ this.getCustomLanguageCode() == null)
return false;
if (other.getCustomLanguageCode() != null && other.getCustomLanguageCode().equals(this.getCustomLanguageCode()) == false)
return false;
if (other.getDefaultSelection() == null ^ this.getDefaultSelection() == null)
return false;
if (other.getDefaultSelection() != null && other.getDefaultSelection().equals(this.getDefaultSelection()) == false)
return false;
if (other.getExternalAudioFileInput() == null ^ this.getExternalAudioFileInput() == null)
return false;
if (other.getExternalAudioFileInput() != null && other.getExternalAudioFileInput().equals(this.getExternalAudioFileInput()) == false)
return false;
if (other.getHlsRenditionGroupSettings() == null ^ this.getHlsRenditionGroupSettings() == null)
return false;
if (other.getHlsRenditionGroupSettings() != null && other.getHlsRenditionGroupSettings().equals(this.getHlsRenditionGroupSettings()) == false)
return false;
if (other.getLanguageCode() == null ^ this.getLanguageCode() == null)
return false;
if (other.getLanguageCode() != null && other.getLanguageCode().equals(this.getLanguageCode()) == false)
return false;
if (other.getOffset() == null ^ this.getOffset() == null)
return false;
if (other.getOffset() != null && other.getOffset().equals(this.getOffset()) == false)
return false;
if (other.getPids() == null ^ this.getPids() == null)
return false;
if (other.getPids() != null && other.getPids().equals(this.getPids()) == false)
return false;
if (other.getProgramSelection() == null ^ this.getProgramSelection() == null)
return false;
if (other.getProgramSelection() != null && other.getProgramSelection().equals(this.getProgramSelection()) == false)
return false;
if (other.getRemixSettings() == null ^ this.getRemixSettings() == null)
return false;
if (other.getRemixSettings() != null && other.getRemixSettings().equals(this.getRemixSettings()) == false)
return false;
if (other.getSelectorType() == null ^ this.getSelectorType() == null)
return false;
if (other.getSelectorType() != null && other.getSelectorType().equals(this.getSelectorType()) == false)
return false;
if (other.getTracks() == null ^ this.getTracks() == null)
return false;
if (other.getTracks() != null && other.getTracks().equals(this.getTracks()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAudioDurationCorrection() == null) ? 0 : getAudioDurationCorrection().hashCode());
hashCode = prime * hashCode + ((getCustomLanguageCode() == null) ? 0 : getCustomLanguageCode().hashCode());
hashCode = prime * hashCode + ((getDefaultSelection() == null) ? 0 : getDefaultSelection().hashCode());
hashCode = prime * hashCode + ((getExternalAudioFileInput() == null) ? 0 : getExternalAudioFileInput().hashCode());
hashCode = prime * hashCode + ((getHlsRenditionGroupSettings() == null) ? 0 : getHlsRenditionGroupSettings().hashCode());
hashCode = prime * hashCode + ((getLanguageCode() == null) ? 0 : getLanguageCode().hashCode());
hashCode = prime * hashCode + ((getOffset() == null) ? 0 : getOffset().hashCode());
hashCode = prime * hashCode + ((getPids() == null) ? 0 : getPids().hashCode());
hashCode = prime * hashCode + ((getProgramSelection() == null) ? 0 : getProgramSelection().hashCode());
hashCode = prime * hashCode + ((getRemixSettings() == null) ? 0 : getRemixSettings().hashCode());
hashCode = prime * hashCode + ((getSelectorType() == null) ? 0 : getSelectorType().hashCode());
hashCode = prime * hashCode + ((getTracks() == null) ? 0 : getTracks().hashCode());
return hashCode;
}
@Override
public AudioSelector clone() {
try {
return (AudioSelector) 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.AudioSelectorMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}