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

com.amazonaws.services.chimesdkmediapipelines.model.MediaPipeline Maven / Gradle / Ivy

/*
 * 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.chimesdkmediapipelines.model;

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

/**
 * 

* A pipeline consisting of a media capture, media concatenation, or live-streaming pipeline. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MediaPipeline implements Serializable, Cloneable, StructuredPojo { /** *

* A pipeline that enables users to capture audio and video. *

*/ private MediaCapturePipeline mediaCapturePipeline; /** *

* The connector pipeline of the media pipeline. *

*/ private MediaLiveConnectorPipeline mediaLiveConnectorPipeline; /** *

* The media concatenation pipeline in a media pipeline. *

*/ private MediaConcatenationPipeline mediaConcatenationPipeline; /** *

* The media insights pipeline of a media pipeline. *

*/ private MediaInsightsPipeline mediaInsightsPipeline; /** *

* Designates a media pipeline as a media stream pipeline. *

*/ private MediaStreamPipeline mediaStreamPipeline; /** *

* A pipeline that enables users to capture audio and video. *

* * @param mediaCapturePipeline * A pipeline that enables users to capture audio and video. */ public void setMediaCapturePipeline(MediaCapturePipeline mediaCapturePipeline) { this.mediaCapturePipeline = mediaCapturePipeline; } /** *

* A pipeline that enables users to capture audio and video. *

* * @return A pipeline that enables users to capture audio and video. */ public MediaCapturePipeline getMediaCapturePipeline() { return this.mediaCapturePipeline; } /** *

* A pipeline that enables users to capture audio and video. *

* * @param mediaCapturePipeline * A pipeline that enables users to capture audio and video. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaPipeline withMediaCapturePipeline(MediaCapturePipeline mediaCapturePipeline) { setMediaCapturePipeline(mediaCapturePipeline); return this; } /** *

* The connector pipeline of the media pipeline. *

* * @param mediaLiveConnectorPipeline * The connector pipeline of the media pipeline. */ public void setMediaLiveConnectorPipeline(MediaLiveConnectorPipeline mediaLiveConnectorPipeline) { this.mediaLiveConnectorPipeline = mediaLiveConnectorPipeline; } /** *

* The connector pipeline of the media pipeline. *

* * @return The connector pipeline of the media pipeline. */ public MediaLiveConnectorPipeline getMediaLiveConnectorPipeline() { return this.mediaLiveConnectorPipeline; } /** *

* The connector pipeline of the media pipeline. *

* * @param mediaLiveConnectorPipeline * The connector pipeline of the media pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaPipeline withMediaLiveConnectorPipeline(MediaLiveConnectorPipeline mediaLiveConnectorPipeline) { setMediaLiveConnectorPipeline(mediaLiveConnectorPipeline); return this; } /** *

* The media concatenation pipeline in a media pipeline. *

* * @param mediaConcatenationPipeline * The media concatenation pipeline in a media pipeline. */ public void setMediaConcatenationPipeline(MediaConcatenationPipeline mediaConcatenationPipeline) { this.mediaConcatenationPipeline = mediaConcatenationPipeline; } /** *

* The media concatenation pipeline in a media pipeline. *

* * @return The media concatenation pipeline in a media pipeline. */ public MediaConcatenationPipeline getMediaConcatenationPipeline() { return this.mediaConcatenationPipeline; } /** *

* The media concatenation pipeline in a media pipeline. *

* * @param mediaConcatenationPipeline * The media concatenation pipeline in a media pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaPipeline withMediaConcatenationPipeline(MediaConcatenationPipeline mediaConcatenationPipeline) { setMediaConcatenationPipeline(mediaConcatenationPipeline); return this; } /** *

* The media insights pipeline of a media pipeline. *

* * @param mediaInsightsPipeline * The media insights pipeline of a media pipeline. */ public void setMediaInsightsPipeline(MediaInsightsPipeline mediaInsightsPipeline) { this.mediaInsightsPipeline = mediaInsightsPipeline; } /** *

* The media insights pipeline of a media pipeline. *

* * @return The media insights pipeline of a media pipeline. */ public MediaInsightsPipeline getMediaInsightsPipeline() { return this.mediaInsightsPipeline; } /** *

* The media insights pipeline of a media pipeline. *

* * @param mediaInsightsPipeline * The media insights pipeline of a media pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaPipeline withMediaInsightsPipeline(MediaInsightsPipeline mediaInsightsPipeline) { setMediaInsightsPipeline(mediaInsightsPipeline); return this; } /** *

* Designates a media pipeline as a media stream pipeline. *

* * @param mediaStreamPipeline * Designates a media pipeline as a media stream pipeline. */ public void setMediaStreamPipeline(MediaStreamPipeline mediaStreamPipeline) { this.mediaStreamPipeline = mediaStreamPipeline; } /** *

* Designates a media pipeline as a media stream pipeline. *

* * @return Designates a media pipeline as a media stream pipeline. */ public MediaStreamPipeline getMediaStreamPipeline() { return this.mediaStreamPipeline; } /** *

* Designates a media pipeline as a media stream pipeline. *

* * @param mediaStreamPipeline * Designates a media pipeline as a media stream pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaPipeline withMediaStreamPipeline(MediaStreamPipeline mediaStreamPipeline) { setMediaStreamPipeline(mediaStreamPipeline); 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 (getMediaCapturePipeline() != null) sb.append("MediaCapturePipeline: ").append(getMediaCapturePipeline()).append(","); if (getMediaLiveConnectorPipeline() != null) sb.append("MediaLiveConnectorPipeline: ").append(getMediaLiveConnectorPipeline()).append(","); if (getMediaConcatenationPipeline() != null) sb.append("MediaConcatenationPipeline: ").append(getMediaConcatenationPipeline()).append(","); if (getMediaInsightsPipeline() != null) sb.append("MediaInsightsPipeline: ").append(getMediaInsightsPipeline()).append(","); if (getMediaStreamPipeline() != null) sb.append("MediaStreamPipeline: ").append(getMediaStreamPipeline()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof MediaPipeline == false) return false; MediaPipeline other = (MediaPipeline) obj; if (other.getMediaCapturePipeline() == null ^ this.getMediaCapturePipeline() == null) return false; if (other.getMediaCapturePipeline() != null && other.getMediaCapturePipeline().equals(this.getMediaCapturePipeline()) == false) return false; if (other.getMediaLiveConnectorPipeline() == null ^ this.getMediaLiveConnectorPipeline() == null) return false; if (other.getMediaLiveConnectorPipeline() != null && other.getMediaLiveConnectorPipeline().equals(this.getMediaLiveConnectorPipeline()) == false) return false; if (other.getMediaConcatenationPipeline() == null ^ this.getMediaConcatenationPipeline() == null) return false; if (other.getMediaConcatenationPipeline() != null && other.getMediaConcatenationPipeline().equals(this.getMediaConcatenationPipeline()) == false) return false; if (other.getMediaInsightsPipeline() == null ^ this.getMediaInsightsPipeline() == null) return false; if (other.getMediaInsightsPipeline() != null && other.getMediaInsightsPipeline().equals(this.getMediaInsightsPipeline()) == false) return false; if (other.getMediaStreamPipeline() == null ^ this.getMediaStreamPipeline() == null) return false; if (other.getMediaStreamPipeline() != null && other.getMediaStreamPipeline().equals(this.getMediaStreamPipeline()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMediaCapturePipeline() == null) ? 0 : getMediaCapturePipeline().hashCode()); hashCode = prime * hashCode + ((getMediaLiveConnectorPipeline() == null) ? 0 : getMediaLiveConnectorPipeline().hashCode()); hashCode = prime * hashCode + ((getMediaConcatenationPipeline() == null) ? 0 : getMediaConcatenationPipeline().hashCode()); hashCode = prime * hashCode + ((getMediaInsightsPipeline() == null) ? 0 : getMediaInsightsPipeline().hashCode()); hashCode = prime * hashCode + ((getMediaStreamPipeline() == null) ? 0 : getMediaStreamPipeline().hashCode()); return hashCode; } @Override public MediaPipeline clone() { try { return (MediaPipeline) 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.chimesdkmediapipelines.model.transform.MediaPipelineMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy