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

commonMain.aws.sdk.kotlin.services.pi.model.DescribeDimensionKeysResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.pi.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

public class DescribeDimensionKeysResponse private constructor(builder: Builder) {
    /**
     * The end time for the returned dimension keys, after alignment to a granular boundary (as specified by `PeriodInSeconds`). `AlignedEndTime` will be greater than or equal to the value of the user-specified `Endtime`.
     */
    public val alignedEndTime: aws.smithy.kotlin.runtime.time.Instant? = builder.alignedEndTime
    /**
     * The start time for the returned dimension keys, after alignment to a granular boundary (as specified by `PeriodInSeconds`). `AlignedStartTime` will be less than or equal to the value of the user-specified `StartTime`.
     */
    public val alignedStartTime: aws.smithy.kotlin.runtime.time.Instant? = builder.alignedStartTime
    /**
     * The dimension keys that were requested.
     */
    public val keys: List? = builder.keys
    /**
     * A pagination token that indicates the response didn’t return all available records because `MaxRecords` was specified in the previous request. To get the remaining records, specify `NextToken` in a separate request with this value.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * If `PartitionBy` was present in the request, `PartitionKeys` contains the breakdown of dimension keys by the specified partitions.
     */
    public val partitionKeys: List? = builder.partitionKeys

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeDimensionKeysResponse(")
        append("alignedEndTime=$alignedEndTime,")
        append("alignedStartTime=$alignedStartTime,")
        append("keys=$keys,")
        append("nextToken=$nextToken,")
        append("partitionKeys=$partitionKeys")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = alignedEndTime?.hashCode() ?: 0
        result = 31 * result + (alignedStartTime?.hashCode() ?: 0)
        result = 31 * result + (keys?.hashCode() ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (partitionKeys?.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 DescribeDimensionKeysResponse

        if (alignedEndTime != other.alignedEndTime) return false
        if (alignedStartTime != other.alignedStartTime) return false
        if (keys != other.keys) return false
        if (nextToken != other.nextToken) return false
        if (partitionKeys != other.partitionKeys) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The end time for the returned dimension keys, after alignment to a granular boundary (as specified by `PeriodInSeconds`). `AlignedEndTime` will be greater than or equal to the value of the user-specified `Endtime`.
         */
        public var alignedEndTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The start time for the returned dimension keys, after alignment to a granular boundary (as specified by `PeriodInSeconds`). `AlignedStartTime` will be less than or equal to the value of the user-specified `StartTime`.
         */
        public var alignedStartTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The dimension keys that were requested.
         */
        public var keys: List? = null
        /**
         * A pagination token that indicates the response didn’t return all available records because `MaxRecords` was specified in the previous request. To get the remaining records, specify `NextToken` in a separate request with this value.
         */
        public var nextToken: kotlin.String? = null
        /**
         * If `PartitionBy` was present in the request, `PartitionKeys` contains the breakdown of dimension keys by the specified partitions.
         */
        public var partitionKeys: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pi.model.DescribeDimensionKeysResponse) : this() {
            this.alignedEndTime = x.alignedEndTime
            this.alignedStartTime = x.alignedStartTime
            this.keys = x.keys
            this.nextToken = x.nextToken
            this.partitionKeys = x.partitionKeys
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy