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

commonMain.aws.sdk.kotlin.services.backup.model.UpdateFrameworkRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.backup.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateFrameworkRequest private constructor(builder: Builder) {
    /**
     * A list of the controls that make up the framework. Each control in the list has a name, input parameters, and scope.
     */
    public val frameworkControls: List? = builder.frameworkControls
    /**
     * An optional description of the framework with a maximum 1,024 characters.
     */
    public val frameworkDescription: kotlin.String? = builder.frameworkDescription
    /**
     * The unique name of a framework. This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
     */
    public val frameworkName: kotlin.String? = builder.frameworkName
    /**
     * A customer-chosen string that you can use to distinguish between otherwise identical calls to `UpdateFrameworkInput`. Retrying a successful request with the same idempotency token results in a success message with no action taken.
     */
    public val idempotencyToken: kotlin.String? = builder.idempotencyToken

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateFrameworkRequest(")
        append("frameworkControls=$frameworkControls,")
        append("frameworkDescription=$frameworkDescription,")
        append("frameworkName=$frameworkName,")
        append("idempotencyToken=$idempotencyToken")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = frameworkControls?.hashCode() ?: 0
        result = 31 * result + (frameworkDescription?.hashCode() ?: 0)
        result = 31 * result + (frameworkName?.hashCode() ?: 0)
        result = 31 * result + (idempotencyToken?.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 UpdateFrameworkRequest

        if (frameworkControls != other.frameworkControls) return false
        if (frameworkDescription != other.frameworkDescription) return false
        if (frameworkName != other.frameworkName) return false
        if (idempotencyToken != other.idempotencyToken) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A list of the controls that make up the framework. Each control in the list has a name, input parameters, and scope.
         */
        public var frameworkControls: List? = null
        /**
         * An optional description of the framework with a maximum 1,024 characters.
         */
        public var frameworkDescription: kotlin.String? = null
        /**
         * The unique name of a framework. This name is between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
         */
        public var frameworkName: kotlin.String? = null
        /**
         * A customer-chosen string that you can use to distinguish between otherwise identical calls to `UpdateFrameworkInput`. Retrying a successful request with the same idempotency token results in a success message with no action taken.
         */
        public var idempotencyToken: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.backup.model.UpdateFrameworkRequest) : this() {
            this.frameworkControls = x.frameworkControls
            this.frameworkDescription = x.frameworkDescription
            this.frameworkName = x.frameworkName
            this.idempotencyToken = x.idempotencyToken
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy