commonMain.aws.sdk.kotlin.services.elastictranscoder.model.CreatePresetRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elastictranscoder-jvm Show documentation
Show all versions of elastictranscoder-jvm Show documentation
The AWS SDK for Kotlin client for Elastic Transcoder
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.elastictranscoder.model
/**
* The `CreatePresetRequest` structure.
*/
public class CreatePresetRequest private constructor(builder: Builder) {
/**
* A section of the request body that specifies the audio parameters.
*/
public val audio: aws.sdk.kotlin.services.elastictranscoder.model.AudioParameters? = builder.audio
/**
* The container type for the output file. Valid values include `flac`, `flv`, `fmp4`, `gif`, `mp3`, `mp4`, `mpg`, `mxf`, `oga`, `ogg`, `ts`, and `webm`.
*/
public val container: kotlin.String? = builder.container
/**
* A description of the preset.
*/
public val description: kotlin.String? = builder.description
/**
* The name of the preset. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.
*/
public val name: kotlin.String? = builder.name
/**
* A section of the request body that specifies the thumbnail parameters, if any.
*/
public val thumbnails: aws.sdk.kotlin.services.elastictranscoder.model.Thumbnails? = builder.thumbnails
/**
* A section of the request body that specifies the video parameters.
*/
public val video: aws.sdk.kotlin.services.elastictranscoder.model.VideoParameters? = builder.video
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.elastictranscoder.model.CreatePresetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreatePresetRequest(")
append("audio=$audio,")
append("container=$container,")
append("description=$description,")
append("name=$name,")
append("thumbnails=$thumbnails,")
append("video=$video")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = audio?.hashCode() ?: 0
result = 31 * result + (container?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (thumbnails?.hashCode() ?: 0)
result = 31 * result + (video?.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 CreatePresetRequest
if (audio != other.audio) return false
if (container != other.container) return false
if (description != other.description) return false
if (name != other.name) return false
if (thumbnails != other.thumbnails) return false
if (video != other.video) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.elastictranscoder.model.CreatePresetRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A section of the request body that specifies the audio parameters.
*/
public var audio: aws.sdk.kotlin.services.elastictranscoder.model.AudioParameters? = null
/**
* The container type for the output file. Valid values include `flac`, `flv`, `fmp4`, `gif`, `mp3`, `mp4`, `mpg`, `mxf`, `oga`, `ogg`, `ts`, and `webm`.
*/
public var container: kotlin.String? = null
/**
* A description of the preset.
*/
public var description: kotlin.String? = null
/**
* The name of the preset. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.
*/
public var name: kotlin.String? = null
/**
* A section of the request body that specifies the thumbnail parameters, if any.
*/
public var thumbnails: aws.sdk.kotlin.services.elastictranscoder.model.Thumbnails? = null
/**
* A section of the request body that specifies the video parameters.
*/
public var video: aws.sdk.kotlin.services.elastictranscoder.model.VideoParameters? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.elastictranscoder.model.CreatePresetRequest) : this() {
this.audio = x.audio
this.container = x.container
this.description = x.description
this.name = x.name
this.thumbnails = x.thumbnails
this.video = x.video
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.elastictranscoder.model.CreatePresetRequest = CreatePresetRequest(this)
/**
* construct an [aws.sdk.kotlin.services.elastictranscoder.model.AudioParameters] inside the given [block]
*/
public fun audio(block: aws.sdk.kotlin.services.elastictranscoder.model.AudioParameters.Builder.() -> kotlin.Unit) {
this.audio = aws.sdk.kotlin.services.elastictranscoder.model.AudioParameters.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.elastictranscoder.model.Thumbnails] inside the given [block]
*/
public fun thumbnails(block: aws.sdk.kotlin.services.elastictranscoder.model.Thumbnails.Builder.() -> kotlin.Unit) {
this.thumbnails = aws.sdk.kotlin.services.elastictranscoder.model.Thumbnails.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.elastictranscoder.model.VideoParameters] inside the given [block]
*/
public fun video(block: aws.sdk.kotlin.services.elastictranscoder.model.VideoParameters.Builder.() -> kotlin.Unit) {
this.video = aws.sdk.kotlin.services.elastictranscoder.model.VideoParameters.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy