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

commonMain.aws.sdk.kotlin.services.xray.model.GetServiceGraphRequest.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 GetServiceGraphRequest private constructor(builder: Builder) {
    /**
     * The end of the timeframe for which to generate a graph.
     */
    public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
    /**
     * The Amazon Resource Name (ARN) of a group based on which you want to generate a graph.
     */
    public val groupArn: kotlin.String? = builder.groupArn
    /**
     * The name of a group based on which you want to generate a graph.
     */
    public val groupName: kotlin.String? = builder.groupName
    /**
     * Pagination token.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The start of the time frame for which to generate a graph.
     */
    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.GetServiceGraphRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("GetServiceGraphRequest(")
        append("endTime=$endTime,")
        append("groupArn=$groupArn,")
        append("groupName=$groupName,")
        append("nextToken=$nextToken,")
        append("startTime=$startTime")
        append(")")
    }

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

        if (endTime != other.endTime) return false
        if (groupArn != other.groupArn) return false
        if (groupName != other.groupName) return false
        if (nextToken != other.nextToken) return false
        if (startTime != other.startTime) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The end of the timeframe for which to generate a graph.
         */
        public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The Amazon Resource Name (ARN) of a group based on which you want to generate a graph.
         */
        public var groupArn: kotlin.String? = null
        /**
         * The name of a group based on which you want to generate a graph.
         */
        public var groupName: kotlin.String? = null
        /**
         * Pagination token.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The start of the time frame for which to generate a graph.
         */
        public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy