commonMain.aws.sdk.kotlin.services.mediapackage.model.RotateIngestEndpointCredentialsResponse.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediapackage.model
import aws.smithy.kotlin.runtime.SdkDsl
public class RotateIngestEndpointCredentialsResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) assigned to the Channel.
*/
public val arn: kotlin.String? = builder.arn
/**
* The date and time the Channel was created.
*/
public val createdAt: kotlin.String? = builder.createdAt
/**
* A short text description of the Channel.
*/
public val description: kotlin.String? = builder.description
/**
* Configure egress access logging.
*/
public val egressAccessLogs: aws.sdk.kotlin.services.mediapackage.model.EgressAccessLogs? = builder.egressAccessLogs
/**
* An HTTP Live Streaming (HLS) ingest resource configuration.
*/
public val hlsIngest: aws.sdk.kotlin.services.mediapackage.model.HlsIngest? = builder.hlsIngest
/**
* The ID of the Channel.
*/
public val id: kotlin.String? = builder.id
/**
* Configure ingress access logging.
*/
public val ingressAccessLogs: aws.sdk.kotlin.services.mediapackage.model.IngressAccessLogs? = builder.ingressAccessLogs
/**
* 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.mediapackage.model.RotateIngestEndpointCredentialsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RotateIngestEndpointCredentialsResponse(")
append("arn=$arn,")
append("createdAt=$createdAt,")
append("description=$description,")
append("egressAccessLogs=$egressAccessLogs,")
append("hlsIngest=$hlsIngest,")
append("id=$id,")
append("ingressAccessLogs=$ingressAccessLogs,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (createdAt?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (egressAccessLogs?.hashCode() ?: 0)
result = 31 * result + (hlsIngest?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (ingressAccessLogs?.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 RotateIngestEndpointCredentialsResponse
if (arn != other.arn) return false
if (createdAt != other.createdAt) return false
if (description != other.description) return false
if (egressAccessLogs != other.egressAccessLogs) return false
if (hlsIngest != other.hlsIngest) return false
if (id != other.id) return false
if (ingressAccessLogs != other.ingressAccessLogs) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediapackage.model.RotateIngestEndpointCredentialsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) assigned to the Channel.
*/
public var arn: kotlin.String? = null
/**
* The date and time the Channel was created.
*/
public var createdAt: kotlin.String? = null
/**
* A short text description of the Channel.
*/
public var description: kotlin.String? = null
/**
* Configure egress access logging.
*/
public var egressAccessLogs: aws.sdk.kotlin.services.mediapackage.model.EgressAccessLogs? = null
/**
* An HTTP Live Streaming (HLS) ingest resource configuration.
*/
public var hlsIngest: aws.sdk.kotlin.services.mediapackage.model.HlsIngest? = null
/**
* The ID of the Channel.
*/
public var id: kotlin.String? = null
/**
* Configure ingress access logging.
*/
public var ingressAccessLogs: aws.sdk.kotlin.services.mediapackage.model.IngressAccessLogs? = 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.mediapackage.model.RotateIngestEndpointCredentialsResponse) : this() {
this.arn = x.arn
this.createdAt = x.createdAt
this.description = x.description
this.egressAccessLogs = x.egressAccessLogs
this.hlsIngest = x.hlsIngest
this.id = x.id
this.ingressAccessLogs = x.ingressAccessLogs
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediapackage.model.RotateIngestEndpointCredentialsResponse = RotateIngestEndpointCredentialsResponse(this)
/**
* construct an [aws.sdk.kotlin.services.mediapackage.model.EgressAccessLogs] inside the given [block]
*/
public fun egressAccessLogs(block: aws.sdk.kotlin.services.mediapackage.model.EgressAccessLogs.Builder.() -> kotlin.Unit) {
this.egressAccessLogs = aws.sdk.kotlin.services.mediapackage.model.EgressAccessLogs.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mediapackage.model.HlsIngest] inside the given [block]
*/
public fun hlsIngest(block: aws.sdk.kotlin.services.mediapackage.model.HlsIngest.Builder.() -> kotlin.Unit) {
this.hlsIngest = aws.sdk.kotlin.services.mediapackage.model.HlsIngest.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mediapackage.model.IngressAccessLogs] inside the given [block]
*/
public fun ingressAccessLogs(block: aws.sdk.kotlin.services.mediapackage.model.IngressAccessLogs.Builder.() -> kotlin.Unit) {
this.ingressAccessLogs = aws.sdk.kotlin.services.mediapackage.model.IngressAccessLogs.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}