com.amazonaws.services.mediaconnect.model.MediaStreamSourceConfigurationRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-mediaconnect Show documentation
Show all versions of aws-java-sdk-mediaconnect Show documentation
The AWS Java SDK for AWS MediaConnect module holds the client classes that are used for communicating with AWS MediaConnect Service
The 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 definition of a media stream that you want to associate with the source.
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class MediaStreamSourceConfigurationRequest implements Serializable, Cloneable, StructuredPojo {
/**
* The format you want to use 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;
/** The transport parameters that you want to associate with the media stream. */
private java.util.List inputConfigurations;
/** The name of the media stream. */
private String mediaStreamName;
/**
* The format you want to use 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 you want to use 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 you want to use 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 you want to use 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 you want to use 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 you want to use 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 MediaStreamSourceConfigurationRequest withEncodingName(String encodingName) {
setEncodingName(encodingName);
return this;
}
/**
* The format you want to use 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 you want to use 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 MediaStreamSourceConfigurationRequest withEncodingName(EncodingName encodingName) {
this.encodingName = encodingName.toString();
return this;
}
/**
* The transport parameters that you want to associate with the media stream.
*
* @return The transport parameters that you want to associate with the media stream.
*/
public java.util.List getInputConfigurations() {
return inputConfigurations;
}
/**
* The transport parameters that you want to associate with the media stream.
*
* @param inputConfigurations
* The transport parameters that you want to associate with the media stream.
*/
public void setInputConfigurations(java.util.Collection inputConfigurations) {
if (inputConfigurations == null) {
this.inputConfigurations = null;
return;
}
this.inputConfigurations = new java.util.ArrayList(inputConfigurations);
}
/**
* The transport parameters that you want to associate with the media stream.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setInputConfigurations(java.util.Collection)} or {@link #withInputConfigurations(java.util.Collection)}
* if you want to override the existing values.
*
*
* @param inputConfigurations
* The transport parameters that you want to associate with the media stream.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MediaStreamSourceConfigurationRequest withInputConfigurations(InputConfigurationRequest... inputConfigurations) {
if (this.inputConfigurations == null) {
setInputConfigurations(new java.util.ArrayList(inputConfigurations.length));
}
for (InputConfigurationRequest ele : inputConfigurations) {
this.inputConfigurations.add(ele);
}
return this;
}
/**
* The transport parameters that you want to associate with the media stream.
*
* @param inputConfigurations
* The transport parameters that you want to associate with the media stream.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MediaStreamSourceConfigurationRequest withInputConfigurations(java.util.Collection inputConfigurations) {
setInputConfigurations(inputConfigurations);
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 MediaStreamSourceConfigurationRequest 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 (getEncodingName() != null)
sb.append("EncodingName: ").append(getEncodingName()).append(",");
if (getInputConfigurations() != null)
sb.append("InputConfigurations: ").append(getInputConfigurations()).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 MediaStreamSourceConfigurationRequest == false)
return false;
MediaStreamSourceConfigurationRequest other = (MediaStreamSourceConfigurationRequest) obj;
if (other.getEncodingName() == null ^ this.getEncodingName() == null)
return false;
if (other.getEncodingName() != null && other.getEncodingName().equals(this.getEncodingName()) == false)
return false;
if (other.getInputConfigurations() == null ^ this.getInputConfigurations() == null)
return false;
if (other.getInputConfigurations() != null && other.getInputConfigurations().equals(this.getInputConfigurations()) == 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 + ((getEncodingName() == null) ? 0 : getEncodingName().hashCode());
hashCode = prime * hashCode + ((getInputConfigurations() == null) ? 0 : getInputConfigurations().hashCode());
hashCode = prime * hashCode + ((getMediaStreamName() == null) ? 0 : getMediaStreamName().hashCode());
return hashCode;
}
@Override
public MediaStreamSourceConfigurationRequest clone() {
try {
return (MediaStreamSourceConfigurationRequest) 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.MediaStreamSourceConfigurationRequestMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy