(captionDescriptions);
}
/**
* Settings for caption decriptions
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setCaptionDescriptions(java.util.Collection)} or {@link #withCaptionDescriptions(java.util.Collection)}
* if you want to override the existing values.
*
*
* @param captionDescriptions
* Settings for caption decriptions
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EncoderSettings withCaptionDescriptions(CaptionDescription... captionDescriptions) {
if (this.captionDescriptions == null) {
setCaptionDescriptions(new java.util.ArrayList(captionDescriptions.length));
}
for (CaptionDescription ele : captionDescriptions) {
this.captionDescriptions.add(ele);
}
return this;
}
/**
* Settings for caption decriptions
*
* @param captionDescriptions
* Settings for caption decriptions
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EncoderSettings withCaptionDescriptions(java.util.Collection captionDescriptions) {
setCaptionDescriptions(captionDescriptions);
return this;
}
/**
* Feature Activations
*
* @param featureActivations
* Feature Activations
*/
public void setFeatureActivations(FeatureActivations featureActivations) {
this.featureActivations = featureActivations;
}
/**
* Feature Activations
*
* @return Feature Activations
*/
public FeatureActivations getFeatureActivations() {
return this.featureActivations;
}
/**
* Feature Activations
*
* @param featureActivations
* Feature Activations
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EncoderSettings withFeatureActivations(FeatureActivations featureActivations) {
setFeatureActivations(featureActivations);
return this;
}
/**
* Configuration settings that apply to the event as a whole.
*
* @param globalConfiguration
* Configuration settings that apply to the event as a whole.
*/
public void setGlobalConfiguration(GlobalConfiguration globalConfiguration) {
this.globalConfiguration = globalConfiguration;
}
/**
* Configuration settings that apply to the event as a whole.
*
* @return Configuration settings that apply to the event as a whole.
*/
public GlobalConfiguration getGlobalConfiguration() {
return this.globalConfiguration;
}
/**
* Configuration settings that apply to the event as a whole.
*
* @param globalConfiguration
* Configuration settings that apply to the event as a whole.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EncoderSettings withGlobalConfiguration(GlobalConfiguration globalConfiguration) {
setGlobalConfiguration(globalConfiguration);
return this;
}
/**
* Settings for motion graphics.
*
* @param motionGraphicsConfiguration
* Settings for motion graphics.
*/
public void setMotionGraphicsConfiguration(MotionGraphicsConfiguration motionGraphicsConfiguration) {
this.motionGraphicsConfiguration = motionGraphicsConfiguration;
}
/**
* Settings for motion graphics.
*
* @return Settings for motion graphics.
*/
public MotionGraphicsConfiguration getMotionGraphicsConfiguration() {
return this.motionGraphicsConfiguration;
}
/**
* Settings for motion graphics.
*
* @param motionGraphicsConfiguration
* Settings for motion graphics.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EncoderSettings withMotionGraphicsConfiguration(MotionGraphicsConfiguration motionGraphicsConfiguration) {
setMotionGraphicsConfiguration(motionGraphicsConfiguration);
return this;
}
/**
* Nielsen configuration settings.
*
* @param nielsenConfiguration
* Nielsen configuration settings.
*/
public void setNielsenConfiguration(NielsenConfiguration nielsenConfiguration) {
this.nielsenConfiguration = nielsenConfiguration;
}
/**
* Nielsen configuration settings.
*
* @return Nielsen configuration settings.
*/
public NielsenConfiguration getNielsenConfiguration() {
return this.nielsenConfiguration;
}
/**
* Nielsen configuration settings.
*
* @param nielsenConfiguration
* Nielsen configuration settings.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EncoderSettings withNielsenConfiguration(NielsenConfiguration nielsenConfiguration) {
setNielsenConfiguration(nielsenConfiguration);
return this;
}
/**
* @return
*/
public java.util.List getOutputGroups() {
return outputGroups;
}
/**
* @param outputGroups
*/
public void setOutputGroups(java.util.Collection outputGroups) {
if (outputGroups == null) {
this.outputGroups = null;
return;
}
this.outputGroups = new java.util.ArrayList(outputGroups);
}
/**
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setOutputGroups(java.util.Collection)} or {@link #withOutputGroups(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param outputGroups
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EncoderSettings withOutputGroups(OutputGroup... outputGroups) {
if (this.outputGroups == null) {
setOutputGroups(new java.util.ArrayList(outputGroups.length));
}
for (OutputGroup ele : outputGroups) {
this.outputGroups.add(ele);
}
return this;
}
/**
* @param outputGroups
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EncoderSettings withOutputGroups(java.util.Collection outputGroups) {
setOutputGroups(outputGroups);
return this;
}
/**
* Contains settings used to acquire and adjust timecode information from inputs.
*
* @param timecodeConfig
* Contains settings used to acquire and adjust timecode information from inputs.
*/
public void setTimecodeConfig(TimecodeConfig timecodeConfig) {
this.timecodeConfig = timecodeConfig;
}
/**
* Contains settings used to acquire and adjust timecode information from inputs.
*
* @return Contains settings used to acquire and adjust timecode information from inputs.
*/
public TimecodeConfig getTimecodeConfig() {
return this.timecodeConfig;
}
/**
* Contains settings used to acquire and adjust timecode information from inputs.
*
* @param timecodeConfig
* Contains settings used to acquire and adjust timecode information from inputs.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EncoderSettings withTimecodeConfig(TimecodeConfig timecodeConfig) {
setTimecodeConfig(timecodeConfig);
return this;
}
/**
* @return
*/
public java.util.List getVideoDescriptions() {
return videoDescriptions;
}
/**
* @param videoDescriptions
*/
public void setVideoDescriptions(java.util.Collection videoDescriptions) {
if (videoDescriptions == null) {
this.videoDescriptions = null;
return;
}
this.videoDescriptions = new java.util.ArrayList(videoDescriptions);
}
/**
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setVideoDescriptions(java.util.Collection)} or {@link #withVideoDescriptions(java.util.Collection)} if
* you want to override the existing values.
*
*
* @param videoDescriptions
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EncoderSettings withVideoDescriptions(VideoDescription... videoDescriptions) {
if (this.videoDescriptions == null) {
setVideoDescriptions(new java.util.ArrayList(videoDescriptions.length));
}
for (VideoDescription ele : videoDescriptions) {
this.videoDescriptions.add(ele);
}
return this;
}
/**
* @param videoDescriptions
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EncoderSettings withVideoDescriptions(java.util.Collection videoDescriptions) {
setVideoDescriptions(videoDescriptions);
return this;
}
/**
* Thumbnail configuration settings.
*
* @param thumbnailConfiguration
* Thumbnail configuration settings.
*/
public void setThumbnailConfiguration(ThumbnailConfiguration thumbnailConfiguration) {
this.thumbnailConfiguration = thumbnailConfiguration;
}
/**
* Thumbnail configuration settings.
*
* @return Thumbnail configuration settings.
*/
public ThumbnailConfiguration getThumbnailConfiguration() {
return this.thumbnailConfiguration;
}
/**
* Thumbnail configuration settings.
*
* @param thumbnailConfiguration
* Thumbnail configuration settings.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EncoderSettings withThumbnailConfiguration(ThumbnailConfiguration thumbnailConfiguration) {
setThumbnailConfiguration(thumbnailConfiguration);
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 (getAudioDescriptions() != null)
sb.append("AudioDescriptions: ").append(getAudioDescriptions()).append(",");
if (getAvailBlanking() != null)
sb.append("AvailBlanking: ").append(getAvailBlanking()).append(",");
if (getAvailConfiguration() != null)
sb.append("AvailConfiguration: ").append(getAvailConfiguration()).append(",");
if (getBlackoutSlate() != null)
sb.append("BlackoutSlate: ").append(getBlackoutSlate()).append(",");
if (getCaptionDescriptions() != null)
sb.append("CaptionDescriptions: ").append(getCaptionDescriptions()).append(",");
if (getFeatureActivations() != null)
sb.append("FeatureActivations: ").append(getFeatureActivations()).append(",");
if (getGlobalConfiguration() != null)
sb.append("GlobalConfiguration: ").append(getGlobalConfiguration()).append(",");
if (getMotionGraphicsConfiguration() != null)
sb.append("MotionGraphicsConfiguration: ").append(getMotionGraphicsConfiguration()).append(",");
if (getNielsenConfiguration() != null)
sb.append("NielsenConfiguration: ").append(getNielsenConfiguration()).append(",");
if (getOutputGroups() != null)
sb.append("OutputGroups: ").append(getOutputGroups()).append(",");
if (getTimecodeConfig() != null)
sb.append("TimecodeConfig: ").append(getTimecodeConfig()).append(",");
if (getVideoDescriptions() != null)
sb.append("VideoDescriptions: ").append(getVideoDescriptions()).append(",");
if (getThumbnailConfiguration() != null)
sb.append("ThumbnailConfiguration: ").append(getThumbnailConfiguration());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof EncoderSettings == false)
return false;
EncoderSettings other = (EncoderSettings) obj;
if (other.getAudioDescriptions() == null ^ this.getAudioDescriptions() == null)
return false;
if (other.getAudioDescriptions() != null && other.getAudioDescriptions().equals(this.getAudioDescriptions()) == false)
return false;
if (other.getAvailBlanking() == null ^ this.getAvailBlanking() == null)
return false;
if (other.getAvailBlanking() != null && other.getAvailBlanking().equals(this.getAvailBlanking()) == false)
return false;
if (other.getAvailConfiguration() == null ^ this.getAvailConfiguration() == null)
return false;
if (other.getAvailConfiguration() != null && other.getAvailConfiguration().equals(this.getAvailConfiguration()) == false)
return false;
if (other.getBlackoutSlate() == null ^ this.getBlackoutSlate() == null)
return false;
if (other.getBlackoutSlate() != null && other.getBlackoutSlate().equals(this.getBlackoutSlate()) == false)
return false;
if (other.getCaptionDescriptions() == null ^ this.getCaptionDescriptions() == null)
return false;
if (other.getCaptionDescriptions() != null && other.getCaptionDescriptions().equals(this.getCaptionDescriptions()) == false)
return false;
if (other.getFeatureActivations() == null ^ this.getFeatureActivations() == null)
return false;
if (other.getFeatureActivations() != null && other.getFeatureActivations().equals(this.getFeatureActivations()) == false)
return false;
if (other.getGlobalConfiguration() == null ^ this.getGlobalConfiguration() == null)
return false;
if (other.getGlobalConfiguration() != null && other.getGlobalConfiguration().equals(this.getGlobalConfiguration()) == false)
return false;
if (other.getMotionGraphicsConfiguration() == null ^ this.getMotionGraphicsConfiguration() == null)
return false;
if (other.getMotionGraphicsConfiguration() != null && other.getMotionGraphicsConfiguration().equals(this.getMotionGraphicsConfiguration()) == false)
return false;
if (other.getNielsenConfiguration() == null ^ this.getNielsenConfiguration() == null)
return false;
if (other.getNielsenConfiguration() != null && other.getNielsenConfiguration().equals(this.getNielsenConfiguration()) == false)
return false;
if (other.getOutputGroups() == null ^ this.getOutputGroups() == null)
return false;
if (other.getOutputGroups() != null && other.getOutputGroups().equals(this.getOutputGroups()) == false)
return false;
if (other.getTimecodeConfig() == null ^ this.getTimecodeConfig() == null)
return false;
if (other.getTimecodeConfig() != null && other.getTimecodeConfig().equals(this.getTimecodeConfig()) == false)
return false;
if (other.getVideoDescriptions() == null ^ this.getVideoDescriptions() == null)
return false;
if (other.getVideoDescriptions() != null && other.getVideoDescriptions().equals(this.getVideoDescriptions()) == false)
return false;
if (other.getThumbnailConfiguration() == null ^ this.getThumbnailConfiguration() == null)
return false;
if (other.getThumbnailConfiguration() != null && other.getThumbnailConfiguration().equals(this.getThumbnailConfiguration()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAudioDescriptions() == null) ? 0 : getAudioDescriptions().hashCode());
hashCode = prime * hashCode + ((getAvailBlanking() == null) ? 0 : getAvailBlanking().hashCode());
hashCode = prime * hashCode + ((getAvailConfiguration() == null) ? 0 : getAvailConfiguration().hashCode());
hashCode = prime * hashCode + ((getBlackoutSlate() == null) ? 0 : getBlackoutSlate().hashCode());
hashCode = prime * hashCode + ((getCaptionDescriptions() == null) ? 0 : getCaptionDescriptions().hashCode());
hashCode = prime * hashCode + ((getFeatureActivations() == null) ? 0 : getFeatureActivations().hashCode());
hashCode = prime * hashCode + ((getGlobalConfiguration() == null) ? 0 : getGlobalConfiguration().hashCode());
hashCode = prime * hashCode + ((getMotionGraphicsConfiguration() == null) ? 0 : getMotionGraphicsConfiguration().hashCode());
hashCode = prime * hashCode + ((getNielsenConfiguration() == null) ? 0 : getNielsenConfiguration().hashCode());
hashCode = prime * hashCode + ((getOutputGroups() == null) ? 0 : getOutputGroups().hashCode());
hashCode = prime * hashCode + ((getTimecodeConfig() == null) ? 0 : getTimecodeConfig().hashCode());
hashCode = prime * hashCode + ((getVideoDescriptions() == null) ? 0 : getVideoDescriptions().hashCode());
hashCode = prime * hashCode + ((getThumbnailConfiguration() == null) ? 0 : getThumbnailConfiguration().hashCode());
return hashCode;
}
@Override
public EncoderSettings clone() {
try {
return (EncoderSettings) 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.medialive.model.transform.EncoderSettingsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}