com.amazonaws.services.chimesdkmediapipelines.model.CreateMediaInsightsPipelineRequest 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.AmazonWebServiceRequest;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateMediaInsightsPipelineRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The ARN of the pipeline's configuration.
*
*/
private String mediaInsightsPipelineConfigurationArn;
/**
*
* The runtime configuration for the Kinesis video stream source of the media insights pipeline.
*
*/
private KinesisVideoStreamSourceRuntimeConfiguration kinesisVideoStreamSourceRuntimeConfiguration;
/**
*
* The runtime metadata for the media insights pipeline. Consists of a key-value map of strings.
*
*/
private java.util.Map mediaInsightsRuntimeMetadata;
/**
*
* The runtime configuration for the Kinesis video recording stream source.
*
*/
private KinesisVideoStreamRecordingSourceRuntimeConfiguration kinesisVideoStreamRecordingSourceRuntimeConfiguration;
/**
*
* The runtime configuration for the S3 recording sink. If specified, the settings in this structure override any
* settings in S3RecordingSinkConfiguration
.
*
*/
private S3RecordingSinkRuntimeConfiguration s3RecordingSinkRuntimeConfiguration;
/**
*
* The tags assigned to the media insights pipeline.
*
*/
private java.util.List tags;
/**
*
* The unique identifier for the media insights pipeline request.
*
*/
private String clientRequestToken;
/**
*
* The ARN of the pipeline's configuration.
*
*
* @param mediaInsightsPipelineConfigurationArn
* The ARN of the pipeline's configuration.
*/
public void setMediaInsightsPipelineConfigurationArn(String mediaInsightsPipelineConfigurationArn) {
this.mediaInsightsPipelineConfigurationArn = mediaInsightsPipelineConfigurationArn;
}
/**
*
* The ARN of the pipeline's configuration.
*
*
* @return The ARN of the pipeline's configuration.
*/
public String getMediaInsightsPipelineConfigurationArn() {
return this.mediaInsightsPipelineConfigurationArn;
}
/**
*
* The ARN of the pipeline's configuration.
*
*
* @param mediaInsightsPipelineConfigurationArn
* The ARN of the pipeline's configuration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMediaInsightsPipelineRequest withMediaInsightsPipelineConfigurationArn(String mediaInsightsPipelineConfigurationArn) {
setMediaInsightsPipelineConfigurationArn(mediaInsightsPipelineConfigurationArn);
return this;
}
/**
*
* The runtime configuration for the Kinesis video stream source of the media insights pipeline.
*
*
* @param kinesisVideoStreamSourceRuntimeConfiguration
* The runtime configuration for the Kinesis video stream source of the media insights pipeline.
*/
public void setKinesisVideoStreamSourceRuntimeConfiguration(KinesisVideoStreamSourceRuntimeConfiguration kinesisVideoStreamSourceRuntimeConfiguration) {
this.kinesisVideoStreamSourceRuntimeConfiguration = kinesisVideoStreamSourceRuntimeConfiguration;
}
/**
*
* The runtime configuration for the Kinesis video stream source of the media insights pipeline.
*
*
* @return The runtime configuration for the Kinesis video stream source of the media insights pipeline.
*/
public KinesisVideoStreamSourceRuntimeConfiguration getKinesisVideoStreamSourceRuntimeConfiguration() {
return this.kinesisVideoStreamSourceRuntimeConfiguration;
}
/**
*
* The runtime configuration for the Kinesis video stream source of the media insights pipeline.
*
*
* @param kinesisVideoStreamSourceRuntimeConfiguration
* The runtime configuration for the Kinesis video stream source of the media insights pipeline.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMediaInsightsPipelineRequest withKinesisVideoStreamSourceRuntimeConfiguration(
KinesisVideoStreamSourceRuntimeConfiguration kinesisVideoStreamSourceRuntimeConfiguration) {
setKinesisVideoStreamSourceRuntimeConfiguration(kinesisVideoStreamSourceRuntimeConfiguration);
return this;
}
/**
*
* The runtime metadata for the media insights pipeline. Consists of a key-value map of strings.
*
*
* @return The runtime metadata for the media insights pipeline. Consists of a key-value map of strings.
*/
public java.util.Map getMediaInsightsRuntimeMetadata() {
return mediaInsightsRuntimeMetadata;
}
/**
*
* The runtime metadata for the media insights pipeline. Consists of a key-value map of strings.
*
*
* @param mediaInsightsRuntimeMetadata
* The runtime metadata for the media insights pipeline. Consists of a key-value map of strings.
*/
public void setMediaInsightsRuntimeMetadata(java.util.Map mediaInsightsRuntimeMetadata) {
this.mediaInsightsRuntimeMetadata = mediaInsightsRuntimeMetadata;
}
/**
*
* The runtime metadata for the media insights pipeline. Consists of a key-value map of strings.
*
*
* @param mediaInsightsRuntimeMetadata
* The runtime metadata for the media insights pipeline. Consists of a key-value map of strings.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMediaInsightsPipelineRequest withMediaInsightsRuntimeMetadata(java.util.Map mediaInsightsRuntimeMetadata) {
setMediaInsightsRuntimeMetadata(mediaInsightsRuntimeMetadata);
return this;
}
/**
* Add a single MediaInsightsRuntimeMetadata entry
*
* @see CreateMediaInsightsPipelineRequest#withMediaInsightsRuntimeMetadata
* @returns a reference to this object so that method calls can be chained together.
*/
public CreateMediaInsightsPipelineRequest addMediaInsightsRuntimeMetadataEntry(String key, String value) {
if (null == this.mediaInsightsRuntimeMetadata) {
this.mediaInsightsRuntimeMetadata = new java.util.HashMap();
}
if (this.mediaInsightsRuntimeMetadata.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.mediaInsightsRuntimeMetadata.put(key, value);
return this;
}
/**
* Removes all the entries added into MediaInsightsRuntimeMetadata.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMediaInsightsPipelineRequest clearMediaInsightsRuntimeMetadataEntries() {
this.mediaInsightsRuntimeMetadata = null;
return this;
}
/**
*
* The runtime configuration for the Kinesis video recording stream source.
*
*
* @param kinesisVideoStreamRecordingSourceRuntimeConfiguration
* The runtime configuration for the Kinesis video recording stream source.
*/
public void setKinesisVideoStreamRecordingSourceRuntimeConfiguration(
KinesisVideoStreamRecordingSourceRuntimeConfiguration kinesisVideoStreamRecordingSourceRuntimeConfiguration) {
this.kinesisVideoStreamRecordingSourceRuntimeConfiguration = kinesisVideoStreamRecordingSourceRuntimeConfiguration;
}
/**
*
* The runtime configuration for the Kinesis video recording stream source.
*
*
* @return The runtime configuration for the Kinesis video recording stream source.
*/
public KinesisVideoStreamRecordingSourceRuntimeConfiguration getKinesisVideoStreamRecordingSourceRuntimeConfiguration() {
return this.kinesisVideoStreamRecordingSourceRuntimeConfiguration;
}
/**
*
* The runtime configuration for the Kinesis video recording stream source.
*
*
* @param kinesisVideoStreamRecordingSourceRuntimeConfiguration
* The runtime configuration for the Kinesis video recording stream source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMediaInsightsPipelineRequest withKinesisVideoStreamRecordingSourceRuntimeConfiguration(
KinesisVideoStreamRecordingSourceRuntimeConfiguration kinesisVideoStreamRecordingSourceRuntimeConfiguration) {
setKinesisVideoStreamRecordingSourceRuntimeConfiguration(kinesisVideoStreamRecordingSourceRuntimeConfiguration);
return this;
}
/**
*
* The runtime configuration for the S3 recording sink. If specified, the settings in this structure override any
* settings in S3RecordingSinkConfiguration
.
*
*
* @param s3RecordingSinkRuntimeConfiguration
* The runtime configuration for the S3 recording sink. If specified, the settings in this structure override
* any settings in S3RecordingSinkConfiguration
.
*/
public void setS3RecordingSinkRuntimeConfiguration(S3RecordingSinkRuntimeConfiguration s3RecordingSinkRuntimeConfiguration) {
this.s3RecordingSinkRuntimeConfiguration = s3RecordingSinkRuntimeConfiguration;
}
/**
*
* The runtime configuration for the S3 recording sink. If specified, the settings in this structure override any
* settings in S3RecordingSinkConfiguration
.
*
*
* @return The runtime configuration for the S3 recording sink. If specified, the settings in this structure
* override any settings in S3RecordingSinkConfiguration
.
*/
public S3RecordingSinkRuntimeConfiguration getS3RecordingSinkRuntimeConfiguration() {
return this.s3RecordingSinkRuntimeConfiguration;
}
/**
*
* The runtime configuration for the S3 recording sink. If specified, the settings in this structure override any
* settings in S3RecordingSinkConfiguration
.
*
*
* @param s3RecordingSinkRuntimeConfiguration
* The runtime configuration for the S3 recording sink. If specified, the settings in this structure override
* any settings in S3RecordingSinkConfiguration
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMediaInsightsPipelineRequest withS3RecordingSinkRuntimeConfiguration(S3RecordingSinkRuntimeConfiguration s3RecordingSinkRuntimeConfiguration) {
setS3RecordingSinkRuntimeConfiguration(s3RecordingSinkRuntimeConfiguration);
return this;
}
/**
*
* The tags assigned to the media insights pipeline.
*
*
* @return The tags assigned to the media insights pipeline.
*/
public java.util.List getTags() {
return tags;
}
/**
*
* The tags assigned to the media insights pipeline.
*
*
* @param tags
* The tags assigned to the media insights pipeline.
*/
public void setTags(java.util.Collection tags) {
if (tags == null) {
this.tags = null;
return;
}
this.tags = new java.util.ArrayList(tags);
}
/**
*
* The tags assigned to the media insights pipeline.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param tags
* The tags assigned to the media insights pipeline.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMediaInsightsPipelineRequest withTags(Tag... tags) {
if (this.tags == null) {
setTags(new java.util.ArrayList(tags.length));
}
for (Tag ele : tags) {
this.tags.add(ele);
}
return this;
}
/**
*
* The tags assigned to the media insights pipeline.
*
*
* @param tags
* The tags assigned to the media insights pipeline.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMediaInsightsPipelineRequest withTags(java.util.Collection tags) {
setTags(tags);
return this;
}
/**
*
* The unique identifier for the media insights pipeline request.
*
*
* @param clientRequestToken
* The unique identifier for the media insights pipeline request.
*/
public void setClientRequestToken(String clientRequestToken) {
this.clientRequestToken = clientRequestToken;
}
/**
*
* The unique identifier for the media insights pipeline request.
*
*
* @return The unique identifier for the media insights pipeline request.
*/
public String getClientRequestToken() {
return this.clientRequestToken;
}
/**
*
* The unique identifier for the media insights pipeline request.
*
*
* @param clientRequestToken
* The unique identifier for the media insights pipeline request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMediaInsightsPipelineRequest withClientRequestToken(String clientRequestToken) {
setClientRequestToken(clientRequestToken);
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 (getMediaInsightsPipelineConfigurationArn() != null)
sb.append("MediaInsightsPipelineConfigurationArn: ").append("***Sensitive Data Redacted***").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 (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getClientRequestToken() != null)
sb.append("ClientRequestToken: ").append("***Sensitive Data Redacted***");
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateMediaInsightsPipelineRequest == false)
return false;
CreateMediaInsightsPipelineRequest other = (CreateMediaInsightsPipelineRequest) obj;
if (other.getMediaInsightsPipelineConfigurationArn() == null ^ this.getMediaInsightsPipelineConfigurationArn() == null)
return false;
if (other.getMediaInsightsPipelineConfigurationArn() != null
&& other.getMediaInsightsPipelineConfigurationArn().equals(this.getMediaInsightsPipelineConfigurationArn()) == 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.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null)
return false;
if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getMediaInsightsPipelineConfigurationArn() == null) ? 0 : getMediaInsightsPipelineConfigurationArn().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 + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode());
return hashCode;
}
@Override
public CreateMediaInsightsPipelineRequest clone() {
return (CreateMediaInsightsPipelineRequest) super.clone();
}
}