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

commonMain.aws.sdk.kotlin.services.s3.model.ReplicationTimeValue.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.s3.model



/**
 * A container specifying the time value for S3 Replication Time Control (S3 RTC) and replication metrics `EventThreshold`.
 */
public class ReplicationTimeValue private constructor(builder: Builder) {
    /**
     * Contains an integer specifying time in minutes.
     *
     *  Valid value: 15
     */
    public val minutes: kotlin.Int? = builder.minutes

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

    override fun toString(): kotlin.String = buildString {
        append("ReplicationTimeValue(")
        append("minutes=$minutes")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = minutes ?: 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 ReplicationTimeValue

        if (minutes != other.minutes) return false

        return true
    }

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

    public class Builder {
        /**
         * Contains an integer specifying time in minutes.
         *
         *  Valid value: 15
         */
        public var minutes: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.s3.model.ReplicationTimeValue) : this() {
            this.minutes = x.minutes
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy