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

commonMain.aws.sdk.kotlin.services.ssm.model.UpdateMaintenanceWindowResponse.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 UpdateMaintenanceWindowResponse private constructor(builder: Builder) {
    /**
     * Whether targets must be registered with the maintenance window before tasks can be defined for those targets.
     */
    public val allowUnassociatedTargets: kotlin.Boolean = builder.allowUnassociatedTargets
    /**
     * The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.
     */
    public val cutoff: kotlin.Int = builder.cutoff
    /**
     * An optional description of the update.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The duration of the maintenance window in hours.
     */
    public val duration: kotlin.Int? = builder.duration
    /**
     * Whether the maintenance window is enabled.
     */
    public val enabled: kotlin.Boolean = builder.enabled
    /**
     * The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive. The maintenance window won't run after this specified time.
     */
    public val endDate: kotlin.String? = builder.endDate
    /**
     * The name of the maintenance window.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The schedule of the maintenance window in the form of a cron or rate expression.
     */
    public val schedule: kotlin.String? = builder.schedule
    /**
     * The number of days to wait to run a maintenance window after the scheduled cron expression date and time.
     */
    public val scheduleOffset: kotlin.Int? = builder.scheduleOffset
    /**
     * The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the [Time Zone Database](https://www.iana.org/time-zones) on the IANA website.
     */
    public val scheduleTimezone: kotlin.String? = builder.scheduleTimezone
    /**
     * The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active. The maintenance window won't run before this specified time.
     */
    public val startDate: kotlin.String? = builder.startDate
    /**
     * The ID of the created maintenance window.
     */
    public val windowId: kotlin.String? = builder.windowId

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateMaintenanceWindowResponse(")
        append("allowUnassociatedTargets=$allowUnassociatedTargets,")
        append("cutoff=$cutoff,")
        append("description=*** Sensitive Data Redacted ***,")
        append("duration=$duration,")
        append("enabled=$enabled,")
        append("endDate=$endDate,")
        append("name=$name,")
        append("schedule=$schedule,")
        append("scheduleOffset=$scheduleOffset,")
        append("scheduleTimezone=$scheduleTimezone,")
        append("startDate=$startDate,")
        append("windowId=$windowId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = allowUnassociatedTargets.hashCode()
        result = 31 * result + (cutoff)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (duration ?: 0)
        result = 31 * result + (enabled.hashCode())
        result = 31 * result + (endDate?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (schedule?.hashCode() ?: 0)
        result = 31 * result + (scheduleOffset ?: 0)
        result = 31 * result + (scheduleTimezone?.hashCode() ?: 0)
        result = 31 * result + (startDate?.hashCode() ?: 0)
        result = 31 * result + (windowId?.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 UpdateMaintenanceWindowResponse

        if (allowUnassociatedTargets != other.allowUnassociatedTargets) return false
        if (cutoff != other.cutoff) return false
        if (description != other.description) return false
        if (duration != other.duration) return false
        if (enabled != other.enabled) return false
        if (endDate != other.endDate) return false
        if (name != other.name) return false
        if (schedule != other.schedule) return false
        if (scheduleOffset != other.scheduleOffset) return false
        if (scheduleTimezone != other.scheduleTimezone) return false
        if (startDate != other.startDate) return false
        if (windowId != other.windowId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Whether targets must be registered with the maintenance window before tasks can be defined for those targets.
         */
        public var allowUnassociatedTargets: kotlin.Boolean = false
        /**
         * The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.
         */
        public var cutoff: kotlin.Int = 0
        /**
         * An optional description of the update.
         */
        public var description: kotlin.String? = null
        /**
         * The duration of the maintenance window in hours.
         */
        public var duration: kotlin.Int? = null
        /**
         * Whether the maintenance window is enabled.
         */
        public var enabled: kotlin.Boolean = false
        /**
         * The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive. The maintenance window won't run after this specified time.
         */
        public var endDate: kotlin.String? = null
        /**
         * The name of the maintenance window.
         */
        public var name: kotlin.String? = null
        /**
         * The schedule of the maintenance window in the form of a cron or rate expression.
         */
        public var schedule: kotlin.String? = null
        /**
         * The number of days to wait to run a maintenance window after the scheduled cron expression date and time.
         */
        public var scheduleOffset: kotlin.Int? = null
        /**
         * The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the [Time Zone Database](https://www.iana.org/time-zones) on the IANA website.
         */
        public var scheduleTimezone: kotlin.String? = null
        /**
         * The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active. The maintenance window won't run before this specified time.
         */
        public var startDate: kotlin.String? = null
        /**
         * The ID of the created maintenance window.
         */
        public var windowId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.UpdateMaintenanceWindowResponse) : this() {
            this.allowUnassociatedTargets = x.allowUnassociatedTargets
            this.cutoff = x.cutoff
            this.description = x.description
            this.duration = x.duration
            this.enabled = x.enabled
            this.endDate = x.endDate
            this.name = x.name
            this.schedule = x.schedule
            this.scheduleOffset = x.scheduleOffset
            this.scheduleTimezone = x.scheduleTimezone
            this.startDate = x.startDate
            this.windowId = x.windowId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy