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

commonMain.aws.sdk.kotlin.services.xray.model.InsightImpactGraphService.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

/**
 * Information about an application that processed requests, users that made requests, or downstream services, resources, and applications that an application used.
 */
public class InsightImpactGraphService private constructor(builder: Builder) {
    /**
     * Identifier of the Amazon Web Services account in which the service runs.
     */
    public val accountId: kotlin.String? = builder.accountId
    /**
     * Connections to downstream services.
     */
    public val edges: List? = builder.edges
    /**
     * The canonical name of the service.
     */
    public val name: kotlin.String? = builder.name
    /**
     * A list of names for the service, including the canonical name.
     */
    public val names: List? = builder.names
    /**
     * Identifier for the service. Unique within the service map.
     */
    public val referenceId: kotlin.Int? = builder.referenceId
    /**
     * Identifier for the service. Unique within the service map.
     * + Amazon Web Services Resource - The type of an Amazon Web Services resource. For example, AWS::EC2::Instance for an application running on Amazon EC2 or AWS::DynamoDB::Table for an Amazon DynamoDB table that the application used.
     * + Amazon Web Services Service - The type of an Amazon Web Services service. For example, AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't target a specific table.
     * + Amazon Web Services Service - The type of an Amazon Web Services service. For example, AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't target a specific table.
     * + remote - A downstream service of indeterminate type.
     */
    public val type: kotlin.String? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("InsightImpactGraphService(")
        append("accountId=$accountId,")
        append("edges=$edges,")
        append("name=$name,")
        append("names=$names,")
        append("referenceId=$referenceId,")
        append("type=$type")
        append(")")
    }

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

        if (accountId != other.accountId) return false
        if (edges != other.edges) return false
        if (name != other.name) return false
        if (names != other.names) return false
        if (referenceId != other.referenceId) return false
        if (type != other.type) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Identifier of the Amazon Web Services account in which the service runs.
         */
        public var accountId: kotlin.String? = null
        /**
         * Connections to downstream services.
         */
        public var edges: List? = null
        /**
         * The canonical name of the service.
         */
        public var name: kotlin.String? = null
        /**
         * A list of names for the service, including the canonical name.
         */
        public var names: List? = null
        /**
         * Identifier for the service. Unique within the service map.
         */
        public var referenceId: kotlin.Int? = null
        /**
         * Identifier for the service. Unique within the service map.
         * + Amazon Web Services Resource - The type of an Amazon Web Services resource. For example, AWS::EC2::Instance for an application running on Amazon EC2 or AWS::DynamoDB::Table for an Amazon DynamoDB table that the application used.
         * + Amazon Web Services Service - The type of an Amazon Web Services service. For example, AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't target a specific table.
         * + Amazon Web Services Service - The type of an Amazon Web Services service. For example, AWS::DynamoDB for downstream calls to Amazon DynamoDB that didn't target a specific table.
         * + remote - A downstream service of indeterminate type.
         */
        public var type: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.xray.model.InsightImpactGraphService) : this() {
            this.accountId = x.accountId
            this.edges = x.edges
            this.name = x.name
            this.names = x.names
            this.referenceId = x.referenceId
            this.type = x.type
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy