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

commonMain.aws.sdk.kotlin.services.glue.model.LastActiveDefinition.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.glue.model

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

/**
 * When there are multiple versions of a blueprint and the latest version has some errors, this attribute indicates the last successful blueprint definition that is available with the service.
 */
public class LastActiveDefinition private constructor(builder: Builder) {
    /**
     * Specifies a path in Amazon S3 where the blueprint is published by the Glue developer.
     */
    public val blueprintLocation: kotlin.String? = builder.blueprintLocation
    /**
     * Specifies a path in Amazon S3 where the blueprint is copied when you create or update the blueprint.
     */
    public val blueprintServiceLocation: kotlin.String? = builder.blueprintServiceLocation
    /**
     * The description of the blueprint.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The date and time the blueprint was last modified.
     */
    public val lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedOn
    /**
     * A JSON string specifying the parameters for the blueprint.
     */
    public val parameterSpec: kotlin.String? = builder.parameterSpec

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

    override fun toString(): kotlin.String = buildString {
        append("LastActiveDefinition(")
        append("blueprintLocation=$blueprintLocation,")
        append("blueprintServiceLocation=$blueprintServiceLocation,")
        append("description=$description,")
        append("lastModifiedOn=$lastModifiedOn,")
        append("parameterSpec=$parameterSpec")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = blueprintLocation?.hashCode() ?: 0
        result = 31 * result + (blueprintServiceLocation?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (lastModifiedOn?.hashCode() ?: 0)
        result = 31 * result + (parameterSpec?.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 LastActiveDefinition

        if (blueprintLocation != other.blueprintLocation) return false
        if (blueprintServiceLocation != other.blueprintServiceLocation) return false
        if (description != other.description) return false
        if (lastModifiedOn != other.lastModifiedOn) return false
        if (parameterSpec != other.parameterSpec) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies a path in Amazon S3 where the blueprint is published by the Glue developer.
         */
        public var blueprintLocation: kotlin.String? = null
        /**
         * Specifies a path in Amazon S3 where the blueprint is copied when you create or update the blueprint.
         */
        public var blueprintServiceLocation: kotlin.String? = null
        /**
         * The description of the blueprint.
         */
        public var description: kotlin.String? = null
        /**
         * The date and time the blueprint was last modified.
         */
        public var lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A JSON string specifying the parameters for the blueprint.
         */
        public var parameterSpec: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.LastActiveDefinition) : this() {
            this.blueprintLocation = x.blueprintLocation
            this.blueprintServiceLocation = x.blueprintServiceLocation
            this.description = x.description
            this.lastModifiedOn = x.lastModifiedOn
            this.parameterSpec = x.parameterSpec
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy