commonMain.aws.sdk.kotlin.services.mediapackage.model.OriginEndpoint.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 OriginEndpoint resource configuration.
*/
public class OriginEndpoint private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) assigned to the OriginEndpoint.
*/
public val arn: kotlin.String? = builder.arn
/**
* CDN Authorization credentials
*/
public val authorization: aws.sdk.kotlin.services.mediapackage.model.Authorization? = builder.authorization
/**
* The ID of the Channel the OriginEndpoint is associated with.
*/
public val channelId: kotlin.String? = builder.channelId
/**
* A Common Media Application Format (CMAF) packaging configuration.
*/
public val cmafPackage: aws.sdk.kotlin.services.mediapackage.model.CmafPackage? = builder.cmafPackage
/**
* The date and time the OriginEndpoint was created.
*/
public val createdAt: kotlin.String? = builder.createdAt
/**
* A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
*/
public val dashPackage: aws.sdk.kotlin.services.mediapackage.model.DashPackage? = builder.dashPackage
/**
* A short text description of the OriginEndpoint.
*/
public val description: kotlin.String? = builder.description
/**
* An HTTP Live Streaming (HLS) packaging configuration.
*/
public val hlsPackage: aws.sdk.kotlin.services.mediapackage.model.HlsPackage? = builder.hlsPackage
/**
* The ID of the OriginEndpoint.
*/
public val id: kotlin.String? = builder.id
/**
* A short string appended to the end of the OriginEndpoint URL.
*/
public val manifestName: kotlin.String? = builder.manifestName
/**
* A Microsoft Smooth Streaming (MSS) packaging configuration.
*/
public val mssPackage: aws.sdk.kotlin.services.mediapackage.model.MssPackage? = builder.mssPackage
/**
* Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination
*/
public val origination: aws.sdk.kotlin.services.mediapackage.model.Origination? = builder.origination
/**
* Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.
*/
public val startoverWindowSeconds: kotlin.Int? = builder.startoverWindowSeconds
/**
* A collection of tags associated with a resource
*/
public val tags: Map? = builder.tags
/**
* Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.
*/
public val timeDelaySeconds: kotlin.Int? = builder.timeDelaySeconds
/**
* The URL of the packaged OriginEndpoint for consumption.
*/
public val url: kotlin.String? = builder.url
/**
* A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.
*/
public val whitelist: List? = builder.whitelist
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediapackage.model.OriginEndpoint = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("OriginEndpoint(")
append("arn=$arn,")
append("authorization=$authorization,")
append("channelId=$channelId,")
append("cmafPackage=$cmafPackage,")
append("createdAt=$createdAt,")
append("dashPackage=$dashPackage,")
append("description=$description,")
append("hlsPackage=$hlsPackage,")
append("id=$id,")
append("manifestName=$manifestName,")
append("mssPackage=$mssPackage,")
append("origination=$origination,")
append("startoverWindowSeconds=$startoverWindowSeconds,")
append("tags=$tags,")
append("timeDelaySeconds=$timeDelaySeconds,")
append("url=$url,")
append("whitelist=$whitelist")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (authorization?.hashCode() ?: 0)
result = 31 * result + (channelId?.hashCode() ?: 0)
result = 31 * result + (cmafPackage?.hashCode() ?: 0)
result = 31 * result + (createdAt?.hashCode() ?: 0)
result = 31 * result + (dashPackage?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (hlsPackage?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (manifestName?.hashCode() ?: 0)
result = 31 * result + (mssPackage?.hashCode() ?: 0)
result = 31 * result + (origination?.hashCode() ?: 0)
result = 31 * result + (startoverWindowSeconds ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (timeDelaySeconds ?: 0)
result = 31 * result + (url?.hashCode() ?: 0)
result = 31 * result + (whitelist?.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 OriginEndpoint
if (arn != other.arn) return false
if (authorization != other.authorization) return false
if (channelId != other.channelId) return false
if (cmafPackage != other.cmafPackage) return false
if (createdAt != other.createdAt) return false
if (dashPackage != other.dashPackage) return false
if (description != other.description) return false
if (hlsPackage != other.hlsPackage) return false
if (id != other.id) return false
if (manifestName != other.manifestName) return false
if (mssPackage != other.mssPackage) return false
if (origination != other.origination) return false
if (startoverWindowSeconds != other.startoverWindowSeconds) return false
if (tags != other.tags) return false
if (timeDelaySeconds != other.timeDelaySeconds) return false
if (url != other.url) return false
if (whitelist != other.whitelist) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediapackage.model.OriginEndpoint = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) assigned to the OriginEndpoint.
*/
public var arn: kotlin.String? = null
/**
* CDN Authorization credentials
*/
public var authorization: aws.sdk.kotlin.services.mediapackage.model.Authorization? = null
/**
* The ID of the Channel the OriginEndpoint is associated with.
*/
public var channelId: kotlin.String? = null
/**
* A Common Media Application Format (CMAF) packaging configuration.
*/
public var cmafPackage: aws.sdk.kotlin.services.mediapackage.model.CmafPackage? = null
/**
* The date and time the OriginEndpoint was created.
*/
public var createdAt: kotlin.String? = null
/**
* A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
*/
public var dashPackage: aws.sdk.kotlin.services.mediapackage.model.DashPackage? = null
/**
* A short text description of the OriginEndpoint.
*/
public var description: kotlin.String? = null
/**
* An HTTP Live Streaming (HLS) packaging configuration.
*/
public var hlsPackage: aws.sdk.kotlin.services.mediapackage.model.HlsPackage? = null
/**
* The ID of the OriginEndpoint.
*/
public var id: kotlin.String? = null
/**
* A short string appended to the end of the OriginEndpoint URL.
*/
public var manifestName: kotlin.String? = null
/**
* A Microsoft Smooth Streaming (MSS) packaging configuration.
*/
public var mssPackage: aws.sdk.kotlin.services.mediapackage.model.MssPackage? = null
/**
* Control whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination
*/
public var origination: aws.sdk.kotlin.services.mediapackage.model.Origination? = null
/**
* Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.
*/
public var startoverWindowSeconds: kotlin.Int? = null
/**
* A collection of tags associated with a resource
*/
public var tags: Map? = null
/**
* Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.
*/
public var timeDelaySeconds: kotlin.Int? = null
/**
* The URL of the packaged OriginEndpoint for consumption.
*/
public var url: kotlin.String? = null
/**
* A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.
*/
public var whitelist: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediapackage.model.OriginEndpoint) : this() {
this.arn = x.arn
this.authorization = x.authorization
this.channelId = x.channelId
this.cmafPackage = x.cmafPackage
this.createdAt = x.createdAt
this.dashPackage = x.dashPackage
this.description = x.description
this.hlsPackage = x.hlsPackage
this.id = x.id
this.manifestName = x.manifestName
this.mssPackage = x.mssPackage
this.origination = x.origination
this.startoverWindowSeconds = x.startoverWindowSeconds
this.tags = x.tags
this.timeDelaySeconds = x.timeDelaySeconds
this.url = x.url
this.whitelist = x.whitelist
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediapackage.model.OriginEndpoint = OriginEndpoint(this)
/**
* construct an [aws.sdk.kotlin.services.mediapackage.model.Authorization] inside the given [block]
*/
public fun authorization(block: aws.sdk.kotlin.services.mediapackage.model.Authorization.Builder.() -> kotlin.Unit) {
this.authorization = aws.sdk.kotlin.services.mediapackage.model.Authorization.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mediapackage.model.CmafPackage] inside the given [block]
*/
public fun cmafPackage(block: aws.sdk.kotlin.services.mediapackage.model.CmafPackage.Builder.() -> kotlin.Unit) {
this.cmafPackage = aws.sdk.kotlin.services.mediapackage.model.CmafPackage.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mediapackage.model.DashPackage] inside the given [block]
*/
public fun dashPackage(block: aws.sdk.kotlin.services.mediapackage.model.DashPackage.Builder.() -> kotlin.Unit) {
this.dashPackage = aws.sdk.kotlin.services.mediapackage.model.DashPackage.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mediapackage.model.HlsPackage] inside the given [block]
*/
public fun hlsPackage(block: aws.sdk.kotlin.services.mediapackage.model.HlsPackage.Builder.() -> kotlin.Unit) {
this.hlsPackage = aws.sdk.kotlin.services.mediapackage.model.HlsPackage.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mediapackage.model.MssPackage] inside the given [block]
*/
public fun mssPackage(block: aws.sdk.kotlin.services.mediapackage.model.MssPackage.Builder.() -> kotlin.Unit) {
this.mssPackage = aws.sdk.kotlin.services.mediapackage.model.MssPackage.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy