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

commonMain.aws.sdk.kotlin.services.ssm.model.DescribeMaintenanceWindowScheduleResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.ssm.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeMaintenanceWindowScheduleResponse private constructor(builder: Builder) {
    /**
     * The token for the next set of items to return. (You use this token in the next call.)
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * Information about maintenance window executions scheduled for the specified time range.
     */
    public val scheduledWindowExecutions: List? = builder.scheduledWindowExecutions

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeMaintenanceWindowScheduleResponse(")
        append("nextToken=$nextToken,")
        append("scheduledWindowExecutions=$scheduledWindowExecutions")
        append(")")
    }

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

        if (nextToken != other.nextToken) return false
        if (scheduledWindowExecutions != other.scheduledWindowExecutions) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The token for the next set of items to return. (You use this token in the next call.)
         */
        public var nextToken: kotlin.String? = null
        /**
         * Information about maintenance window executions scheduled for the specified time range.
         */
        public var scheduledWindowExecutions: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.DescribeMaintenanceWindowScheduleResponse) : this() {
            this.nextToken = x.nextToken
            this.scheduledWindowExecutions = x.scheduledWindowExecutions
        }

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy