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

commonMain.aws.sdk.kotlin.services.datazone.model.PostTimeSeriesDataPointsRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.datazone.model

import aws.smithy.kotlin.runtime.SdkDsl

public class PostTimeSeriesDataPointsRequest private constructor(builder: Builder) {
    /**
     * A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The ID of the Amazon DataZone domain in which you want to post time series data points.
     */
    public val domainIdentifier: kotlin.String? = builder.domainIdentifier
    /**
     * The ID of the asset for which you want to post time series data points.
     */
    public val entityIdentifier: kotlin.String? = builder.entityIdentifier
    /**
     * The type of the asset for which you want to post data points.
     */
    public val entityType: aws.sdk.kotlin.services.datazone.model.TimeSeriesEntityType? = builder.entityType
    /**
     * The forms that contain the data points that you want to post.
     */
    public val forms: List? = builder.forms

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

    override fun toString(): kotlin.String = buildString {
        append("PostTimeSeriesDataPointsRequest(")
        append("clientToken=$clientToken,")
        append("domainIdentifier=$domainIdentifier,")
        append("entityIdentifier=$entityIdentifier,")
        append("entityType=$entityType,")
        append("forms=$forms")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (domainIdentifier?.hashCode() ?: 0)
        result = 31 * result + (entityIdentifier?.hashCode() ?: 0)
        result = 31 * result + (entityType?.hashCode() ?: 0)
        result = 31 * result + (forms?.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 PostTimeSeriesDataPointsRequest

        if (clientToken != other.clientToken) return false
        if (domainIdentifier != other.domainIdentifier) return false
        if (entityIdentifier != other.entityIdentifier) return false
        if (entityType != other.entityType) return false
        if (forms != other.forms) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
         */
        public var clientToken: kotlin.String? = null
        /**
         * The ID of the Amazon DataZone domain in which you want to post time series data points.
         */
        public var domainIdentifier: kotlin.String? = null
        /**
         * The ID of the asset for which you want to post time series data points.
         */
        public var entityIdentifier: kotlin.String? = null
        /**
         * The type of the asset for which you want to post data points.
         */
        public var entityType: aws.sdk.kotlin.services.datazone.model.TimeSeriesEntityType? = null
        /**
         * The forms that contain the data points that you want to post.
         */
        public var forms: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.PostTimeSeriesDataPointsRequest) : this() {
            this.clientToken = x.clientToken
            this.domainIdentifier = x.domainIdentifier
            this.entityIdentifier = x.entityIdentifier
            this.entityType = x.entityType
            this.forms = x.forms
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy