com.amazonaws.services.mediaconvert.model.ChannelMapping 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 2019-2024 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;
/**
* Channel mapping contains the group of fields that hold the remixing value for each channel, in dB. Specify remix
* values to indicate how much of the content from your input audio channel you want in your output audio channels. Each
* instance of the InputChannels or InputChannelsFineTune array specifies these values for one output channel. Use one
* instance of this array for each output channel. In the console, each array corresponds to a column in the graphical
* depiction of the mapping matrix. The rows of the graphical matrix correspond to input channels. Valid values are
* within the range from -60 (mute) through 6. A setting of 0 passes the input channel unchanged to the output channel
* (no attenuation or amplification). Use InputChannels or InputChannelsFineTune to specify your remix values. Don't use
* both.
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ChannelMapping implements Serializable, Cloneable, StructuredPojo {
/**
* In your JSON job specification, include one child of OutputChannels for each audio channel that you want in your
* output. Each child should contain one instance of InputChannels or InputChannelsFineTune.
*/
private java.util.List outputChannels;
/**
* In your JSON job specification, include one child of OutputChannels for each audio channel that you want in your
* output. Each child should contain one instance of InputChannels or InputChannelsFineTune.
*
* @return In your JSON job specification, include one child of OutputChannels for each audio channel that you want
* in your output. Each child should contain one instance of InputChannels or InputChannelsFineTune.
*/
public java.util.List getOutputChannels() {
return outputChannels;
}
/**
* In your JSON job specification, include one child of OutputChannels for each audio channel that you want in your
* output. Each child should contain one instance of InputChannels or InputChannelsFineTune.
*
* @param outputChannels
* In your JSON job specification, include one child of OutputChannels for each audio channel that you want
* in your output. Each child should contain one instance of InputChannels or InputChannelsFineTune.
*/
public void setOutputChannels(java.util.Collection outputChannels) {
if (outputChannels == null) {
this.outputChannels = null;
return;
}
this.outputChannels = new java.util.ArrayList(outputChannels);
}
/**
* In your JSON job specification, include one child of OutputChannels for each audio channel that you want in your
* output. Each child should contain one instance of InputChannels or InputChannelsFineTune.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setOutputChannels(java.util.Collection)} or {@link #withOutputChannels(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param outputChannels
* In your JSON job specification, include one child of OutputChannels for each audio channel that you want
* in your output. Each child should contain one instance of InputChannels or InputChannelsFineTune.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ChannelMapping withOutputChannels(OutputChannelMapping... outputChannels) {
if (this.outputChannels == null) {
setOutputChannels(new java.util.ArrayList(outputChannels.length));
}
for (OutputChannelMapping ele : outputChannels) {
this.outputChannels.add(ele);
}
return this;
}
/**
* In your JSON job specification, include one child of OutputChannels for each audio channel that you want in your
* output. Each child should contain one instance of InputChannels or InputChannelsFineTune.
*
* @param outputChannels
* In your JSON job specification, include one child of OutputChannels for each audio channel that you want
* in your output. Each child should contain one instance of InputChannels or InputChannelsFineTune.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ChannelMapping withOutputChannels(java.util.Collection outputChannels) {
setOutputChannels(outputChannels);
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 (getOutputChannels() != null)
sb.append("OutputChannels: ").append(getOutputChannels());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ChannelMapping == false)
return false;
ChannelMapping other = (ChannelMapping) obj;
if (other.getOutputChannels() == null ^ this.getOutputChannels() == null)
return false;
if (other.getOutputChannels() != null && other.getOutputChannels().equals(this.getOutputChannels()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getOutputChannels() == null) ? 0 : getOutputChannels().hashCode());
return hashCode;
}
@Override
public ChannelMapping clone() {
try {
return (ChannelMapping) 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.ChannelMappingMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}