
commonMain.aws.sdk.kotlin.services.medialive.model.OutputDestinationSettings.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Placeholder documentation for OutputDestinationSettings
*/
public class OutputDestinationSettings private constructor(builder: Builder) {
/**
* key used to extract the password from EC2 Parameter store
*/
public val passwordParam: kotlin.String? = builder.passwordParam
/**
* Stream name for RTMP destinations (URLs of type rtmp://)
*/
public val streamName: kotlin.String? = builder.streamName
/**
* A URL specifying a destination
*/
public val url: kotlin.String? = builder.url
/**
* username for destination
*/
public val username: kotlin.String? = builder.username
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.OutputDestinationSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("OutputDestinationSettings(")
append("passwordParam=$passwordParam,")
append("streamName=$streamName,")
append("url=$url,")
append("username=$username")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = passwordParam?.hashCode() ?: 0
result = 31 * result + (streamName?.hashCode() ?: 0)
result = 31 * result + (url?.hashCode() ?: 0)
result = 31 * result + (username?.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 OutputDestinationSettings
if (passwordParam != other.passwordParam) return false
if (streamName != other.streamName) return false
if (url != other.url) return false
if (username != other.username) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.OutputDestinationSettings = Builder(this).apply(block).build()
public class Builder {
/**
* key used to extract the password from EC2 Parameter store
*/
public var passwordParam: kotlin.String? = null
/**
* Stream name for RTMP destinations (URLs of type rtmp://)
*/
public var streamName: kotlin.String? = null
/**
* A URL specifying a destination
*/
public var url: kotlin.String? = null
/**
* username for destination
*/
public var username: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.OutputDestinationSettings) : this() {
this.passwordParam = x.passwordParam
this.streamName = x.streamName
this.url = x.url
this.username = x.username
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.OutputDestinationSettings = OutputDestinationSettings(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy