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

commonMain.aws.sdk.kotlin.services.backup.model.CreateFrameworkResponse.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 CreateFrameworkResponse private constructor(builder: Builder) {
    /**
     * An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
     */
    public val frameworkArn: kotlin.String? = builder.frameworkArn
    /**
     * The unique name of the framework. The name must be 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

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

    override fun toString(): kotlin.String = buildString {
        append("CreateFrameworkResponse(")
        append("frameworkArn=$frameworkArn,")
        append("frameworkName=$frameworkName")
        append(")")
    }

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

        if (frameworkArn != other.frameworkArn) return false
        if (frameworkName != other.frameworkName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the ARN depends on the resource type.
         */
        public var frameworkArn: kotlin.String? = null
        /**
         * The unique name of the framework. The name must be 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

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.backup.model.CreateFrameworkResponse) : this() {
            this.frameworkArn = x.frameworkArn
            this.frameworkName = x.frameworkName
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy