
commonMain.aws.sdk.kotlin.services.medialive.model.InputSourceRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Settings for for a PULL type input.
*/
public class InputSourceRequest private constructor(builder: Builder) {
/**
* The key used to extract the password from EC2 Parameter store.
*/
public val passwordParam: kotlin.String? = builder.passwordParam
/**
* This represents the customer's source URL where stream is pulled from.
*/
public val url: kotlin.String? = builder.url
/**
* The username for the input source.
*/
public val username: kotlin.String? = builder.username
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.InputSourceRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InputSourceRequest(")
append("passwordParam=$passwordParam,")
append("url=$url,")
append("username=$username")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = passwordParam?.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 InputSourceRequest
if (passwordParam != other.passwordParam) 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.InputSourceRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The key used to extract the password from EC2 Parameter store.
*/
public var passwordParam: kotlin.String? = null
/**
* This represents the customer's source URL where stream is pulled from.
*/
public var url: kotlin.String? = null
/**
* The username for the input source.
*/
public var username: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.InputSourceRequest) : this() {
this.passwordParam = x.passwordParam
this.url = x.url
this.username = x.username
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.InputSourceRequest = InputSourceRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy