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

commonMain.aws.sdk.kotlin.services.xray.model.GetServiceGraphResponse.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
import aws.smithy.kotlin.runtime.time.Instant

public class GetServiceGraphResponse private constructor(builder: Builder) {
    /**
     * A flag indicating whether the group's filter expression has been consistent, or if the returned service graph may show traces from an older version of the group's filter expression.
     */
    public val containsOldGroupVersions: kotlin.Boolean = builder.containsOldGroupVersions
    /**
     * The end of the time frame for which the graph was generated.
     */
    public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
    /**
     * Pagination token.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The services that have processed a traced request during the specified time frame.
     */
    public val services: List? = builder.services
    /**
     * The start of the time frame for which the graph was generated.
     */
    public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime

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

    override fun toString(): kotlin.String = buildString {
        append("GetServiceGraphResponse(")
        append("containsOldGroupVersions=$containsOldGroupVersions,")
        append("endTime=$endTime,")
        append("nextToken=$nextToken,")
        append("services=$services,")
        append("startTime=$startTime")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = containsOldGroupVersions.hashCode()
        result = 31 * result + (endTime?.hashCode() ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (services?.hashCode() ?: 0)
        result = 31 * result + (startTime?.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 GetServiceGraphResponse

        if (containsOldGroupVersions != other.containsOldGroupVersions) return false
        if (endTime != other.endTime) return false
        if (nextToken != other.nextToken) return false
        if (services != other.services) return false
        if (startTime != other.startTime) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A flag indicating whether the group's filter expression has been consistent, or if the returned service graph may show traces from an older version of the group's filter expression.
         */
        public var containsOldGroupVersions: kotlin.Boolean = false
        /**
         * The end of the time frame for which the graph was generated.
         */
        public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Pagination token.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The services that have processed a traced request during the specified time frame.
         */
        public var services: List? = null
        /**
         * The start of the time frame for which the graph was generated.
         */
        public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.xray.model.GetServiceGraphResponse) : this() {
            this.containsOldGroupVersions = x.containsOldGroupVersions
            this.endTime = x.endTime
            this.nextToken = x.nextToken
            this.services = x.services
            this.startTime = x.startTime
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy