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

commonMain.aws.sdk.kotlin.services.xray.model.GetInsightSummariesRequest.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 GetInsightSummariesRequest private constructor(builder: Builder) {
    /**
     * The end of the time frame in which the insights ended. The end time can't be more than 30 days old.
     */
    public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
    /**
     * The Amazon Resource Name (ARN) of the group. Required if the GroupName isn't provided.
     */
    public val groupArn: kotlin.String? = builder.groupArn
    /**
     * The name of the group. Required if the GroupARN isn't provided.
     */
    public val groupName: kotlin.String? = builder.groupName
    /**
     * The maximum number of results to display.
     */
    public val maxResults: kotlin.Int? = builder.maxResults
    /**
     * Pagination token.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The beginning of the time frame in which the insights started. The start time can't be more than 30 days old.
     */
    public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
    /**
     * The list of insight states.
     */
    public val states: List? = builder.states

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

    override fun toString(): kotlin.String = buildString {
        append("GetInsightSummariesRequest(")
        append("endTime=$endTime,")
        append("groupArn=$groupArn,")
        append("groupName=$groupName,")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken,")
        append("startTime=$startTime,")
        append("states=$states")
        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 + (maxResults ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (startTime?.hashCode() ?: 0)
        result = 31 * result + (states?.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 GetInsightSummariesRequest

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

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The end of the time frame in which the insights ended. The end time can't be more than 30 days old.
         */
        public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The Amazon Resource Name (ARN) of the group. Required if the GroupName isn't provided.
         */
        public var groupArn: kotlin.String? = null
        /**
         * The name of the group. Required if the GroupARN isn't provided.
         */
        public var groupName: kotlin.String? = null
        /**
         * The maximum number of results to display.
         */
        public var maxResults: kotlin.Int? = null
        /**
         * Pagination token.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The beginning of the time frame in which the insights started. The start time can't be more than 30 days old.
         */
        public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The list of insight states.
         */
        public var states: List? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy