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

commonMain.aws.sdk.kotlin.services.redshift.model.CreateSnapshotScheduleRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.redshift.model

import aws.smithy.kotlin.runtime.SdkDsl

public class CreateSnapshotScheduleRequest private constructor(builder: Builder) {
    /**
     *
     */
    public val dryRun: kotlin.Boolean? = builder.dryRun
    /**
     *
     */
    public val nextInvocations: kotlin.Int? = builder.nextInvocations
    /**
     * The definition of the snapshot schedule. The definition is made up of schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)".
     */
    public val scheduleDefinitions: List? = builder.scheduleDefinitions
    /**
     * The description of the snapshot schedule.
     */
    public val scheduleDescription: kotlin.String? = builder.scheduleDescription
    /**
     * A unique identifier for a snapshot schedule. Only alphanumeric characters are allowed for the identifier.
     */
    public val scheduleIdentifier: kotlin.String? = builder.scheduleIdentifier
    /**
     * An optional set of tags you can use to search for the schedule.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateSnapshotScheduleRequest(")
        append("dryRun=$dryRun,")
        append("nextInvocations=$nextInvocations,")
        append("scheduleDefinitions=$scheduleDefinitions,")
        append("scheduleDescription=$scheduleDescription,")
        append("scheduleIdentifier=$scheduleIdentifier,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = dryRun?.hashCode() ?: 0
        result = 31 * result + (nextInvocations ?: 0)
        result = 31 * result + (scheduleDefinitions?.hashCode() ?: 0)
        result = 31 * result + (scheduleDescription?.hashCode() ?: 0)
        result = 31 * result + (scheduleIdentifier?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 CreateSnapshotScheduleRequest

        if (dryRun != other.dryRun) return false
        if (nextInvocations != other.nextInvocations) return false
        if (scheduleDefinitions != other.scheduleDefinitions) return false
        if (scheduleDescription != other.scheduleDescription) return false
        if (scheduleIdentifier != other.scheduleIdentifier) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         *
         */
        public var dryRun: kotlin.Boolean? = null
        /**
         *
         */
        public var nextInvocations: kotlin.Int? = null
        /**
         * The definition of the snapshot schedule. The definition is made up of schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)".
         */
        public var scheduleDefinitions: List? = null
        /**
         * The description of the snapshot schedule.
         */
        public var scheduleDescription: kotlin.String? = null
        /**
         * A unique identifier for a snapshot schedule. Only alphanumeric characters are allowed for the identifier.
         */
        public var scheduleIdentifier: kotlin.String? = null
        /**
         * An optional set of tags you can use to search for the schedule.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.redshift.model.CreateSnapshotScheduleRequest) : this() {
            this.dryRun = x.dryRun
            this.nextInvocations = x.nextInvocations
            this.scheduleDefinitions = x.scheduleDefinitions
            this.scheduleDescription = x.scheduleDescription
            this.scheduleIdentifier = x.scheduleIdentifier
            this.tags = x.tags
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy