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

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

Go to download

The AWS Java SDK for Amazon Chime SDK Media Pipelines module holds the client classes that are used for communicating with Amazon Chime SDK Media Pipelines 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.chimesdkmediapipelines.model;

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

/**
 * 

* The task configuration settings for the Kinesis video stream source. *

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

* The ARN of the stream. *

*/ private String streamArn; /** *

* The channel ID. *

*/ private Integer channelId; /** *

* The unique identifier of the fragment to begin processing. *

*/ private String fragmentNumber; /** *

* The ARN of the stream. *

* * @param streamArn * The ARN of the stream. */ public void setStreamArn(String streamArn) { this.streamArn = streamArn; } /** *

* The ARN of the stream. *

* * @return The ARN of the stream. */ public String getStreamArn() { return this.streamArn; } /** *

* The ARN of the stream. *

* * @param streamArn * The ARN of the stream. * @return Returns a reference to this object so that method calls can be chained together. */ public KinesisVideoStreamSourceTaskConfiguration withStreamArn(String streamArn) { setStreamArn(streamArn); return this; } /** *

* The channel ID. *

* * @param channelId * The channel ID. */ public void setChannelId(Integer channelId) { this.channelId = channelId; } /** *

* The channel ID. *

* * @return The channel ID. */ public Integer getChannelId() { return this.channelId; } /** *

* The channel ID. *

* * @param channelId * The channel ID. * @return Returns a reference to this object so that method calls can be chained together. */ public KinesisVideoStreamSourceTaskConfiguration withChannelId(Integer channelId) { setChannelId(channelId); return this; } /** *

* The unique identifier of the fragment to begin processing. *

* * @param fragmentNumber * The unique identifier of the fragment to begin processing. */ public void setFragmentNumber(String fragmentNumber) { this.fragmentNumber = fragmentNumber; } /** *

* The unique identifier of the fragment to begin processing. *

* * @return The unique identifier of the fragment to begin processing. */ public String getFragmentNumber() { return this.fragmentNumber; } /** *

* The unique identifier of the fragment to begin processing. *

* * @param fragmentNumber * The unique identifier of the fragment to begin processing. * @return Returns a reference to this object so that method calls can be chained together. */ public KinesisVideoStreamSourceTaskConfiguration withFragmentNumber(String fragmentNumber) { setFragmentNumber(fragmentNumber); 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 (getStreamArn() != null) sb.append("StreamArn: ").append(getStreamArn()).append(","); if (getChannelId() != null) sb.append("ChannelId: ").append(getChannelId()).append(","); if (getFragmentNumber() != null) sb.append("FragmentNumber: ").append(getFragmentNumber()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof KinesisVideoStreamSourceTaskConfiguration == false) return false; KinesisVideoStreamSourceTaskConfiguration other = (KinesisVideoStreamSourceTaskConfiguration) obj; if (other.getStreamArn() == null ^ this.getStreamArn() == null) return false; if (other.getStreamArn() != null && other.getStreamArn().equals(this.getStreamArn()) == false) return false; if (other.getChannelId() == null ^ this.getChannelId() == null) return false; if (other.getChannelId() != null && other.getChannelId().equals(this.getChannelId()) == false) return false; if (other.getFragmentNumber() == null ^ this.getFragmentNumber() == null) return false; if (other.getFragmentNumber() != null && other.getFragmentNumber().equals(this.getFragmentNumber()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStreamArn() == null) ? 0 : getStreamArn().hashCode()); hashCode = prime * hashCode + ((getChannelId() == null) ? 0 : getChannelId().hashCode()); hashCode = prime * hashCode + ((getFragmentNumber() == null) ? 0 : getFragmentNumber().hashCode()); return hashCode; } @Override public KinesisVideoStreamSourceTaskConfiguration clone() { try { return (KinesisVideoStreamSourceTaskConfiguration) 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.KinesisVideoStreamSourceTaskConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy