All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.medialive.model.InputLocation.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.medialive.model



/**
 * Input Location
 */
public class InputLocation private constructor(builder: Builder) {
    /**
     * key used to extract the password from EC2 Parameter store
     */
    public val passwordParam: kotlin.String? = builder.passwordParam
    /**
     * Uniform Resource Identifier - This should be a path to a file accessible to the Live system (eg. a http:// URI) depending on the output type. For example, a RTMP destination should have a uri simliar to: "rtmp://fmsserver/live".
     */
    public val uri: kotlin.String? = builder.uri
    /**
     * Documentation update needed
     */
    public val username: kotlin.String? = builder.username

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.InputLocation = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("InputLocation(")
        append("passwordParam=$passwordParam,")
        append("uri=$uri,")
        append("username=$username")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = passwordParam?.hashCode() ?: 0
        result = 31 * result + (uri?.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 InputLocation

        if (passwordParam != other.passwordParam) return false
        if (uri != other.uri) return false
        if (username != other.username) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.InputLocation = Builder(this).apply(block).build()

    public class Builder {
        /**
         * key used to extract the password from EC2 Parameter store
         */
        public var passwordParam: kotlin.String? = null
        /**
         * Uniform Resource Identifier - This should be a path to a file accessible to the Live system (eg. a http:// URI) depending on the output type. For example, a RTMP destination should have a uri simliar to: "rtmp://fmsserver/live".
         */
        public var uri: kotlin.String? = null
        /**
         * Documentation update needed
         */
        public var username: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.InputLocation) : this() {
            this.passwordParam = x.passwordParam
            this.uri = x.uri
            this.username = x.username
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.medialive.model.InputLocation = InputLocation(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy