
commonMain.aws.sdk.kotlin.services.medialive.model.InputDestination.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* The settings for a PUSH type input.
*/
public class InputDestination private constructor(builder: Builder) {
/**
* The system-generated static IP address of endpoint. It remains fixed for the lifetime of the input.
*/
public val ip: kotlin.String? = builder.ip
/**
* The port number for the input.
*/
public val port: kotlin.String? = builder.port
/**
* This represents the endpoint that the customer stream will be pushed to.
*/
public val url: kotlin.String? = builder.url
/**
* The properties for a VPC type input destination.
*/
public val vpc: aws.sdk.kotlin.services.medialive.model.InputDestinationVpc? = builder.vpc
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.InputDestination = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InputDestination(")
append("ip=$ip,")
append("port=$port,")
append("url=$url,")
append("vpc=$vpc")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = ip?.hashCode() ?: 0
result = 31 * result + (port?.hashCode() ?: 0)
result = 31 * result + (url?.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 InputDestination
if (ip != other.ip) return false
if (port != other.port) return false
if (url != other.url) return false
if (vpc != other.vpc) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.InputDestination = Builder(this).apply(block).build()
public class Builder {
/**
* The system-generated static IP address of endpoint. It remains fixed for the lifetime of the input.
*/
public var ip: kotlin.String? = null
/**
* The port number for the input.
*/
public var port: kotlin.String? = null
/**
* This represents the endpoint that the customer stream will be pushed to.
*/
public var url: kotlin.String? = null
/**
* The properties for a VPC type input destination.
*/
public var vpc: aws.sdk.kotlin.services.medialive.model.InputDestinationVpc? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.InputDestination) : this() {
this.ip = x.ip
this.port = x.port
this.url = x.url
this.vpc = x.vpc
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.InputDestination = InputDestination(this)
/**
* construct an [aws.sdk.kotlin.services.medialive.model.InputDestinationVpc] inside the given [block]
*/
public fun vpc(block: aws.sdk.kotlin.services.medialive.model.InputDestinationVpc.Builder.() -> kotlin.Unit) {
this.vpc = aws.sdk.kotlin.services.medialive.model.InputDestinationVpc.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy