commonMain.aws.sdk.kotlin.services.mediapackage.model.IngestEndpoint.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mediapackage-jvm Show documentation
Show all versions of mediapackage-jvm Show documentation
The AWS SDK for Kotlin client for MediaPackage
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediapackage.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An endpoint for ingesting source content for a Channel.
*/
public class IngestEndpoint private constructor(builder: Builder) {
/**
* The system generated unique identifier for the IngestEndpoint
*/
public val id: kotlin.String? = builder.id
/**
* The system generated password for ingest authentication.
*/
public val password: kotlin.String? = builder.password
/**
* The ingest URL to which the source stream should be sent.
*/
public val url: kotlin.String? = builder.url
/**
* The system generated username for ingest authentication.
*/
public val username: kotlin.String? = builder.username
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediapackage.model.IngestEndpoint = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("IngestEndpoint(")
append("id=$id,")
append("password=*** Sensitive Data Redacted ***,")
append("url=$url,")
append("username=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = id?.hashCode() ?: 0
result = 31 * result + (password?.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 IngestEndpoint
if (id != other.id) return false
if (password != other.password) 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.mediapackage.model.IngestEndpoint = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The system generated unique identifier for the IngestEndpoint
*/
public var id: kotlin.String? = null
/**
* The system generated password for ingest authentication.
*/
public var password: kotlin.String? = null
/**
* The ingest URL to which the source stream should be sent.
*/
public var url: kotlin.String? = null
/**
* The system generated username for ingest authentication.
*/
public var username: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediapackage.model.IngestEndpoint) : this() {
this.id = x.id
this.password = x.password
this.url = x.url
this.username = x.username
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediapackage.model.IngestEndpoint = IngestEndpoint(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy