All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.medialive.model.BatchUpdateScheduleResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.medialive.model



/**
 * Placeholder documentation for BatchUpdateScheduleResponse
 */
public class BatchUpdateScheduleResponse private constructor(builder: Builder) {
    /**
     * Schedule actions created in the schedule.
     */
    public val creates: aws.sdk.kotlin.services.medialive.model.BatchScheduleActionCreateResult? = builder.creates
    /**
     * Schedule actions deleted from the schedule.
     */
    public val deletes: aws.sdk.kotlin.services.medialive.model.BatchScheduleActionDeleteResult? = builder.deletes

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.BatchUpdateScheduleResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("BatchUpdateScheduleResponse(")
        append("creates=$creates,")
        append("deletes=$deletes")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = creates?.hashCode() ?: 0
        result = 31 * result + (deletes?.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 BatchUpdateScheduleResponse

        if (creates != other.creates) return false
        if (deletes != other.deletes) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.BatchUpdateScheduleResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * Schedule actions created in the schedule.
         */
        public var creates: aws.sdk.kotlin.services.medialive.model.BatchScheduleActionCreateResult? = null
        /**
         * Schedule actions deleted from the schedule.
         */
        public var deletes: aws.sdk.kotlin.services.medialive.model.BatchScheduleActionDeleteResult? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.BatchUpdateScheduleResponse) : this() {
            this.creates = x.creates
            this.deletes = x.deletes
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.medialive.model.BatchUpdateScheduleResponse = BatchUpdateScheduleResponse(this)

        /**
         * construct an [aws.sdk.kotlin.services.medialive.model.BatchScheduleActionCreateResult] inside the given [block]
         */
        public fun creates(block: aws.sdk.kotlin.services.medialive.model.BatchScheduleActionCreateResult.Builder.() -> kotlin.Unit) {
            this.creates = aws.sdk.kotlin.services.medialive.model.BatchScheduleActionCreateResult.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.medialive.model.BatchScheduleActionDeleteResult] inside the given [block]
         */
        public fun deletes(block: aws.sdk.kotlin.services.medialive.model.BatchScheduleActionDeleteResult.Builder.() -> kotlin.Unit) {
            this.deletes = aws.sdk.kotlin.services.medialive.model.BatchScheduleActionDeleteResult.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy