commonMain.aws.sdk.kotlin.services.mediapackage.model.Authorization.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
/**
* CDN Authorization credentials
*/
public class Authorization private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) for the secret in Secrets Manager that your Content Distribution Network (CDN) uses for authorization to access your endpoint.
*/
public val cdnIdentifierSecret: kotlin.String? = builder.cdnIdentifierSecret
/**
* The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to communicate with AWS Secrets Manager.
*/
public val secretsRoleArn: kotlin.String? = builder.secretsRoleArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediapackage.model.Authorization = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Authorization(")
append("cdnIdentifierSecret=$cdnIdentifierSecret,")
append("secretsRoleArn=$secretsRoleArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cdnIdentifierSecret?.hashCode() ?: 0
result = 31 * result + (secretsRoleArn?.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 Authorization
if (cdnIdentifierSecret != other.cdnIdentifierSecret) return false
if (secretsRoleArn != other.secretsRoleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediapackage.model.Authorization = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) for the secret in Secrets Manager that your Content Distribution Network (CDN) uses for authorization to access your endpoint.
*/
public var cdnIdentifierSecret: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to communicate with AWS Secrets Manager.
*/
public var secretsRoleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediapackage.model.Authorization) : this() {
this.cdnIdentifierSecret = x.cdnIdentifierSecret
this.secretsRoleArn = x.secretsRoleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediapackage.model.Authorization = Authorization(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy