
commonMain.aws.sdk.kotlin.services.medialive.model.Channel.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Placeholder documentation for Channel
*/
public class Channel private constructor(builder: Builder) {
/**
* The unique arn of the channel.
*/
public val arn: kotlin.String? = builder.arn
/**
* Specification of CDI inputs for this channel
*/
public val cdiInputSpecification: aws.sdk.kotlin.services.medialive.model.CdiInputSpecification? = builder.cdiInputSpecification
/**
* The class for this channel. STANDARD for a channel with two pipelines or SINGLE_PIPELINE for a channel with one pipeline.
*/
public val channelClass: aws.sdk.kotlin.services.medialive.model.ChannelClass? = builder.channelClass
/**
* A list of destinations of the channel. For UDP outputs, there is one destination per output. For other types (HLS, for example), there is one destination per packager.
*/
public val destinations: List? = builder.destinations
/**
* The endpoints where outgoing connections initiate from
*/
public val egressEndpoints: List? = builder.egressEndpoints
/**
* Encoder Settings
*/
public val encoderSettings: aws.sdk.kotlin.services.medialive.model.EncoderSettings? = builder.encoderSettings
/**
* The unique id of the channel.
*/
public val id: kotlin.String? = builder.id
/**
* List of input attachments for channel.
*/
public val inputAttachments: List? = builder.inputAttachments
/**
* Specification of network and file inputs for this channel
*/
public val inputSpecification: aws.sdk.kotlin.services.medialive.model.InputSpecification? = builder.inputSpecification
/**
* The log level being written to CloudWatch Logs.
*/
public val logLevel: aws.sdk.kotlin.services.medialive.model.LogLevel? = builder.logLevel
/**
* Maintenance settings for this channel.
*/
public val maintenance: aws.sdk.kotlin.services.medialive.model.MaintenanceStatus? = builder.maintenance
/**
* The name of the channel. (user-mutable)
*/
public val name: kotlin.String? = builder.name
/**
* Runtime details for the pipelines of a running channel.
*/
public val pipelineDetails: List? = builder.pipelineDetails
/**
* The number of currently healthy pipelines.
*/
public val pipelinesRunningCount: kotlin.Int = builder.pipelinesRunningCount
/**
* The Amazon Resource Name (ARN) of the role assumed when running the Channel.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* Placeholder documentation for ChannelState
*/
public val state: aws.sdk.kotlin.services.medialive.model.ChannelState? = builder.state
/**
* A collection of key-value pairs.
*/
public val tags: Map? = builder.tags
/**
* Settings for VPC output
*/
public val vpc: aws.sdk.kotlin.services.medialive.model.VpcOutputSettingsDescription? = builder.vpc
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.Channel = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Channel(")
append("arn=$arn,")
append("cdiInputSpecification=$cdiInputSpecification,")
append("channelClass=$channelClass,")
append("destinations=$destinations,")
append("egressEndpoints=$egressEndpoints,")
append("encoderSettings=$encoderSettings,")
append("id=$id,")
append("inputAttachments=$inputAttachments,")
append("inputSpecification=$inputSpecification,")
append("logLevel=$logLevel,")
append("maintenance=$maintenance,")
append("name=$name,")
append("pipelineDetails=$pipelineDetails,")
append("pipelinesRunningCount=$pipelinesRunningCount,")
append("roleArn=$roleArn,")
append("state=$state,")
append("tags=$tags,")
append("vpc=$vpc")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (cdiInputSpecification?.hashCode() ?: 0)
result = 31 * result + (channelClass?.hashCode() ?: 0)
result = 31 * result + (destinations?.hashCode() ?: 0)
result = 31 * result + (egressEndpoints?.hashCode() ?: 0)
result = 31 * result + (encoderSettings?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (inputAttachments?.hashCode() ?: 0)
result = 31 * result + (inputSpecification?.hashCode() ?: 0)
result = 31 * result + (logLevel?.hashCode() ?: 0)
result = 31 * result + (maintenance?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (pipelineDetails?.hashCode() ?: 0)
result = 31 * result + (pipelinesRunningCount)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (state?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (vpc?.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 Channel
if (arn != other.arn) return false
if (cdiInputSpecification != other.cdiInputSpecification) return false
if (channelClass != other.channelClass) return false
if (destinations != other.destinations) return false
if (egressEndpoints != other.egressEndpoints) return false
if (encoderSettings != other.encoderSettings) return false
if (id != other.id) return false
if (inputAttachments != other.inputAttachments) return false
if (inputSpecification != other.inputSpecification) return false
if (logLevel != other.logLevel) return false
if (maintenance != other.maintenance) return false
if (name != other.name) return false
if (pipelineDetails != other.pipelineDetails) return false
if (pipelinesRunningCount != other.pipelinesRunningCount) return false
if (roleArn != other.roleArn) return false
if (state != other.state) return false
if (tags != other.tags) return false
if (vpc != other.vpc) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.Channel = Builder(this).apply(block).build()
public class Builder {
/**
* The unique arn of the channel.
*/
public var arn: kotlin.String? = null
/**
* Specification of CDI inputs for this channel
*/
public var cdiInputSpecification: aws.sdk.kotlin.services.medialive.model.CdiInputSpecification? = null
/**
* The class for this channel. STANDARD for a channel with two pipelines or SINGLE_PIPELINE for a channel with one pipeline.
*/
public var channelClass: aws.sdk.kotlin.services.medialive.model.ChannelClass? = null
/**
* A list of destinations of the channel. For UDP outputs, there is one destination per output. For other types (HLS, for example), there is one destination per packager.
*/
public var destinations: List? = null
/**
* The endpoints where outgoing connections initiate from
*/
public var egressEndpoints: List? = null
/**
* Encoder Settings
*/
public var encoderSettings: aws.sdk.kotlin.services.medialive.model.EncoderSettings? = null
/**
* The unique id of the channel.
*/
public var id: kotlin.String? = null
/**
* List of input attachments for channel.
*/
public var inputAttachments: List? = null
/**
* Specification of network and file inputs for this channel
*/
public var inputSpecification: aws.sdk.kotlin.services.medialive.model.InputSpecification? = null
/**
* The log level being written to CloudWatch Logs.
*/
public var logLevel: aws.sdk.kotlin.services.medialive.model.LogLevel? = null
/**
* Maintenance settings for this channel.
*/
public var maintenance: aws.sdk.kotlin.services.medialive.model.MaintenanceStatus? = null
/**
* The name of the channel. (user-mutable)
*/
public var name: kotlin.String? = null
/**
* Runtime details for the pipelines of a running channel.
*/
public var pipelineDetails: List? = null
/**
* The number of currently healthy pipelines.
*/
public var pipelinesRunningCount: kotlin.Int = 0
/**
* The Amazon Resource Name (ARN) of the role assumed when running the Channel.
*/
public var roleArn: kotlin.String? = null
/**
* Placeholder documentation for ChannelState
*/
public var state: aws.sdk.kotlin.services.medialive.model.ChannelState? = null
/**
* A collection of key-value pairs.
*/
public var tags: Map? = null
/**
* Settings for VPC output
*/
public var vpc: aws.sdk.kotlin.services.medialive.model.VpcOutputSettingsDescription? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.Channel) : this() {
this.arn = x.arn
this.cdiInputSpecification = x.cdiInputSpecification
this.channelClass = x.channelClass
this.destinations = x.destinations
this.egressEndpoints = x.egressEndpoints
this.encoderSettings = x.encoderSettings
this.id = x.id
this.inputAttachments = x.inputAttachments
this.inputSpecification = x.inputSpecification
this.logLevel = x.logLevel
this.maintenance = x.maintenance
this.name = x.name
this.pipelineDetails = x.pipelineDetails
this.pipelinesRunningCount = x.pipelinesRunningCount
this.roleArn = x.roleArn
this.state = x.state
this.tags = x.tags
this.vpc = x.vpc
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.Channel = Channel(this)
/**
* construct an [aws.sdk.kotlin.services.medialive.model.CdiInputSpecification] inside the given [block]
*/
public fun cdiInputSpecification(block: aws.sdk.kotlin.services.medialive.model.CdiInputSpecification.Builder.() -> kotlin.Unit) {
this.cdiInputSpecification = aws.sdk.kotlin.services.medialive.model.CdiInputSpecification.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.medialive.model.EncoderSettings] inside the given [block]
*/
public fun encoderSettings(block: aws.sdk.kotlin.services.medialive.model.EncoderSettings.Builder.() -> kotlin.Unit) {
this.encoderSettings = aws.sdk.kotlin.services.medialive.model.EncoderSettings.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.medialive.model.InputSpecification] inside the given [block]
*/
public fun inputSpecification(block: aws.sdk.kotlin.services.medialive.model.InputSpecification.Builder.() -> kotlin.Unit) {
this.inputSpecification = aws.sdk.kotlin.services.medialive.model.InputSpecification.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.medialive.model.MaintenanceStatus] inside the given [block]
*/
public fun maintenance(block: aws.sdk.kotlin.services.medialive.model.MaintenanceStatus.Builder.() -> kotlin.Unit) {
this.maintenance = aws.sdk.kotlin.services.medialive.model.MaintenanceStatus.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.medialive.model.VpcOutputSettingsDescription] inside the given [block]
*/
public fun vpc(block: aws.sdk.kotlin.services.medialive.model.VpcOutputSettingsDescription.Builder.() -> kotlin.Unit) {
this.vpc = aws.sdk.kotlin.services.medialive.model.VpcOutputSettingsDescription.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy