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

aws.sdk.kotlin.services.pinpoint.model.CreateExportJobRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.pinpoint.model



class CreateExportJobRequest private constructor(builder: Builder) {
    /**
     * The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
     */
    val applicationId: kotlin.String? = builder.applicationId
    /**
     * Specifies the settings for a job that exports endpoint definitions to an Amazon Simple Storage Service (Amazon S3) bucket.
     */
    val exportJobRequest: aws.sdk.kotlin.services.pinpoint.model.ExportJobRequest? = builder.exportJobRequest

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

    override fun toString(): kotlin.String = buildString {
        append("CreateExportJobRequest(")
        append("applicationId=$applicationId,")
        append("exportJobRequest=$exportJobRequest)")
    }

    override fun hashCode(): kotlin.Int {
        var result = applicationId?.hashCode() ?: 0
        result = 31 * result + (exportJobRequest?.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 CreateExportJobRequest

        if (applicationId != other.applicationId) return false
        if (exportJobRequest != other.exportJobRequest) return false

        return true
    }

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

    class Builder {
        /**
         * The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
         */
        var applicationId: kotlin.String? = null
        /**
         * Specifies the settings for a job that exports endpoint definitions to an Amazon Simple Storage Service (Amazon S3) bucket.
         */
        var exportJobRequest: aws.sdk.kotlin.services.pinpoint.model.ExportJobRequest? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pinpoint.model.CreateExportJobRequest) : this() {
            this.applicationId = x.applicationId
            this.exportJobRequest = x.exportJobRequest
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.pinpoint.model.ExportJobRequest] inside the given [block]
         */
        fun exportJobRequest(block: aws.sdk.kotlin.services.pinpoint.model.ExportJobRequest.Builder.() -> kotlin.Unit) {
            this.exportJobRequest = aws.sdk.kotlin.services.pinpoint.model.ExportJobRequest.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy