(channelMappings);
}
/**
* Mapping of input channels to output channels, with appropriate gain adjustments.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setChannelMappings(java.util.Collection)} or {@link #withChannelMappings(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param channelMappings
* Mapping of input channels to output channels, with appropriate gain adjustments.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RemixSettings withChannelMappings(AudioChannelMapping... channelMappings) {
if (this.channelMappings == null) {
setChannelMappings(new java.util.ArrayList(channelMappings.length));
}
for (AudioChannelMapping ele : channelMappings) {
this.channelMappings.add(ele);
}
return this;
}
/**
* Mapping of input channels to output channels, with appropriate gain adjustments.
*
* @param channelMappings
* Mapping of input channels to output channels, with appropriate gain adjustments.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RemixSettings withChannelMappings(java.util.Collection channelMappings) {
setChannelMappings(channelMappings);
return this;
}
/**
* Number of input channels to be used.
*
* @param channelsIn
* Number of input channels to be used.
*/
public void setChannelsIn(Integer channelsIn) {
this.channelsIn = channelsIn;
}
/**
* Number of input channels to be used.
*
* @return Number of input channels to be used.
*/
public Integer getChannelsIn() {
return this.channelsIn;
}
/**
* Number of input channels to be used.
*
* @param channelsIn
* Number of input channels to be used.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RemixSettings withChannelsIn(Integer channelsIn) {
setChannelsIn(channelsIn);
return this;
}
/**
* Number of output channels to be produced. Valid values: 1, 2, 4, 6, 8
*
* @param channelsOut
* Number of output channels to be produced. Valid values: 1, 2, 4, 6, 8
*/
public void setChannelsOut(Integer channelsOut) {
this.channelsOut = channelsOut;
}
/**
* Number of output channels to be produced. Valid values: 1, 2, 4, 6, 8
*
* @return Number of output channels to be produced. Valid values: 1, 2, 4, 6, 8
*/
public Integer getChannelsOut() {
return this.channelsOut;
}
/**
* Number of output channels to be produced. Valid values: 1, 2, 4, 6, 8
*
* @param channelsOut
* Number of output channels to be produced. Valid values: 1, 2, 4, 6, 8
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RemixSettings withChannelsOut(Integer channelsOut) {
setChannelsOut(channelsOut);
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 (getChannelMappings() != null)
sb.append("ChannelMappings: ").append(getChannelMappings()).append(",");
if (getChannelsIn() != null)
sb.append("ChannelsIn: ").append(getChannelsIn()).append(",");
if (getChannelsOut() != null)
sb.append("ChannelsOut: ").append(getChannelsOut());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof RemixSettings == false)
return false;
RemixSettings other = (RemixSettings) obj;
if (other.getChannelMappings() == null ^ this.getChannelMappings() == null)
return false;
if (other.getChannelMappings() != null && other.getChannelMappings().equals(this.getChannelMappings()) == false)
return false;
if (other.getChannelsIn() == null ^ this.getChannelsIn() == null)
return false;
if (other.getChannelsIn() != null && other.getChannelsIn().equals(this.getChannelsIn()) == false)
return false;
if (other.getChannelsOut() == null ^ this.getChannelsOut() == null)
return false;
if (other.getChannelsOut() != null && other.getChannelsOut().equals(this.getChannelsOut()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getChannelMappings() == null) ? 0 : getChannelMappings().hashCode());
hashCode = prime * hashCode + ((getChannelsIn() == null) ? 0 : getChannelsIn().hashCode());
hashCode = prime * hashCode + ((getChannelsOut() == null) ? 0 : getChannelsOut().hashCode());
return hashCode;
}
@Override
public RemixSettings clone() {
try {
return (RemixSettings) 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.RemixSettingsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}