
commonMain.aws.sdk.kotlin.services.medialive.model.InputAttachment.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Placeholder documentation for InputAttachment
*/
public class InputAttachment private constructor(builder: Builder) {
/**
* User-specified settings for defining what the conditions are for declaring the input unhealthy and failing over to a different input.
*/
public val automaticInputFailoverSettings: aws.sdk.kotlin.services.medialive.model.AutomaticInputFailoverSettings? = builder.automaticInputFailoverSettings
/**
* User-specified name for the attachment. This is required if the user wants to use this input in an input switch action.
*/
public val inputAttachmentName: kotlin.String? = builder.inputAttachmentName
/**
* The ID of the input
*/
public val inputId: kotlin.String? = builder.inputId
/**
* Settings of an input (caption selector, etc.)
*/
public val inputSettings: aws.sdk.kotlin.services.medialive.model.InputSettings? = builder.inputSettings
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.InputAttachment = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InputAttachment(")
append("automaticInputFailoverSettings=$automaticInputFailoverSettings,")
append("inputAttachmentName=$inputAttachmentName,")
append("inputId=$inputId,")
append("inputSettings=$inputSettings")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = automaticInputFailoverSettings?.hashCode() ?: 0
result = 31 * result + (inputAttachmentName?.hashCode() ?: 0)
result = 31 * result + (inputId?.hashCode() ?: 0)
result = 31 * result + (inputSettings?.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 InputAttachment
if (automaticInputFailoverSettings != other.automaticInputFailoverSettings) return false
if (inputAttachmentName != other.inputAttachmentName) return false
if (inputId != other.inputId) return false
if (inputSettings != other.inputSettings) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.InputAttachment = Builder(this).apply(block).build()
public class Builder {
/**
* User-specified settings for defining what the conditions are for declaring the input unhealthy and failing over to a different input.
*/
public var automaticInputFailoverSettings: aws.sdk.kotlin.services.medialive.model.AutomaticInputFailoverSettings? = null
/**
* User-specified name for the attachment. This is required if the user wants to use this input in an input switch action.
*/
public var inputAttachmentName: kotlin.String? = null
/**
* The ID of the input
*/
public var inputId: kotlin.String? = null
/**
* Settings of an input (caption selector, etc.)
*/
public var inputSettings: aws.sdk.kotlin.services.medialive.model.InputSettings? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.InputAttachment) : this() {
this.automaticInputFailoverSettings = x.automaticInputFailoverSettings
this.inputAttachmentName = x.inputAttachmentName
this.inputId = x.inputId
this.inputSettings = x.inputSettings
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.InputAttachment = InputAttachment(this)
/**
* construct an [aws.sdk.kotlin.services.medialive.model.AutomaticInputFailoverSettings] inside the given [block]
*/
public fun automaticInputFailoverSettings(block: aws.sdk.kotlin.services.medialive.model.AutomaticInputFailoverSettings.Builder.() -> kotlin.Unit) {
this.automaticInputFailoverSettings = aws.sdk.kotlin.services.medialive.model.AutomaticInputFailoverSettings.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.medialive.model.InputSettings] inside the given [block]
*/
public fun inputSettings(block: aws.sdk.kotlin.services.medialive.model.InputSettings.Builder.() -> kotlin.Unit) {
this.inputSettings = aws.sdk.kotlin.services.medialive.model.InputSettings.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy