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

commonMain.aws.sdk.kotlin.services.proton.model.GetServiceInstanceRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.proton.model



public class GetServiceInstanceRequest private constructor(builder: Builder) {
    /**
     * The name of a service instance that you want to get the detailed data for.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The name of the service that you want the service instance input for.
     */
    public val serviceName: kotlin.String? = builder.serviceName

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

    override fun toString(): kotlin.String = buildString {
        append("GetServiceInstanceRequest(")
        append("name=$name,")
        append("serviceName=$serviceName")
        append(")")
    }

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

        if (name != other.name) return false
        if (serviceName != other.serviceName) return false

        return true
    }

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

    public class Builder {
        /**
         * The name of a service instance that you want to get the detailed data for.
         */
        public var name: kotlin.String? = null
        /**
         * The name of the service that you want the service instance input for.
         */
        public var serviceName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.proton.model.GetServiceInstanceRequest) : this() {
            this.name = x.name
            this.serviceName = x.serviceName
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.proton.model.GetServiceInstanceRequest = GetServiceInstanceRequest(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy