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

commonMain.aws.sdk.kotlin.services.codegurureviewer.auth.CodeGuruReviewerAuthSchemeParameters.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codegurureviewer.auth



public class CodeGuruReviewerAuthSchemeParameters private constructor(builder: Builder) {
    public val operationName: String = requireNotNull(builder.operationName) { "operationName is a required auth scheme parameter" }
    public companion object {
        public inline operator fun invoke(block: Builder.() -> kotlin.Unit): CodeGuruReviewerAuthSchemeParameters = Builder().apply(block).build()
    }

    public fun toBuilder(): Builder = Builder().apply {
        operationName = [email protected]
    }

    public class Builder {
        /**
         * The name of the operation currently being invoked.
         */
        public var operationName: String? = null

        @PublishedApi
        internal fun build(): CodeGuruReviewerAuthSchemeParameters = CodeGuruReviewerAuthSchemeParameters(this)
    }

    override fun toString(): String = buildString {
        append("CodeGuruReviewerAuthSchemeParameters(")
        append("operationName=$operationName)")
    }

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other !is CodeGuruReviewerAuthSchemeParameters) return false
        if (this.operationName != other.operationName) return false
        return true
    }

    override fun hashCode(): Int {
        var result = operationName?.hashCode() ?: 0
        return result
    }

    public fun copy(block: Builder.() -> Unit = {}): CodeGuruReviewerAuthSchemeParameters {
        return Builder().apply {
            operationName = [email protected]
            block()
        }
        .build()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy