commonMain.aws.sdk.kotlin.services.mediapackagevod.model.CreateAssetRequest.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
/**
* A new MediaPackage VOD Asset configuration.
*/
public class CreateAssetRequest private constructor(builder: Builder) {
/**
* The unique identifier for the Asset.
*/
public val id: kotlin.String? = builder.id
/**
* The ID of the PackagingGroup for the Asset.
*/
public val packagingGroupId: kotlin.String? = builder.packagingGroupId
/**
* The resource ID to include in SPEKE key requests.
*/
public val resourceId: kotlin.String? = builder.resourceId
/**
* ARN of the source object in S3.
*/
public val sourceArn: kotlin.String? = builder.sourceArn
/**
* The IAM role ARN used to access the source S3 bucket.
*/
public val sourceRoleArn: kotlin.String? = builder.sourceRoleArn
/**
* 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.CreateAssetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateAssetRequest(")
append("id=$id,")
append("packagingGroupId=$packagingGroupId,")
append("resourceId=$resourceId,")
append("sourceArn=$sourceArn,")
append("sourceRoleArn=$sourceRoleArn,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = id?.hashCode() ?: 0
result = 31 * result + (packagingGroupId?.hashCode() ?: 0)
result = 31 * result + (resourceId?.hashCode() ?: 0)
result = 31 * result + (sourceArn?.hashCode() ?: 0)
result = 31 * result + (sourceRoleArn?.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 CreateAssetRequest
if (id != other.id) return false
if (packagingGroupId != other.packagingGroupId) return false
if (resourceId != other.resourceId) return false
if (sourceArn != other.sourceArn) return false
if (sourceRoleArn != other.sourceRoleArn) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediapackagevod.model.CreateAssetRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The unique identifier for the Asset.
*/
public var id: kotlin.String? = null
/**
* The ID of the PackagingGroup for the Asset.
*/
public var packagingGroupId: kotlin.String? = null
/**
* The resource ID to include in SPEKE key requests.
*/
public var resourceId: kotlin.String? = null
/**
* ARN of the source object in S3.
*/
public var sourceArn: kotlin.String? = null
/**
* The IAM role ARN used to access the source S3 bucket.
*/
public var sourceRoleArn: 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.CreateAssetRequest) : this() {
this.id = x.id
this.packagingGroupId = x.packagingGroupId
this.resourceId = x.resourceId
this.sourceArn = x.sourceArn
this.sourceRoleArn = x.sourceRoleArn
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediapackagevod.model.CreateAssetRequest = CreateAssetRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy