commonMain.aws.sdk.kotlin.services.mediapackagevod.model.DescribePackagingConfigurationResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mediapackagevod-jvm Show documentation
Show all versions of mediapackagevod-jvm Show documentation
The AWS SDK for Kotlin client for MediaPackage Vod
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediapackagevod.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribePackagingConfigurationResponse private constructor(builder: Builder) {
/**
* The ARN of the PackagingConfiguration.
*/
public val arn: kotlin.String? = builder.arn
/**
* A CMAF packaging configuration.
*/
public val cmafPackage: aws.sdk.kotlin.services.mediapackagevod.model.CmafPackage? = builder.cmafPackage
/**
* The time the PackagingConfiguration 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.mediapackagevod.model.DashPackage? = builder.dashPackage
/**
* An HTTP Live Streaming (HLS) packaging configuration.
*/
public val hlsPackage: aws.sdk.kotlin.services.mediapackagevod.model.HlsPackage? = builder.hlsPackage
/**
* The ID of the PackagingConfiguration.
*/
public val id: kotlin.String? = builder.id
/**
* A Microsoft Smooth Streaming (MSS) PackagingConfiguration.
*/
public val mssPackage: aws.sdk.kotlin.services.mediapackagevod.model.MssPackage? = builder.mssPackage
/**
* The ID of a PackagingGroup.
*/
public val packagingGroupId: kotlin.String? = builder.packagingGroupId
/**
* A collection of tags associated with a resource
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediapackagevod.model.DescribePackagingConfigurationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribePackagingConfigurationResponse(")
append("arn=$arn,")
append("cmafPackage=$cmafPackage,")
append("createdAt=$createdAt,")
append("dashPackage=$dashPackage,")
append("hlsPackage=$hlsPackage,")
append("id=$id,")
append("mssPackage=$mssPackage,")
append("packagingGroupId=$packagingGroupId,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (cmafPackage?.hashCode() ?: 0)
result = 31 * result + (createdAt?.hashCode() ?: 0)
result = 31 * result + (dashPackage?.hashCode() ?: 0)
result = 31 * result + (hlsPackage?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (mssPackage?.hashCode() ?: 0)
result = 31 * result + (packagingGroupId?.hashCode() ?: 0)
result = 31 * result + (tags?.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 DescribePackagingConfigurationResponse
if (arn != other.arn) return false
if (cmafPackage != other.cmafPackage) return false
if (createdAt != other.createdAt) return false
if (dashPackage != other.dashPackage) return false
if (hlsPackage != other.hlsPackage) return false
if (id != other.id) return false
if (mssPackage != other.mssPackage) return false
if (packagingGroupId != other.packagingGroupId) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediapackagevod.model.DescribePackagingConfigurationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN of the PackagingConfiguration.
*/
public var arn: kotlin.String? = null
/**
* A CMAF packaging configuration.
*/
public var cmafPackage: aws.sdk.kotlin.services.mediapackagevod.model.CmafPackage? = null
/**
* The time the PackagingConfiguration was created.
*/
public var createdAt: kotlin.String? = null
/**
* A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
*/
public var dashPackage: aws.sdk.kotlin.services.mediapackagevod.model.DashPackage? = null
/**
* An HTTP Live Streaming (HLS) packaging configuration.
*/
public var hlsPackage: aws.sdk.kotlin.services.mediapackagevod.model.HlsPackage? = null
/**
* The ID of the PackagingConfiguration.
*/
public var id: kotlin.String? = null
/**
* A Microsoft Smooth Streaming (MSS) PackagingConfiguration.
*/
public var mssPackage: aws.sdk.kotlin.services.mediapackagevod.model.MssPackage? = null
/**
* The ID of a PackagingGroup.
*/
public var packagingGroupId: kotlin.String? = null
/**
* A collection of tags associated with a resource
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediapackagevod.model.DescribePackagingConfigurationResponse) : this() {
this.arn = x.arn
this.cmafPackage = x.cmafPackage
this.createdAt = x.createdAt
this.dashPackage = x.dashPackage
this.hlsPackage = x.hlsPackage
this.id = x.id
this.mssPackage = x.mssPackage
this.packagingGroupId = x.packagingGroupId
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediapackagevod.model.DescribePackagingConfigurationResponse = DescribePackagingConfigurationResponse(this)
/**
* construct an [aws.sdk.kotlin.services.mediapackagevod.model.CmafPackage] inside the given [block]
*/
public fun cmafPackage(block: aws.sdk.kotlin.services.mediapackagevod.model.CmafPackage.Builder.() -> kotlin.Unit) {
this.cmafPackage = aws.sdk.kotlin.services.mediapackagevod.model.CmafPackage.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mediapackagevod.model.DashPackage] inside the given [block]
*/
public fun dashPackage(block: aws.sdk.kotlin.services.mediapackagevod.model.DashPackage.Builder.() -> kotlin.Unit) {
this.dashPackage = aws.sdk.kotlin.services.mediapackagevod.model.DashPackage.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mediapackagevod.model.HlsPackage] inside the given [block]
*/
public fun hlsPackage(block: aws.sdk.kotlin.services.mediapackagevod.model.HlsPackage.Builder.() -> kotlin.Unit) {
this.hlsPackage = aws.sdk.kotlin.services.mediapackagevod.model.HlsPackage.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mediapackagevod.model.MssPackage] inside the given [block]
*/
public fun mssPackage(block: aws.sdk.kotlin.services.mediapackagevod.model.MssPackage.Builder.() -> kotlin.Unit) {
this.mssPackage = aws.sdk.kotlin.services.mediapackagevod.model.MssPackage.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy