All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.mediaconnect.model.MediaStreamOutputConfiguration Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS MediaConnect module holds the client classes that are used for communicating with AWS MediaConnect Service

There is a newer version: 1.12.780
Show newest version
/*
 * 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.mediaconnect.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * The media stream that is associated with the output, and the parameters for that association.
 * 
 * @see AWS API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class MediaStreamOutputConfiguration implements Serializable, Cloneable, StructuredPojo {

    /** The transport parameters that are associated with each outbound media stream. */
    private java.util.List destinationConfigurations;
    /**
     * The format that was used to encode the data. For ancillary data streams, set the encoding name to smpte291. For
     * audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name to raw. For video,
     * JPEG XS streams, set the encoding name to jxsv.
     */
    private String encodingName;
    /** Encoding parameters */
    private EncodingParameters encodingParameters;
    /** The name of the media stream. */
    private String mediaStreamName;

    /**
     * The transport parameters that are associated with each outbound media stream.
     * 
     * @return The transport parameters that are associated with each outbound media stream.
     */

    public java.util.List getDestinationConfigurations() {
        return destinationConfigurations;
    }

    /**
     * The transport parameters that are associated with each outbound media stream.
     * 
     * @param destinationConfigurations
     *        The transport parameters that are associated with each outbound media stream.
     */

    public void setDestinationConfigurations(java.util.Collection destinationConfigurations) {
        if (destinationConfigurations == null) {
            this.destinationConfigurations = null;
            return;
        }

        this.destinationConfigurations = new java.util.ArrayList(destinationConfigurations);
    }

    /**
     * The transport parameters that are associated with each outbound media stream.
     * 

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setDestinationConfigurations(java.util.Collection)} or * {@link #withDestinationConfigurations(java.util.Collection)} if you want to override the existing values. *

* * @param destinationConfigurations * The transport parameters that are associated with each outbound media stream. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaStreamOutputConfiguration withDestinationConfigurations(DestinationConfiguration... destinationConfigurations) { if (this.destinationConfigurations == null) { setDestinationConfigurations(new java.util.ArrayList(destinationConfigurations.length)); } for (DestinationConfiguration ele : destinationConfigurations) { this.destinationConfigurations.add(ele); } return this; } /** * The transport parameters that are associated with each outbound media stream. * * @param destinationConfigurations * The transport parameters that are associated with each outbound media stream. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaStreamOutputConfiguration withDestinationConfigurations(java.util.Collection destinationConfigurations) { setDestinationConfigurations(destinationConfigurations); return this; } /** * The format that was used to encode the data. For ancillary data streams, set the encoding name to smpte291. For * audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name to raw. For video, * JPEG XS streams, set the encoding name to jxsv. * * @param encodingName * The format that was used to encode the data. For ancillary data streams, set the encoding name to * smpte291. For audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name * to raw. For video, JPEG XS streams, set the encoding name to jxsv. * @see EncodingName */ public void setEncodingName(String encodingName) { this.encodingName = encodingName; } /** * The format that was used to encode the data. For ancillary data streams, set the encoding name to smpte291. For * audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name to raw. For video, * JPEG XS streams, set the encoding name to jxsv. * * @return The format that was used to encode the data. For ancillary data streams, set the encoding name to * smpte291. For audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name * to raw. For video, JPEG XS streams, set the encoding name to jxsv. * @see EncodingName */ public String getEncodingName() { return this.encodingName; } /** * The format that was used to encode the data. For ancillary data streams, set the encoding name to smpte291. For * audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name to raw. For video, * JPEG XS streams, set the encoding name to jxsv. * * @param encodingName * The format that was used to encode the data. For ancillary data streams, set the encoding name to * smpte291. For audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name * to raw. For video, JPEG XS streams, set the encoding name to jxsv. * @return Returns a reference to this object so that method calls can be chained together. * @see EncodingName */ public MediaStreamOutputConfiguration withEncodingName(String encodingName) { setEncodingName(encodingName); return this; } /** * The format that was used to encode the data. For ancillary data streams, set the encoding name to smpte291. For * audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name to raw. For video, * JPEG XS streams, set the encoding name to jxsv. * * @param encodingName * The format that was used to encode the data. For ancillary data streams, set the encoding name to * smpte291. For audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name * to raw. For video, JPEG XS streams, set the encoding name to jxsv. * @return Returns a reference to this object so that method calls can be chained together. * @see EncodingName */ public MediaStreamOutputConfiguration withEncodingName(EncodingName encodingName) { this.encodingName = encodingName.toString(); return this; } /** * Encoding parameters * * @param encodingParameters * Encoding parameters */ public void setEncodingParameters(EncodingParameters encodingParameters) { this.encodingParameters = encodingParameters; } /** * Encoding parameters * * @return Encoding parameters */ public EncodingParameters getEncodingParameters() { return this.encodingParameters; } /** * Encoding parameters * * @param encodingParameters * Encoding parameters * @return Returns a reference to this object so that method calls can be chained together. */ public MediaStreamOutputConfiguration withEncodingParameters(EncodingParameters encodingParameters) { setEncodingParameters(encodingParameters); return this; } /** * The name of the media stream. * * @param mediaStreamName * The name of the media stream. */ public void setMediaStreamName(String mediaStreamName) { this.mediaStreamName = mediaStreamName; } /** * The name of the media stream. * * @return The name of the media stream. */ public String getMediaStreamName() { return this.mediaStreamName; } /** * The name of the media stream. * * @param mediaStreamName * The name of the media stream. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaStreamOutputConfiguration withMediaStreamName(String mediaStreamName) { setMediaStreamName(mediaStreamName); 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 (getDestinationConfigurations() != null) sb.append("DestinationConfigurations: ").append(getDestinationConfigurations()).append(","); if (getEncodingName() != null) sb.append("EncodingName: ").append(getEncodingName()).append(","); if (getEncodingParameters() != null) sb.append("EncodingParameters: ").append(getEncodingParameters()).append(","); if (getMediaStreamName() != null) sb.append("MediaStreamName: ").append(getMediaStreamName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof MediaStreamOutputConfiguration == false) return false; MediaStreamOutputConfiguration other = (MediaStreamOutputConfiguration) obj; if (other.getDestinationConfigurations() == null ^ this.getDestinationConfigurations() == null) return false; if (other.getDestinationConfigurations() != null && other.getDestinationConfigurations().equals(this.getDestinationConfigurations()) == false) return false; if (other.getEncodingName() == null ^ this.getEncodingName() == null) return false; if (other.getEncodingName() != null && other.getEncodingName().equals(this.getEncodingName()) == false) return false; if (other.getEncodingParameters() == null ^ this.getEncodingParameters() == null) return false; if (other.getEncodingParameters() != null && other.getEncodingParameters().equals(this.getEncodingParameters()) == false) return false; if (other.getMediaStreamName() == null ^ this.getMediaStreamName() == null) return false; if (other.getMediaStreamName() != null && other.getMediaStreamName().equals(this.getMediaStreamName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDestinationConfigurations() == null) ? 0 : getDestinationConfigurations().hashCode()); hashCode = prime * hashCode + ((getEncodingName() == null) ? 0 : getEncodingName().hashCode()); hashCode = prime * hashCode + ((getEncodingParameters() == null) ? 0 : getEncodingParameters().hashCode()); hashCode = prime * hashCode + ((getMediaStreamName() == null) ? 0 : getMediaStreamName().hashCode()); return hashCode; } @Override public MediaStreamOutputConfiguration clone() { try { return (MediaStreamOutputConfiguration) 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.MediaStreamOutputConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy