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

commonMain.aws.sdk.kotlin.services.applicationdiscoveryservice.model.StartContinuousExportResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.applicationdiscoveryservice.model

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

public class StartContinuousExportResponse private constructor(builder: Builder) {
    /**
     * The type of data collector used to gather this data (currently only offered for AGENT).
     */
    public val dataSource: aws.sdk.kotlin.services.applicationdiscoveryservice.model.DataSource? = builder.dataSource
    /**
     * The unique ID assigned to this export.
     */
    public val exportId: kotlin.String? = builder.exportId
    /**
     * The name of the s3 bucket where the export data parquet files are stored.
     */
    public val s3Bucket: kotlin.String? = builder.s3Bucket
    /**
     * A dictionary which describes how the data is stored.
     * + `databaseName` - the name of the Glue database used to store the schema.
     */
    public val schemaStorageConfig: Map? = builder.schemaStorageConfig
    /**
     * The timestamp representing when the continuous export was started.
     */
    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.applicationdiscoveryservice.model.StartContinuousExportResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("StartContinuousExportResponse(")
        append("dataSource=$dataSource,")
        append("exportId=$exportId,")
        append("s3Bucket=$s3Bucket,")
        append("schemaStorageConfig=$schemaStorageConfig,")
        append("startTime=$startTime")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = dataSource?.hashCode() ?: 0
        result = 31 * result + (exportId?.hashCode() ?: 0)
        result = 31 * result + (s3Bucket?.hashCode() ?: 0)
        result = 31 * result + (schemaStorageConfig?.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 StartContinuousExportResponse

        if (dataSource != other.dataSource) return false
        if (exportId != other.exportId) return false
        if (s3Bucket != other.s3Bucket) return false
        if (schemaStorageConfig != other.schemaStorageConfig) return false
        if (startTime != other.startTime) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The type of data collector used to gather this data (currently only offered for AGENT).
         */
        public var dataSource: aws.sdk.kotlin.services.applicationdiscoveryservice.model.DataSource? = null
        /**
         * The unique ID assigned to this export.
         */
        public var exportId: kotlin.String? = null
        /**
         * The name of the s3 bucket where the export data parquet files are stored.
         */
        public var s3Bucket: kotlin.String? = null
        /**
         * A dictionary which describes how the data is stored.
         * + `databaseName` - the name of the Glue database used to store the schema.
         */
        public var schemaStorageConfig: Map? = null
        /**
         * The timestamp representing when the continuous export was started.
         */
        public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.applicationdiscoveryservice.model.StartContinuousExportResponse) : this() {
            this.dataSource = x.dataSource
            this.exportId = x.exportId
            this.s3Bucket = x.s3Bucket
            this.schemaStorageConfig = x.schemaStorageConfig
            this.startTime = x.startTime
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy