commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaInsightsPipelineElementStatus.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chimesdkmediapipelines.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The status of the pipeline element.
*/
public class MediaInsightsPipelineElementStatus private constructor(builder: Builder) {
/**
* The element's status.
*/
public val status: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipelineElementStatus? = builder.status
/**
* The type of status.
*/
public val type: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaInsightsPipelineConfigurationElementType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaInsightsPipelineElementStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MediaInsightsPipelineElementStatus(")
append("status=$status,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = status?.hashCode() ?: 0
result = 31 * result + (type?.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 MediaInsightsPipelineElementStatus
if (status != other.status) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaInsightsPipelineElementStatus = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The element's status.
*/
public var status: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipelineElementStatus? = null
/**
* The type of status.
*/
public var type: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaInsightsPipelineConfigurationElementType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaInsightsPipelineElementStatus) : this() {
this.status = x.status
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaInsightsPipelineElementStatus = MediaInsightsPipelineElementStatus(this)
internal fun correctErrors(): Builder {
return this
}
}
}