(mediaStreamOutputConfigurations);
    }
    /**
     * The configuration for each media stream that is associated with the output.
     * 
     * NOTE: This method appends the values to the existing list (if any). Use
     * {@link #setMediaStreamOutputConfigurations(java.util.Collection)} or
     * {@link #withMediaStreamOutputConfigurations(java.util.Collection)} if you want to override the existing values.
     * 
     * 
     * @param mediaStreamOutputConfigurations
     *        The configuration for each media stream that is associated with the output.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public Output withMediaStreamOutputConfigurations(MediaStreamOutputConfiguration... mediaStreamOutputConfigurations) {
        if (this.mediaStreamOutputConfigurations == null) {
            setMediaStreamOutputConfigurations(new java.util.ArrayList(mediaStreamOutputConfigurations.length));
        }
        for (MediaStreamOutputConfiguration ele : mediaStreamOutputConfigurations) {
            this.mediaStreamOutputConfigurations.add(ele);
        }
        return this;
    }
    /**
     * The configuration for each media stream that is associated with the output.
     * 
     * @param mediaStreamOutputConfigurations
     *        The configuration for each media stream that is associated with the output.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public Output withMediaStreamOutputConfigurations(java.util.Collection mediaStreamOutputConfigurations) {
        setMediaStreamOutputConfigurations(mediaStreamOutputConfigurations);
        return this;
    }
    /**
     * The name of the output. This value must be unique within the current flow.
     * 
     * @param name
     *        The name of the output. This value must be unique within the current flow.
     */
    public void setName(String name) {
        this.name = name;
    }
    /**
     * The name of the output. This value must be unique within the current flow.
     * 
     * @return The name of the output. This value must be unique within the current flow.
     */
    public String getName() {
        return this.name;
    }
    /**
     * The name of the output. This value must be unique within the current flow.
     * 
     * @param name
     *        The name of the output. This value must be unique within the current flow.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public Output withName(String name) {
        setName(name);
        return this;
    }
    /**
     * The ARN of the output.
     * 
     * @param outputArn
     *        The ARN of the output.
     */
    public void setOutputArn(String outputArn) {
        this.outputArn = outputArn;
    }
    /**
     * The ARN of the output.
     * 
     * @return The ARN of the output.
     */
    public String getOutputArn() {
        return this.outputArn;
    }
    /**
     * The ARN of the output.
     * 
     * @param outputArn
     *        The ARN of the output.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public Output withOutputArn(String outputArn) {
        setOutputArn(outputArn);
        return this;
    }
    /**
     * The port to use when content is distributed to this output.
     * 
     * @param port
     *        The port to use when content is distributed to this output.
     */
    public void setPort(Integer port) {
        this.port = port;
    }
    /**
     * The port to use when content is distributed to this output.
     * 
     * @return The port to use when content is distributed to this output.
     */
    public Integer getPort() {
        return this.port;
    }
    /**
     * The port to use when content is distributed to this output.
     * 
     * @param port
     *        The port to use when content is distributed to this output.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public Output withPort(Integer port) {
        setPort(port);
        return this;
    }
    /**
     * Attributes related to the transport stream that are used in the output.
     * 
     * @param transport
     *        Attributes related to the transport stream that are used in the output.
     */
    public void setTransport(Transport transport) {
        this.transport = transport;
    }
    /**
     * Attributes related to the transport stream that are used in the output.
     * 
     * @return Attributes related to the transport stream that are used in the output.
     */
    public Transport getTransport() {
        return this.transport;
    }
    /**
     * Attributes related to the transport stream that are used in the output.
     * 
     * @param transport
     *        Attributes related to the transport stream that are used in the output.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public Output withTransport(Transport transport) {
        setTransport(transport);
        return this;
    }
    /**
     * The name of the VPC interface attachment to use for this output.
     * 
     * @param vpcInterfaceAttachment
     *        The name of the VPC interface attachment to use for this output.
     */
    public void setVpcInterfaceAttachment(VpcInterfaceAttachment vpcInterfaceAttachment) {
        this.vpcInterfaceAttachment = vpcInterfaceAttachment;
    }
    /**
     * The name of the VPC interface attachment to use for this output.
     * 
     * @return The name of the VPC interface attachment to use for this output.
     */
    public VpcInterfaceAttachment getVpcInterfaceAttachment() {
        return this.vpcInterfaceAttachment;
    }
    /**
     * The name of the VPC interface attachment to use for this output.
     * 
     * @param vpcInterfaceAttachment
     *        The name of the VPC interface attachment to use for this output.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public Output withVpcInterfaceAttachment(VpcInterfaceAttachment vpcInterfaceAttachment) {
        setVpcInterfaceAttachment(vpcInterfaceAttachment);
        return this;
    }
    /**
     * The ARN of the bridge that added this output.
     * 
     * @param bridgeArn
     *        The ARN of the bridge that added this output.
     */
    public void setBridgeArn(String bridgeArn) {
        this.bridgeArn = bridgeArn;
    }
    /**
     * The ARN of the bridge that added this output.
     * 
     * @return The ARN of the bridge that added this output.
     */
    public String getBridgeArn() {
        return this.bridgeArn;
    }
    /**
     * The ARN of the bridge that added this output.
     * 
     * @param bridgeArn
     *        The ARN of the bridge that added this output.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public Output withBridgeArn(String bridgeArn) {
        setBridgeArn(bridgeArn);
        return this;
    }
    /**
     * The bridge output ports currently in use.
     * 
     * @return The bridge output ports currently in use.
     */
    public java.util.List getBridgePorts() {
        return bridgePorts;
    }
    /**
     * The bridge output ports currently in use.
     * 
     * @param bridgePorts
     *        The bridge output ports currently in use.
     */
    public void setBridgePorts(java.util.Collection bridgePorts) {
        if (bridgePorts == null) {
            this.bridgePorts = null;
            return;
        }
        this.bridgePorts = new java.util.ArrayList(bridgePorts);
    }
    /**
     * The bridge output ports currently in use.
     * 
     * NOTE: This method appends the values to the existing list (if any). Use
     * {@link #setBridgePorts(java.util.Collection)} or {@link #withBridgePorts(java.util.Collection)} if you want to
     * override the existing values.
     * 
     * 
     * @param bridgePorts
     *        The bridge output ports currently in use.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public Output withBridgePorts(Integer... bridgePorts) {
        if (this.bridgePorts == null) {
            setBridgePorts(new java.util.ArrayList(bridgePorts.length));
        }
        for (Integer ele : bridgePorts) {
            this.bridgePorts.add(ele);
        }
        return this;
    }
    /**
     * The bridge output ports currently in use.
     * 
     * @param bridgePorts
     *        The bridge output ports currently in use.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public Output withBridgePorts(java.util.Collection bridgePorts) {
        setBridgePorts(bridgePorts);
        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 (getDataTransferSubscriberFeePercent() != null)
            sb.append("DataTransferSubscriberFeePercent: ").append(getDataTransferSubscriberFeePercent()).append(",");
        if (getDescription() != null)
            sb.append("Description: ").append(getDescription()).append(",");
        if (getDestination() != null)
            sb.append("Destination: ").append(getDestination()).append(",");
        if (getEncryption() != null)
            sb.append("Encryption: ").append(getEncryption()).append(",");
        if (getEntitlementArn() != null)
            sb.append("EntitlementArn: ").append(getEntitlementArn()).append(",");
        if (getListenerAddress() != null)
            sb.append("ListenerAddress: ").append(getListenerAddress()).append(",");
        if (getMediaLiveInputArn() != null)
            sb.append("MediaLiveInputArn: ").append(getMediaLiveInputArn()).append(",");
        if (getMediaStreamOutputConfigurations() != null)
            sb.append("MediaStreamOutputConfigurations: ").append(getMediaStreamOutputConfigurations()).append(",");
        if (getName() != null)
            sb.append("Name: ").append(getName()).append(",");
        if (getOutputArn() != null)
            sb.append("OutputArn: ").append(getOutputArn()).append(",");
        if (getPort() != null)
            sb.append("Port: ").append(getPort()).append(",");
        if (getTransport() != null)
            sb.append("Transport: ").append(getTransport()).append(",");
        if (getVpcInterfaceAttachment() != null)
            sb.append("VpcInterfaceAttachment: ").append(getVpcInterfaceAttachment()).append(",");
        if (getBridgeArn() != null)
            sb.append("BridgeArn: ").append(getBridgeArn()).append(",");
        if (getBridgePorts() != null)
            sb.append("BridgePorts: ").append(getBridgePorts());
        sb.append("}");
        return sb.toString();
    }
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (obj instanceof Output == false)
            return false;
        Output other = (Output) obj;
        if (other.getDataTransferSubscriberFeePercent() == null ^ this.getDataTransferSubscriberFeePercent() == null)
            return false;
        if (other.getDataTransferSubscriberFeePercent() != null
                && other.getDataTransferSubscriberFeePercent().equals(this.getDataTransferSubscriberFeePercent()) == false)
            return false;
        if (other.getDescription() == null ^ this.getDescription() == null)
            return false;
        if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
            return false;
        if (other.getDestination() == null ^ this.getDestination() == null)
            return false;
        if (other.getDestination() != null && other.getDestination().equals(this.getDestination()) == false)
            return false;
        if (other.getEncryption() == null ^ this.getEncryption() == null)
            return false;
        if (other.getEncryption() != null && other.getEncryption().equals(this.getEncryption()) == false)
            return false;
        if (other.getEntitlementArn() == null ^ this.getEntitlementArn() == null)
            return false;
        if (other.getEntitlementArn() != null && other.getEntitlementArn().equals(this.getEntitlementArn()) == false)
            return false;
        if (other.getListenerAddress() == null ^ this.getListenerAddress() == null)
            return false;
        if (other.getListenerAddress() != null && other.getListenerAddress().equals(this.getListenerAddress()) == false)
            return false;
        if (other.getMediaLiveInputArn() == null ^ this.getMediaLiveInputArn() == null)
            return false;
        if (other.getMediaLiveInputArn() != null && other.getMediaLiveInputArn().equals(this.getMediaLiveInputArn()) == false)
            return false;
        if (other.getMediaStreamOutputConfigurations() == null ^ this.getMediaStreamOutputConfigurations() == null)
            return false;
        if (other.getMediaStreamOutputConfigurations() != null
                && other.getMediaStreamOutputConfigurations().equals(this.getMediaStreamOutputConfigurations()) == false)
            return false;
        if (other.getName() == null ^ this.getName() == null)
            return false;
        if (other.getName() != null && other.getName().equals(this.getName()) == false)
            return false;
        if (other.getOutputArn() == null ^ this.getOutputArn() == null)
            return false;
        if (other.getOutputArn() != null && other.getOutputArn().equals(this.getOutputArn()) == false)
            return false;
        if (other.getPort() == null ^ this.getPort() == null)
            return false;
        if (other.getPort() != null && other.getPort().equals(this.getPort()) == false)
            return false;
        if (other.getTransport() == null ^ this.getTransport() == null)
            return false;
        if (other.getTransport() != null && other.getTransport().equals(this.getTransport()) == false)
            return false;
        if (other.getVpcInterfaceAttachment() == null ^ this.getVpcInterfaceAttachment() == null)
            return false;
        if (other.getVpcInterfaceAttachment() != null && other.getVpcInterfaceAttachment().equals(this.getVpcInterfaceAttachment()) == false)
            return false;
        if (other.getBridgeArn() == null ^ this.getBridgeArn() == null)
            return false;
        if (other.getBridgeArn() != null && other.getBridgeArn().equals(this.getBridgeArn()) == false)
            return false;
        if (other.getBridgePorts() == null ^ this.getBridgePorts() == null)
            return false;
        if (other.getBridgePorts() != null && other.getBridgePorts().equals(this.getBridgePorts()) == false)
            return false;
        return true;
    }
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        hashCode = prime * hashCode + ((getDataTransferSubscriberFeePercent() == null) ? 0 : getDataTransferSubscriberFeePercent().hashCode());
        hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
        hashCode = prime * hashCode + ((getDestination() == null) ? 0 : getDestination().hashCode());
        hashCode = prime * hashCode + ((getEncryption() == null) ? 0 : getEncryption().hashCode());
        hashCode = prime * hashCode + ((getEntitlementArn() == null) ? 0 : getEntitlementArn().hashCode());
        hashCode = prime * hashCode + ((getListenerAddress() == null) ? 0 : getListenerAddress().hashCode());
        hashCode = prime * hashCode + ((getMediaLiveInputArn() == null) ? 0 : getMediaLiveInputArn().hashCode());
        hashCode = prime * hashCode + ((getMediaStreamOutputConfigurations() == null) ? 0 : getMediaStreamOutputConfigurations().hashCode());
        hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
        hashCode = prime * hashCode + ((getOutputArn() == null) ? 0 : getOutputArn().hashCode());
        hashCode = prime * hashCode + ((getPort() == null) ? 0 : getPort().hashCode());
        hashCode = prime * hashCode + ((getTransport() == null) ? 0 : getTransport().hashCode());
        hashCode = prime * hashCode + ((getVpcInterfaceAttachment() == null) ? 0 : getVpcInterfaceAttachment().hashCode());
        hashCode = prime * hashCode + ((getBridgeArn() == null) ? 0 : getBridgeArn().hashCode());
        hashCode = prime * hashCode + ((getBridgePorts() == null) ? 0 : getBridgePorts().hashCode());
        return hashCode;
    }
    @Override
    public Output clone() {
        try {
            return (Output) 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.mediaconnect.model.transform.OutputMarshaller.getInstance().marshall(this, protocolMarshaller);
    }
}