
commonMain.aws.sdk.kotlin.services.mediaconvert.model.WarningGroup.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediaconvert.model
/**
* Contains any warning codes and their count for the job.
*/
public class WarningGroup private constructor(builder: Builder) {
/**
* Warning code that identifies a specific warning in the job. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html
*/
public val code: kotlin.Int? = builder.code
/**
* The number of times this warning occurred in the job.
*/
public val count: kotlin.Int? = builder.count
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediaconvert.model.WarningGroup = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("WarningGroup(")
append("code=$code,")
append("count=$count")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = code ?: 0
result = 31 * result + (count ?: 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 WarningGroup
if (code != other.code) return false
if (count != other.count) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediaconvert.model.WarningGroup = Builder(this).apply(block).build()
public class Builder {
/**
* Warning code that identifies a specific warning in the job. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html
*/
public var code: kotlin.Int? = null
/**
* The number of times this warning occurred in the job.
*/
public var count: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.WarningGroup) : this() {
this.code = x.code
this.count = x.count
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.WarningGroup = WarningGroup(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy