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

commonMain.aws.sdk.kotlin.services.xray.model.FaultRootCauseService.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.xray.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * A collection of fields identifying the services in a trace summary fault.
 */
public class FaultRootCauseService private constructor(builder: Builder) {
    /**
     * The account ID associated to the service.
     */
    public val accountId: kotlin.String? = builder.accountId
    /**
     * The path of root cause entities found on the service.
     */
    public val entityPath: List? = builder.entityPath
    /**
     * A Boolean value indicating if the service is inferred from the trace.
     */
    public val inferred: kotlin.Boolean? = builder.inferred
    /**
     * The service name.
     */
    public val name: kotlin.String? = builder.name
    /**
     * A collection of associated service names.
     */
    public val names: List? = builder.names
    /**
     * The type associated to the service.
     */
    public val type: kotlin.String? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("FaultRootCauseService(")
        append("accountId=$accountId,")
        append("entityPath=$entityPath,")
        append("inferred=$inferred,")
        append("name=$name,")
        append("names=$names,")
        append("type=$type")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = accountId?.hashCode() ?: 0
        result = 31 * result + (entityPath?.hashCode() ?: 0)
        result = 31 * result + (inferred?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (names?.hashCode() ?: 0)
        result = 31 * result + (type?.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 FaultRootCauseService

        if (accountId != other.accountId) return false
        if (entityPath != other.entityPath) return false
        if (inferred != other.inferred) return false
        if (name != other.name) return false
        if (names != other.names) return false
        if (type != other.type) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The account ID associated to the service.
         */
        public var accountId: kotlin.String? = null
        /**
         * The path of root cause entities found on the service.
         */
        public var entityPath: List? = null
        /**
         * A Boolean value indicating if the service is inferred from the trace.
         */
        public var inferred: kotlin.Boolean? = null
        /**
         * The service name.
         */
        public var name: kotlin.String? = null
        /**
         * A collection of associated service names.
         */
        public var names: List? = null
        /**
         * The type associated to the service.
         */
        public var type: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.xray.model.FaultRootCauseService) : this() {
            this.accountId = x.accountId
            this.entityPath = x.entityPath
            this.inferred = x.inferred
            this.name = x.name
            this.names = x.names
            this.type = x.type
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy