/* * Copyright 2018-2023 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 media pipeline that streams call analytics data. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MediaInsightsPipeline implements Serializable, Cloneable, StructuredPojo { /** ** The ID of a media insights pipeline. *
*/ private String mediaPipelineId; /** ** The ARN of a media insights pipeline. *
*/ private String mediaPipelineArn; /** ** The ARN of a media insight pipeline's configuration settings. *
*/ private String mediaInsightsPipelineConfigurationArn; /** ** The status of a media insights pipeline. *
*/ private String status; /** ** The configuration settings for a Kinesis runtime video stream in a media insights pipeline. *
*/ private KinesisVideoStreamSourceRuntimeConfiguration kinesisVideoStreamSourceRuntimeConfiguration; /** ** The runtime metadata of a media insights pipeline. *
*/ private java.util.Map* The runtime configuration settings for a Kinesis recording video stream in a media insights pipeline. *
*/ private KinesisVideoStreamRecordingSourceRuntimeConfiguration kinesisVideoStreamRecordingSourceRuntimeConfiguration; /** ** The runtime configuration of the Amazon S3 bucket that stores recordings in a media insights pipeline. *
*/ private S3RecordingSinkRuntimeConfiguration s3RecordingSinkRuntimeConfiguration; /** ** The time at which the media insights pipeline was created. *
*/ private java.util.Date createdTimestamp; /** ** The ID of a media insights pipeline. *
* * @param mediaPipelineId * The ID of a media insights pipeline. */ public void setMediaPipelineId(String mediaPipelineId) { this.mediaPipelineId = mediaPipelineId; } /** ** The ID of a media insights pipeline. *
* * @return The ID of a media insights pipeline. */ public String getMediaPipelineId() { return this.mediaPipelineId; } /** ** The ID of a media insights pipeline. *
* * @param mediaPipelineId * The ID of a media insights pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaInsightsPipeline withMediaPipelineId(String mediaPipelineId) { setMediaPipelineId(mediaPipelineId); return this; } /** ** The ARN of a media insights pipeline. *
* * @param mediaPipelineArn * The ARN of a media insights pipeline. */ public void setMediaPipelineArn(String mediaPipelineArn) { this.mediaPipelineArn = mediaPipelineArn; } /** ** The ARN of a media insights pipeline. *
* * @return The ARN of a media insights pipeline. */ public String getMediaPipelineArn() { return this.mediaPipelineArn; } /** ** The ARN of a media insights pipeline. *
* * @param mediaPipelineArn * The ARN of a media insights pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaInsightsPipeline withMediaPipelineArn(String mediaPipelineArn) { setMediaPipelineArn(mediaPipelineArn); return this; } /** ** The ARN of a media insight pipeline's configuration settings. *
* * @param mediaInsightsPipelineConfigurationArn * The ARN of a media insight pipeline's configuration settings. */ public void setMediaInsightsPipelineConfigurationArn(String mediaInsightsPipelineConfigurationArn) { this.mediaInsightsPipelineConfigurationArn = mediaInsightsPipelineConfigurationArn; } /** ** The ARN of a media insight pipeline's configuration settings. *
* * @return The ARN of a media insight pipeline's configuration settings. */ public String getMediaInsightsPipelineConfigurationArn() { return this.mediaInsightsPipelineConfigurationArn; } /** ** The ARN of a media insight pipeline's configuration settings. *
* * @param mediaInsightsPipelineConfigurationArn * The ARN of a media insight pipeline's configuration settings. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaInsightsPipeline withMediaInsightsPipelineConfigurationArn(String mediaInsightsPipelineConfigurationArn) { setMediaInsightsPipelineConfigurationArn(mediaInsightsPipelineConfigurationArn); return this; } /** ** The status of a media insights pipeline. *
* * @param status * The status of a media insights pipeline. * @see MediaPipelineStatus */ public void setStatus(String status) { this.status = status; } /** ** The status of a media insights pipeline. *
* * @return The status of a media insights pipeline. * @see MediaPipelineStatus */ public String getStatus() { return this.status; } /** ** The status of a media insights pipeline. *
* * @param status * The status of a media insights pipeline. * @return Returns a reference to this object so that method calls can be chained together. * @see MediaPipelineStatus */ public MediaInsightsPipeline withStatus(String status) { setStatus(status); return this; } /** ** The status of a media insights pipeline. *
* * @param status * The status of a media insights pipeline. * @return Returns a reference to this object so that method calls can be chained together. * @see MediaPipelineStatus */ public MediaInsightsPipeline withStatus(MediaPipelineStatus status) { this.status = status.toString(); return this; } /** ** The configuration settings for a Kinesis runtime video stream in a media insights pipeline. *
* * @param kinesisVideoStreamSourceRuntimeConfiguration * The configuration settings for a Kinesis runtime video stream in a media insights pipeline. */ public void setKinesisVideoStreamSourceRuntimeConfiguration(KinesisVideoStreamSourceRuntimeConfiguration kinesisVideoStreamSourceRuntimeConfiguration) { this.kinesisVideoStreamSourceRuntimeConfiguration = kinesisVideoStreamSourceRuntimeConfiguration; } /** ** The configuration settings for a Kinesis runtime video stream in a media insights pipeline. *
* * @return The configuration settings for a Kinesis runtime video stream in a media insights pipeline. */ public KinesisVideoStreamSourceRuntimeConfiguration getKinesisVideoStreamSourceRuntimeConfiguration() { return this.kinesisVideoStreamSourceRuntimeConfiguration; } /** ** The configuration settings for a Kinesis runtime video stream in a media insights pipeline. *
* * @param kinesisVideoStreamSourceRuntimeConfiguration * The configuration settings for a Kinesis runtime video stream in a media insights pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaInsightsPipeline withKinesisVideoStreamSourceRuntimeConfiguration( KinesisVideoStreamSourceRuntimeConfiguration kinesisVideoStreamSourceRuntimeConfiguration) { setKinesisVideoStreamSourceRuntimeConfiguration(kinesisVideoStreamSourceRuntimeConfiguration); return this; } /** ** The runtime metadata of a media insights pipeline. *
* * @return The runtime metadata of a media insights pipeline. */ public java.util.Map* The runtime metadata of a media insights pipeline. *
* * @param mediaInsightsRuntimeMetadata * The runtime metadata of a media insights pipeline. */ public void setMediaInsightsRuntimeMetadata(java.util.Map* The runtime metadata of a media insights pipeline. *
* * @param mediaInsightsRuntimeMetadata * The runtime metadata of a media insights pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaInsightsPipeline withMediaInsightsRuntimeMetadata(java.util.Map* The runtime configuration settings for a Kinesis recording video stream in a media insights pipeline. *
* * @param kinesisVideoStreamRecordingSourceRuntimeConfiguration * The runtime configuration settings for a Kinesis recording video stream in a media insights pipeline. */ public void setKinesisVideoStreamRecordingSourceRuntimeConfiguration( KinesisVideoStreamRecordingSourceRuntimeConfiguration kinesisVideoStreamRecordingSourceRuntimeConfiguration) { this.kinesisVideoStreamRecordingSourceRuntimeConfiguration = kinesisVideoStreamRecordingSourceRuntimeConfiguration; } /** ** The runtime configuration settings for a Kinesis recording video stream in a media insights pipeline. *
* * @return The runtime configuration settings for a Kinesis recording video stream in a media insights pipeline. */ public KinesisVideoStreamRecordingSourceRuntimeConfiguration getKinesisVideoStreamRecordingSourceRuntimeConfiguration() { return this.kinesisVideoStreamRecordingSourceRuntimeConfiguration; } /** ** The runtime configuration settings for a Kinesis recording video stream in a media insights pipeline. *
* * @param kinesisVideoStreamRecordingSourceRuntimeConfiguration * The runtime configuration settings for a Kinesis recording video stream in a media insights pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaInsightsPipeline withKinesisVideoStreamRecordingSourceRuntimeConfiguration( KinesisVideoStreamRecordingSourceRuntimeConfiguration kinesisVideoStreamRecordingSourceRuntimeConfiguration) { setKinesisVideoStreamRecordingSourceRuntimeConfiguration(kinesisVideoStreamRecordingSourceRuntimeConfiguration); return this; } /** ** The runtime configuration of the Amazon S3 bucket that stores recordings in a media insights pipeline. *
* * @param s3RecordingSinkRuntimeConfiguration * The runtime configuration of the Amazon S3 bucket that stores recordings in a media insights pipeline. */ public void setS3RecordingSinkRuntimeConfiguration(S3RecordingSinkRuntimeConfiguration s3RecordingSinkRuntimeConfiguration) { this.s3RecordingSinkRuntimeConfiguration = s3RecordingSinkRuntimeConfiguration; } /** ** The runtime configuration of the Amazon S3 bucket that stores recordings in a media insights pipeline. *
* * @return The runtime configuration of the Amazon S3 bucket that stores recordings in a media insights pipeline. */ public S3RecordingSinkRuntimeConfiguration getS3RecordingSinkRuntimeConfiguration() { return this.s3RecordingSinkRuntimeConfiguration; } /** ** The runtime configuration of the Amazon S3 bucket that stores recordings in a media insights pipeline. *
* * @param s3RecordingSinkRuntimeConfiguration * The runtime configuration of the Amazon S3 bucket that stores recordings in a media insights pipeline. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaInsightsPipeline withS3RecordingSinkRuntimeConfiguration(S3RecordingSinkRuntimeConfiguration s3RecordingSinkRuntimeConfiguration) { setS3RecordingSinkRuntimeConfiguration(s3RecordingSinkRuntimeConfiguration); return this; } /** ** The time at which the media insights pipeline was created. *
* * @param createdTimestamp * The time at which the media insights pipeline was created. */ public void setCreatedTimestamp(java.util.Date createdTimestamp) { this.createdTimestamp = createdTimestamp; } /** ** The time at which the media insights pipeline was created. *
* * @return The time at which the media insights pipeline was created. */ public java.util.Date getCreatedTimestamp() { return this.createdTimestamp; } /** ** The time at which the media insights pipeline was created. *
* * @param createdTimestamp * The time at which the media insights pipeline was created. * @return Returns a reference to this object so that method calls can be chained together. */ public MediaInsightsPipeline withCreatedTimestamp(java.util.Date createdTimestamp) { setCreatedTimestamp(createdTimestamp); 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("***Sensitive Data Redacted***").append(","); if (getMediaInsightsPipelineConfigurationArn() != null) sb.append("MediaInsightsPipelineConfigurationArn: ").append("***Sensitive Data Redacted***").append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getKinesisVideoStreamSourceRuntimeConfiguration() != null) sb.append("KinesisVideoStreamSourceRuntimeConfiguration: ").append(getKinesisVideoStreamSourceRuntimeConfiguration()).append(","); if (getMediaInsightsRuntimeMetadata() != null) sb.append("MediaInsightsRuntimeMetadata: ").append("***Sensitive Data Redacted***").append(","); if (getKinesisVideoStreamRecordingSourceRuntimeConfiguration() != null) sb.append("KinesisVideoStreamRecordingSourceRuntimeConfiguration: ").append(getKinesisVideoStreamRecordingSourceRuntimeConfiguration()).append(","); if (getS3RecordingSinkRuntimeConfiguration() != null) sb.append("S3RecordingSinkRuntimeConfiguration: ").append(getS3RecordingSinkRuntimeConfiguration()).append(","); if (getCreatedTimestamp() != null) sb.append("CreatedTimestamp: ").append(getCreatedTimestamp()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof MediaInsightsPipeline == false) return false; MediaInsightsPipeline other = (MediaInsightsPipeline) 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.getMediaInsightsPipelineConfigurationArn() == null ^ this.getMediaInsightsPipelineConfigurationArn() == null) return false; if (other.getMediaInsightsPipelineConfigurationArn() != null && other.getMediaInsightsPipelineConfigurationArn().equals(this.getMediaInsightsPipelineConfigurationArn()) == 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.getKinesisVideoStreamSourceRuntimeConfiguration() == null ^ this.getKinesisVideoStreamSourceRuntimeConfiguration() == null) return false; if (other.getKinesisVideoStreamSourceRuntimeConfiguration() != null && other.getKinesisVideoStreamSourceRuntimeConfiguration().equals(this.getKinesisVideoStreamSourceRuntimeConfiguration()) == false) return false; if (other.getMediaInsightsRuntimeMetadata() == null ^ this.getMediaInsightsRuntimeMetadata() == null) return false; if (other.getMediaInsightsRuntimeMetadata() != null && other.getMediaInsightsRuntimeMetadata().equals(this.getMediaInsightsRuntimeMetadata()) == false) return false; if (other.getKinesisVideoStreamRecordingSourceRuntimeConfiguration() == null ^ this.getKinesisVideoStreamRecordingSourceRuntimeConfiguration() == null) return false; if (other.getKinesisVideoStreamRecordingSourceRuntimeConfiguration() != null && other.getKinesisVideoStreamRecordingSourceRuntimeConfiguration().equals(this.getKinesisVideoStreamRecordingSourceRuntimeConfiguration()) == false) return false; if (other.getS3RecordingSinkRuntimeConfiguration() == null ^ this.getS3RecordingSinkRuntimeConfiguration() == null) return false; if (other.getS3RecordingSinkRuntimeConfiguration() != null && other.getS3RecordingSinkRuntimeConfiguration().equals(this.getS3RecordingSinkRuntimeConfiguration()) == false) return false; if (other.getCreatedTimestamp() == null ^ this.getCreatedTimestamp() == null) return false; if (other.getCreatedTimestamp() != null && other.getCreatedTimestamp().equals(this.getCreatedTimestamp()) == 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 + ((getMediaInsightsPipelineConfigurationArn() == null) ? 0 : getMediaInsightsPipelineConfigurationArn().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getKinesisVideoStreamSourceRuntimeConfiguration() == null) ? 0 : getKinesisVideoStreamSourceRuntimeConfiguration().hashCode()); hashCode = prime * hashCode + ((getMediaInsightsRuntimeMetadata() == null) ? 0 : getMediaInsightsRuntimeMetadata().hashCode()); hashCode = prime * hashCode + ((getKinesisVideoStreamRecordingSourceRuntimeConfiguration() == null) ? 0 : getKinesisVideoStreamRecordingSourceRuntimeConfiguration() .hashCode()); hashCode = prime * hashCode + ((getS3RecordingSinkRuntimeConfiguration() == null) ? 0 : getS3RecordingSinkRuntimeConfiguration().hashCode()); hashCode = prime * hashCode + ((getCreatedTimestamp() == null) ? 0 : getCreatedTimestamp().hashCode()); return hashCode; } @Override public MediaInsightsPipeline clone() { try { return (MediaInsightsPipeline) 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.MediaInsightsPipelineMarshaller.getInstance().marshall(this, protocolMarshaller); } }