commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaLiveConnectorPipeline.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chimesdkmediapipelines-jvm Show documentation
Show all versions of chimesdkmediapipelines-jvm Show documentation
The AWS SDK for Kotlin client for Chime SDK Media Pipelines
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chimesdkmediapipelines.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* The connector pipeline.
*/
public class MediaLiveConnectorPipeline private constructor(builder: Builder) {
/**
* The time at which the connector pipeline was created.
*/
public val createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTimestamp
/**
* The connector pipeline's ARN.
*/
public val mediaPipelineArn: kotlin.String? = builder.mediaPipelineArn
/**
* The connector pipeline's ID.
*/
public val mediaPipelineId: kotlin.String? = builder.mediaPipelineId
/**
* The connector pipeline's data sinks.
*/
public val sinks: List? = builder.sinks
/**
* The connector pipeline's data sources.
*/
public val sources: List? = builder.sources
/**
* The connector pipeline's status.
*/
public val status: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipelineStatus? = builder.status
/**
* The time at which the connector pipeline was last updated.
*/
public val updatedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedTimestamp
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaLiveConnectorPipeline = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MediaLiveConnectorPipeline(")
append("createdTimestamp=$createdTimestamp,")
append("mediaPipelineArn=$mediaPipelineArn,")
append("mediaPipelineId=$mediaPipelineId,")
append("sinks=$sinks,")
append("sources=$sources,")
append("status=$status,")
append("updatedTimestamp=$updatedTimestamp")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdTimestamp?.hashCode() ?: 0
result = 31 * result + (mediaPipelineArn?.hashCode() ?: 0)
result = 31 * result + (mediaPipelineId?.hashCode() ?: 0)
result = 31 * result + (sinks?.hashCode() ?: 0)
result = 31 * result + (sources?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (updatedTimestamp?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as MediaLiveConnectorPipeline
if (createdTimestamp != other.createdTimestamp) return false
if (mediaPipelineArn != other.mediaPipelineArn) return false
if (mediaPipelineId != other.mediaPipelineId) return false
if (sinks != other.sinks) return false
if (sources != other.sources) return false
if (status != other.status) return false
if (updatedTimestamp != other.updatedTimestamp) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaLiveConnectorPipeline = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time at which the connector pipeline was created.
*/
public var createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The connector pipeline's ARN.
*/
public var mediaPipelineArn: kotlin.String? = null
/**
* The connector pipeline's ID.
*/
public var mediaPipelineId: kotlin.String? = null
/**
* The connector pipeline's data sinks.
*/
public var sinks: List? = null
/**
* The connector pipeline's data sources.
*/
public var sources: List? = null
/**
* The connector pipeline's status.
*/
public var status: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipelineStatus? = null
/**
* The time at which the connector pipeline was last updated.
*/
public var updatedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaLiveConnectorPipeline) : this() {
this.createdTimestamp = x.createdTimestamp
this.mediaPipelineArn = x.mediaPipelineArn
this.mediaPipelineId = x.mediaPipelineId
this.sinks = x.sinks
this.sources = x.sources
this.status = x.status
this.updatedTimestamp = x.updatedTimestamp
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaLiveConnectorPipeline = MediaLiveConnectorPipeline(this)
internal fun correctErrors(): Builder {
return this
}
}
}