com.amazonaws.services.mediaconvert.model.AudioNormalizationSettings 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 2013-2018 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;
/**
* Advanced audio normalization settings.
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AudioNormalizationSettings implements Serializable, Cloneable, StructuredPojo {
private String algorithm;
private String algorithmControl;
/**
* Content measuring above this level will be corrected to the target level. Content measuring below this level will
* not be corrected. Gating only applies when not using real_time_correction.
*/
private Integer correctionGateLevel;
private String loudnessLogging;
private String peakCalculation;
/**
* Target LKFS(loudness) to adjust volume to. If no value is entered, a default value will be used according to the
* chosen algorithm. The CALM Act (1770-1) recommends a target of -24 LKFS. The EBU R-128 specification (1770-2)
* recommends a target of -23 LKFS.
*/
private Double targetLkfs;
/**
* @param algorithm
* @see AudioNormalizationAlgorithm
*/
public void setAlgorithm(String algorithm) {
this.algorithm = algorithm;
}
/**
* @return
* @see AudioNormalizationAlgorithm
*/
public String getAlgorithm() {
return this.algorithm;
}
/**
* @param algorithm
* @return Returns a reference to this object so that method calls can be chained together.
* @see AudioNormalizationAlgorithm
*/
public AudioNormalizationSettings withAlgorithm(String algorithm) {
setAlgorithm(algorithm);
return this;
}
/**
* @param algorithm
* @return Returns a reference to this object so that method calls can be chained together.
* @see AudioNormalizationAlgorithm
*/
public AudioNormalizationSettings withAlgorithm(AudioNormalizationAlgorithm algorithm) {
this.algorithm = algorithm.toString();
return this;
}
/**
* @param algorithmControl
* @see AudioNormalizationAlgorithmControl
*/
public void setAlgorithmControl(String algorithmControl) {
this.algorithmControl = algorithmControl;
}
/**
* @return
* @see AudioNormalizationAlgorithmControl
*/
public String getAlgorithmControl() {
return this.algorithmControl;
}
/**
* @param algorithmControl
* @return Returns a reference to this object so that method calls can be chained together.
* @see AudioNormalizationAlgorithmControl
*/
public AudioNormalizationSettings withAlgorithmControl(String algorithmControl) {
setAlgorithmControl(algorithmControl);
return this;
}
/**
* @param algorithmControl
* @return Returns a reference to this object so that method calls can be chained together.
* @see AudioNormalizationAlgorithmControl
*/
public AudioNormalizationSettings withAlgorithmControl(AudioNormalizationAlgorithmControl algorithmControl) {
this.algorithmControl = algorithmControl.toString();
return this;
}
/**
* Content measuring above this level will be corrected to the target level. Content measuring below this level will
* not be corrected. Gating only applies when not using real_time_correction.
*
* @param correctionGateLevel
* Content measuring above this level will be corrected to the target level. Content measuring below this
* level will not be corrected. Gating only applies when not using real_time_correction.
*/
public void setCorrectionGateLevel(Integer correctionGateLevel) {
this.correctionGateLevel = correctionGateLevel;
}
/**
* Content measuring above this level will be corrected to the target level. Content measuring below this level will
* not be corrected. Gating only applies when not using real_time_correction.
*
* @return Content measuring above this level will be corrected to the target level. Content measuring below this
* level will not be corrected. Gating only applies when not using real_time_correction.
*/
public Integer getCorrectionGateLevel() {
return this.correctionGateLevel;
}
/**
* Content measuring above this level will be corrected to the target level. Content measuring below this level will
* not be corrected. Gating only applies when not using real_time_correction.
*
* @param correctionGateLevel
* Content measuring above this level will be corrected to the target level. Content measuring below this
* level will not be corrected. Gating only applies when not using real_time_correction.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AudioNormalizationSettings withCorrectionGateLevel(Integer correctionGateLevel) {
setCorrectionGateLevel(correctionGateLevel);
return this;
}
/**
* @param loudnessLogging
* @see AudioNormalizationLoudnessLogging
*/
public void setLoudnessLogging(String loudnessLogging) {
this.loudnessLogging = loudnessLogging;
}
/**
* @return
* @see AudioNormalizationLoudnessLogging
*/
public String getLoudnessLogging() {
return this.loudnessLogging;
}
/**
* @param loudnessLogging
* @return Returns a reference to this object so that method calls can be chained together.
* @see AudioNormalizationLoudnessLogging
*/
public AudioNormalizationSettings withLoudnessLogging(String loudnessLogging) {
setLoudnessLogging(loudnessLogging);
return this;
}
/**
* @param loudnessLogging
* @return Returns a reference to this object so that method calls can be chained together.
* @see AudioNormalizationLoudnessLogging
*/
public AudioNormalizationSettings withLoudnessLogging(AudioNormalizationLoudnessLogging loudnessLogging) {
this.loudnessLogging = loudnessLogging.toString();
return this;
}
/**
* @param peakCalculation
* @see AudioNormalizationPeakCalculation
*/
public void setPeakCalculation(String peakCalculation) {
this.peakCalculation = peakCalculation;
}
/**
* @return
* @see AudioNormalizationPeakCalculation
*/
public String getPeakCalculation() {
return this.peakCalculation;
}
/**
* @param peakCalculation
* @return Returns a reference to this object so that method calls can be chained together.
* @see AudioNormalizationPeakCalculation
*/
public AudioNormalizationSettings withPeakCalculation(String peakCalculation) {
setPeakCalculation(peakCalculation);
return this;
}
/**
* @param peakCalculation
* @return Returns a reference to this object so that method calls can be chained together.
* @see AudioNormalizationPeakCalculation
*/
public AudioNormalizationSettings withPeakCalculation(AudioNormalizationPeakCalculation peakCalculation) {
this.peakCalculation = peakCalculation.toString();
return this;
}
/**
* Target LKFS(loudness) to adjust volume to. If no value is entered, a default value will be used according to the
* chosen algorithm. The CALM Act (1770-1) recommends a target of -24 LKFS. The EBU R-128 specification (1770-2)
* recommends a target of -23 LKFS.
*
* @param targetLkfs
* Target LKFS(loudness) to adjust volume to. If no value is entered, a default value will be used according
* to the chosen algorithm. The CALM Act (1770-1) recommends a target of -24 LKFS. The EBU R-128
* specification (1770-2) recommends a target of -23 LKFS.
*/
public void setTargetLkfs(Double targetLkfs) {
this.targetLkfs = targetLkfs;
}
/**
* Target LKFS(loudness) to adjust volume to. If no value is entered, a default value will be used according to the
* chosen algorithm. The CALM Act (1770-1) recommends a target of -24 LKFS. The EBU R-128 specification (1770-2)
* recommends a target of -23 LKFS.
*
* @return Target LKFS(loudness) to adjust volume to. If no value is entered, a default value will be used according
* to the chosen algorithm. The CALM Act (1770-1) recommends a target of -24 LKFS. The EBU R-128
* specification (1770-2) recommends a target of -23 LKFS.
*/
public Double getTargetLkfs() {
return this.targetLkfs;
}
/**
* Target LKFS(loudness) to adjust volume to. If no value is entered, a default value will be used according to the
* chosen algorithm. The CALM Act (1770-1) recommends a target of -24 LKFS. The EBU R-128 specification (1770-2)
* recommends a target of -23 LKFS.
*
* @param targetLkfs
* Target LKFS(loudness) to adjust volume to. If no value is entered, a default value will be used according
* to the chosen algorithm. The CALM Act (1770-1) recommends a target of -24 LKFS. The EBU R-128
* specification (1770-2) recommends a target of -23 LKFS.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AudioNormalizationSettings withTargetLkfs(Double targetLkfs) {
setTargetLkfs(targetLkfs);
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 (getAlgorithm() != null)
sb.append("Algorithm: ").append(getAlgorithm()).append(",");
if (getAlgorithmControl() != null)
sb.append("AlgorithmControl: ").append(getAlgorithmControl()).append(",");
if (getCorrectionGateLevel() != null)
sb.append("CorrectionGateLevel: ").append(getCorrectionGateLevel()).append(",");
if (getLoudnessLogging() != null)
sb.append("LoudnessLogging: ").append(getLoudnessLogging()).append(",");
if (getPeakCalculation() != null)
sb.append("PeakCalculation: ").append(getPeakCalculation()).append(",");
if (getTargetLkfs() != null)
sb.append("TargetLkfs: ").append(getTargetLkfs());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof AudioNormalizationSettings == false)
return false;
AudioNormalizationSettings other = (AudioNormalizationSettings) obj;
if (other.getAlgorithm() == null ^ this.getAlgorithm() == null)
return false;
if (other.getAlgorithm() != null && other.getAlgorithm().equals(this.getAlgorithm()) == false)
return false;
if (other.getAlgorithmControl() == null ^ this.getAlgorithmControl() == null)
return false;
if (other.getAlgorithmControl() != null && other.getAlgorithmControl().equals(this.getAlgorithmControl()) == false)
return false;
if (other.getCorrectionGateLevel() == null ^ this.getCorrectionGateLevel() == null)
return false;
if (other.getCorrectionGateLevel() != null && other.getCorrectionGateLevel().equals(this.getCorrectionGateLevel()) == false)
return false;
if (other.getLoudnessLogging() == null ^ this.getLoudnessLogging() == null)
return false;
if (other.getLoudnessLogging() != null && other.getLoudnessLogging().equals(this.getLoudnessLogging()) == false)
return false;
if (other.getPeakCalculation() == null ^ this.getPeakCalculation() == null)
return false;
if (other.getPeakCalculation() != null && other.getPeakCalculation().equals(this.getPeakCalculation()) == false)
return false;
if (other.getTargetLkfs() == null ^ this.getTargetLkfs() == null)
return false;
if (other.getTargetLkfs() != null && other.getTargetLkfs().equals(this.getTargetLkfs()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAlgorithm() == null) ? 0 : getAlgorithm().hashCode());
hashCode = prime * hashCode + ((getAlgorithmControl() == null) ? 0 : getAlgorithmControl().hashCode());
hashCode = prime * hashCode + ((getCorrectionGateLevel() == null) ? 0 : getCorrectionGateLevel().hashCode());
hashCode = prime * hashCode + ((getLoudnessLogging() == null) ? 0 : getLoudnessLogging().hashCode());
hashCode = prime * hashCode + ((getPeakCalculation() == null) ? 0 : getPeakCalculation().hashCode());
hashCode = prime * hashCode + ((getTargetLkfs() == null) ? 0 : getTargetLkfs().hashCode());
return hashCode;
}
@Override
public AudioNormalizationSettings clone() {
try {
return (AudioNormalizationSettings) 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.AudioNormalizationSettingsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy