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

commonMain.aws.sdk.kotlin.services.opensearch.model.ServiceSoftwareOptions.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.opensearch.model

import aws.smithy.kotlin.runtime.time.Instant

/**
 * The current status of the service software for an Amazon OpenSearch Service domain. For more information, see [Service software updates in Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/service-software.html).
 */
public class ServiceSoftwareOptions private constructor(builder: Builder) {
    /**
     * The timestamp, in Epoch time, until which you can manually request a service software update. After this date, we automatically update your service software.
     */
    public val automatedUpdateDate: aws.smithy.kotlin.runtime.time.Instant? = builder.automatedUpdateDate
    /**
     * True if you're able to cancel your service software version update. False if you can't cancel your service software update.
     */
    public val cancellable: kotlin.Boolean? = builder.cancellable
    /**
     * The current service software version present on the domain.
     */
    public val currentVersion: kotlin.String? = builder.currentVersion
    /**
     * A description of the service software update status.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The new service software version, if one is available.
     */
    public val newVersion: kotlin.String? = builder.newVersion
    /**
     * True if a service software is never automatically updated. False if a service software is automatically updated after the automated update date.
     */
    public val optionalDeployment: kotlin.Boolean? = builder.optionalDeployment
    /**
     * True if you're able to update your service software version. False if you can't update your service software version.
     */
    public val updateAvailable: kotlin.Boolean? = builder.updateAvailable
    /**
     * The status of your service software update.
     */
    public val updateStatus: aws.sdk.kotlin.services.opensearch.model.DeploymentStatus? = builder.updateStatus

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

    override fun toString(): kotlin.String = buildString {
        append("ServiceSoftwareOptions(")
        append("automatedUpdateDate=$automatedUpdateDate,")
        append("cancellable=$cancellable,")
        append("currentVersion=$currentVersion,")
        append("description=$description,")
        append("newVersion=$newVersion,")
        append("optionalDeployment=$optionalDeployment,")
        append("updateAvailable=$updateAvailable,")
        append("updateStatus=$updateStatus")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = automatedUpdateDate?.hashCode() ?: 0
        result = 31 * result + (cancellable?.hashCode() ?: 0)
        result = 31 * result + (currentVersion?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (newVersion?.hashCode() ?: 0)
        result = 31 * result + (optionalDeployment?.hashCode() ?: 0)
        result = 31 * result + (updateAvailable?.hashCode() ?: 0)
        result = 31 * result + (updateStatus?.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 ServiceSoftwareOptions

        if (automatedUpdateDate != other.automatedUpdateDate) return false
        if (cancellable != other.cancellable) return false
        if (currentVersion != other.currentVersion) return false
        if (description != other.description) return false
        if (newVersion != other.newVersion) return false
        if (optionalDeployment != other.optionalDeployment) return false
        if (updateAvailable != other.updateAvailable) return false
        if (updateStatus != other.updateStatus) return false

        return true
    }

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

    public class Builder {
        /**
         * The timestamp, in Epoch time, until which you can manually request a service software update. After this date, we automatically update your service software.
         */
        public var automatedUpdateDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * True if you're able to cancel your service software version update. False if you can't cancel your service software update.
         */
        public var cancellable: kotlin.Boolean? = null
        /**
         * The current service software version present on the domain.
         */
        public var currentVersion: kotlin.String? = null
        /**
         * A description of the service software update status.
         */
        public var description: kotlin.String? = null
        /**
         * The new service software version, if one is available.
         */
        public var newVersion: kotlin.String? = null
        /**
         * True if a service software is never automatically updated. False if a service software is automatically updated after the automated update date.
         */
        public var optionalDeployment: kotlin.Boolean? = null
        /**
         * True if you're able to update your service software version. False if you can't update your service software version.
         */
        public var updateAvailable: kotlin.Boolean? = null
        /**
         * The status of your service software update.
         */
        public var updateStatus: aws.sdk.kotlin.services.opensearch.model.DeploymentStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.opensearch.model.ServiceSoftwareOptions) : this() {
            this.automatedUpdateDate = x.automatedUpdateDate
            this.cancellable = x.cancellable
            this.currentVersion = x.currentVersion
            this.description = x.description
            this.newVersion = x.newVersion
            this.optionalDeployment = x.optionalDeployment
            this.updateAvailable = x.updateAvailable
            this.updateStatus = x.updateStatus
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy