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

commonMain.aws.sdk.kotlin.services.codeguruprofiler.model.GetProfileResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codeguruprofiler.model



/**
 * The structure representing the getProfileResponse.
 */
public class GetProfileResponse private constructor(builder: Builder) {
    /**
     * The content encoding of the profile.
     */
    public val contentEncoding: kotlin.String? = builder.contentEncoding
    /**
     * The content type of the profile in the payload. It is either `application/json` or the default `application/x-amzn-ion`.
     */
    public val contentType: kotlin.String? = builder.contentType
    /**
     * Information about the profile.
     */
    public val profile: kotlin.ByteArray? = builder.profile

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

    override fun toString(): kotlin.String = buildString {
        append("GetProfileResponse(")
        append("contentEncoding=$contentEncoding,")
        append("contentType=$contentType,")
        append("profile=$profile")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = contentEncoding?.hashCode() ?: 0
        result = 31 * result + (contentType?.hashCode() ?: 0)
        result = 31 * result + (profile?.contentHashCode() ?: 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 GetProfileResponse

        if (contentEncoding != other.contentEncoding) return false
        if (contentType != other.contentType) return false
        if (profile != null) {
            if (other.profile == null) return false
            if (!profile.contentEquals(other.profile)) return false
        } else if (other.profile != null) return false

        return true
    }

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

    public class Builder {
        /**
         * The content encoding of the profile.
         */
        public var contentEncoding: kotlin.String? = null
        /**
         * The content type of the profile in the payload. It is either `application/json` or the default `application/x-amzn-ion`.
         */
        public var contentType: kotlin.String? = null
        /**
         * Information about the profile.
         */
        public var profile: kotlin.ByteArray? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codeguruprofiler.model.GetProfileResponse) : this() {
            this.contentEncoding = x.contentEncoding
            this.contentType = x.contentType
            this.profile = x.profile
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy