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

com.amazonaws.services.chimesdkmediapipelines.model.MediaConcatenationPipeline 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;

/**
 * 

* Concatenates audio and video data from one or more data streams. *

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

* The ID of the media pipeline being concatenated. *

*/ private String mediaPipelineId; /** *

* The ARN of the media pipeline that you specify in the SourceConfiguration object. *

*/ private String mediaPipelineArn; /** *

* The data sources being concatenated. *

*/ private java.util.List sources; /** *

* The data sinks of the concatenation pipeline. *

*/ private java.util.List sinks; /** *

* The status of the concatenation pipeline. *

*/ private String status; /** *

* The time at which the concatenation pipeline was created. *

*/ private java.util.Date createdTimestamp; /** *

* The time at which the concatenation pipeline was last updated. *

*/ private java.util.Date updatedTimestamp; /** *

* The ID of the media pipeline being concatenated. *

* * @param mediaPipelineId * The ID of the media pipeline being concatenated. */ public void setMediaPipelineId(String mediaPipelineId) { this.mediaPipelineId = mediaPipelineId; } /** *

* The ID of the media pipeline being concatenated. *

* * @return The ID of the media pipeline being concatenated. */ public String getMediaPipelineId() { return this.mediaPipelineId; } /** *

* The ID of the media pipeline being concatenated. *

* * @param mediaPipelineId * The ID of the media pipeline being concatenated. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaConcatenationPipeline withMediaPipelineId(String mediaPipelineId) { setMediaPipelineId(mediaPipelineId); return this; } /** *

* The ARN of the media pipeline that you specify in the SourceConfiguration object. *

* * @param mediaPipelineArn * The ARN of the media pipeline that you specify in the SourceConfiguration object. */ public void setMediaPipelineArn(String mediaPipelineArn) { this.mediaPipelineArn = mediaPipelineArn; } /** *

* The ARN of the media pipeline that you specify in the SourceConfiguration object. *

* * @return The ARN of the media pipeline that you specify in the SourceConfiguration object. */ public String getMediaPipelineArn() { return this.mediaPipelineArn; } /** *

* The ARN of the media pipeline that you specify in the SourceConfiguration object. *

* * @param mediaPipelineArn * The ARN of the media pipeline that you specify in the SourceConfiguration object. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaConcatenationPipeline withMediaPipelineArn(String mediaPipelineArn) { setMediaPipelineArn(mediaPipelineArn); return this; } /** *

* The data sources being concatenated. *

* * @return The data sources being concatenated. */ public java.util.List getSources() { return sources; } /** *

* The data sources being concatenated. *

* * @param sources * The data sources being concatenated. */ public void setSources(java.util.Collection sources) { if (sources == null) { this.sources = null; return; } this.sources = new java.util.ArrayList(sources); } /** *

* The data sources being concatenated. *

*

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

* * @param sources * The data sources being concatenated. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaConcatenationPipeline withSources(ConcatenationSource... sources) { if (this.sources == null) { setSources(new java.util.ArrayList(sources.length)); } for (ConcatenationSource ele : sources) { this.sources.add(ele); } return this; } /** *

* The data sources being concatenated. *

* * @param sources * The data sources being concatenated. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaConcatenationPipeline withSources(java.util.Collection sources) { setSources(sources); return this; } /** *

* The data sinks of the concatenation pipeline. *

* * @return The data sinks of the concatenation pipeline. */ public java.util.List getSinks() { return sinks; } /** *

* The data sinks of the concatenation pipeline. *

* * @param sinks * The data sinks of the concatenation pipeline. */ public void setSinks(java.util.Collection sinks) { if (sinks == null) { this.sinks = null; return; } this.sinks = new java.util.ArrayList(sinks); } /** *

* The data sinks of the concatenation pipeline. *

*

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

* * @param sinks * The data sinks of the concatenation pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaConcatenationPipeline withSinks(ConcatenationSink... sinks) { if (this.sinks == null) { setSinks(new java.util.ArrayList(sinks.length)); } for (ConcatenationSink ele : sinks) { this.sinks.add(ele); } return this; } /** *

* The data sinks of the concatenation pipeline. *

* * @param sinks * The data sinks of the concatenation pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaConcatenationPipeline withSinks(java.util.Collection sinks) { setSinks(sinks); return this; } /** *

* The status of the concatenation pipeline. *

* * @param status * The status of the concatenation pipeline. * @see MediaPipelineStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the concatenation pipeline. *

* * @return The status of the concatenation pipeline. * @see MediaPipelineStatus */ public String getStatus() { return this.status; } /** *

* The status of the concatenation pipeline. *

* * @param status * The status of the concatenation pipeline. * @return Returns a reference to this object so that method calls can be chained together. * @see MediaPipelineStatus */ public MediaConcatenationPipeline withStatus(String status) { setStatus(status); return this; } /** *

* The status of the concatenation pipeline. *

* * @param status * The status of the concatenation pipeline. * @return Returns a reference to this object so that method calls can be chained together. * @see MediaPipelineStatus */ public MediaConcatenationPipeline withStatus(MediaPipelineStatus status) { this.status = status.toString(); return this; } /** *

* The time at which the concatenation pipeline was created. *

* * @param createdTimestamp * The time at which the concatenation pipeline was created. */ public void setCreatedTimestamp(java.util.Date createdTimestamp) { this.createdTimestamp = createdTimestamp; } /** *

* The time at which the concatenation pipeline was created. *

* * @return The time at which the concatenation pipeline was created. */ public java.util.Date getCreatedTimestamp() { return this.createdTimestamp; } /** *

* The time at which the concatenation pipeline was created. *

* * @param createdTimestamp * The time at which the concatenation pipeline was created. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaConcatenationPipeline withCreatedTimestamp(java.util.Date createdTimestamp) { setCreatedTimestamp(createdTimestamp); return this; } /** *

* The time at which the concatenation pipeline was last updated. *

* * @param updatedTimestamp * The time at which the concatenation pipeline was last updated. */ public void setUpdatedTimestamp(java.util.Date updatedTimestamp) { this.updatedTimestamp = updatedTimestamp; } /** *

* The time at which the concatenation pipeline was last updated. *

* * @return The time at which the concatenation pipeline was last updated. */ public java.util.Date getUpdatedTimestamp() { return this.updatedTimestamp; } /** *

* The time at which the concatenation pipeline was last updated. *

* * @param updatedTimestamp * The time at which the concatenation pipeline was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaConcatenationPipeline withUpdatedTimestamp(java.util.Date updatedTimestamp) { setUpdatedTimestamp(updatedTimestamp); 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 (getMediaPipelineId() != null) sb.append("MediaPipelineId: ").append(getMediaPipelineId()).append(","); if (getMediaPipelineArn() != null) sb.append("MediaPipelineArn: ").append(getMediaPipelineArn()).append(","); if (getSources() != null) sb.append("Sources: ").append(getSources()).append(","); if (getSinks() != null) sb.append("Sinks: ").append(getSinks()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCreatedTimestamp() != null) sb.append("CreatedTimestamp: ").append(getCreatedTimestamp()).append(","); if (getUpdatedTimestamp() != null) sb.append("UpdatedTimestamp: ").append(getUpdatedTimestamp()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof MediaConcatenationPipeline == false) return false; MediaConcatenationPipeline other = (MediaConcatenationPipeline) obj; if (other.getMediaPipelineId() == null ^ this.getMediaPipelineId() == null) return false; if (other.getMediaPipelineId() != null && other.getMediaPipelineId().equals(this.getMediaPipelineId()) == false) return false; if (other.getMediaPipelineArn() == null ^ this.getMediaPipelineArn() == null) return false; if (other.getMediaPipelineArn() != null && other.getMediaPipelineArn().equals(this.getMediaPipelineArn()) == false) return false; if (other.getSources() == null ^ this.getSources() == null) return false; if (other.getSources() != null && other.getSources().equals(this.getSources()) == false) return false; if (other.getSinks() == null ^ this.getSinks() == null) return false; if (other.getSinks() != null && other.getSinks().equals(this.getSinks()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getCreatedTimestamp() == null ^ this.getCreatedTimestamp() == null) return false; if (other.getCreatedTimestamp() != null && other.getCreatedTimestamp().equals(this.getCreatedTimestamp()) == false) return false; if (other.getUpdatedTimestamp() == null ^ this.getUpdatedTimestamp() == null) return false; if (other.getUpdatedTimestamp() != null && other.getUpdatedTimestamp().equals(this.getUpdatedTimestamp()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMediaPipelineId() == null) ? 0 : getMediaPipelineId().hashCode()); hashCode = prime * hashCode + ((getMediaPipelineArn() == null) ? 0 : getMediaPipelineArn().hashCode()); hashCode = prime * hashCode + ((getSources() == null) ? 0 : getSources().hashCode()); hashCode = prime * hashCode + ((getSinks() == null) ? 0 : getSinks().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCreatedTimestamp() == null) ? 0 : getCreatedTimestamp().hashCode()); hashCode = prime * hashCode + ((getUpdatedTimestamp() == null) ? 0 : getUpdatedTimestamp().hashCode()); return hashCode; } @Override public MediaConcatenationPipeline clone() { try { return (MediaConcatenationPipeline) 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.MediaConcatenationPipelineMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy