
commonMain.aws.sdk.kotlin.services.medialive.model.Multiplex.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* The multiplex object.
*/
public class Multiplex private constructor(builder: Builder) {
/**
* The unique arn of the multiplex.
*/
public val arn: kotlin.String? = builder.arn
/**
* A list of availability zones for the multiplex.
*/
public val availabilityZones: List? = builder.availabilityZones
/**
* A list of the multiplex output destinations.
*/
public val destinations: List? = builder.destinations
/**
* The unique id of the multiplex.
*/
public val id: kotlin.String? = builder.id
/**
* Configuration for a multiplex event.
*/
public val multiplexSettings: aws.sdk.kotlin.services.medialive.model.MultiplexSettings? = builder.multiplexSettings
/**
* The name of the multiplex.
*/
public val name: kotlin.String? = builder.name
/**
* The number of currently healthy pipelines.
*/
public val pipelinesRunningCount: kotlin.Int = builder.pipelinesRunningCount
/**
* The number of programs in the multiplex.
*/
public val programCount: kotlin.Int = builder.programCount
/**
* The current state of the multiplex.
*/
public val state: aws.sdk.kotlin.services.medialive.model.MultiplexState? = builder.state
/**
* A collection of key-value pairs.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.Multiplex = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Multiplex(")
append("arn=$arn,")
append("availabilityZones=$availabilityZones,")
append("destinations=$destinations,")
append("id=$id,")
append("multiplexSettings=$multiplexSettings,")
append("name=$name,")
append("pipelinesRunningCount=$pipelinesRunningCount,")
append("programCount=$programCount,")
append("state=$state,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (availabilityZones?.hashCode() ?: 0)
result = 31 * result + (destinations?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (multiplexSettings?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (pipelinesRunningCount)
result = 31 * result + (programCount)
result = 31 * result + (state?.hashCode() ?: 0)
result = 31 * result + (tags?.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 Multiplex
if (arn != other.arn) return false
if (availabilityZones != other.availabilityZones) return false
if (destinations != other.destinations) return false
if (id != other.id) return false
if (multiplexSettings != other.multiplexSettings) return false
if (name != other.name) return false
if (pipelinesRunningCount != other.pipelinesRunningCount) return false
if (programCount != other.programCount) return false
if (state != other.state) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.Multiplex = Builder(this).apply(block).build()
public class Builder {
/**
* The unique arn of the multiplex.
*/
public var arn: kotlin.String? = null
/**
* A list of availability zones for the multiplex.
*/
public var availabilityZones: List? = null
/**
* A list of the multiplex output destinations.
*/
public var destinations: List? = null
/**
* The unique id of the multiplex.
*/
public var id: kotlin.String? = null
/**
* Configuration for a multiplex event.
*/
public var multiplexSettings: aws.sdk.kotlin.services.medialive.model.MultiplexSettings? = null
/**
* The name of the multiplex.
*/
public var name: kotlin.String? = null
/**
* The number of currently healthy pipelines.
*/
public var pipelinesRunningCount: kotlin.Int = 0
/**
* The number of programs in the multiplex.
*/
public var programCount: kotlin.Int = 0
/**
* The current state of the multiplex.
*/
public var state: aws.sdk.kotlin.services.medialive.model.MultiplexState? = null
/**
* A collection of key-value pairs.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.Multiplex) : this() {
this.arn = x.arn
this.availabilityZones = x.availabilityZones
this.destinations = x.destinations
this.id = x.id
this.multiplexSettings = x.multiplexSettings
this.name = x.name
this.pipelinesRunningCount = x.pipelinesRunningCount
this.programCount = x.programCount
this.state = x.state
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.Multiplex = Multiplex(this)
/**
* construct an [aws.sdk.kotlin.services.medialive.model.MultiplexSettings] inside the given [block]
*/
public fun multiplexSettings(block: aws.sdk.kotlin.services.medialive.model.MultiplexSettings.Builder.() -> kotlin.Unit) {
this.multiplexSettings = aws.sdk.kotlin.services.medialive.model.MultiplexSettings.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy