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

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

The newest version!
// 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

/**
 * The details of a blueprint.
 */
public class Blueprint private constructor(builder: Builder) {
    /**
     * Specifies the path in Amazon S3 where the blueprint is published.
     */
    public val blueprintLocation: kotlin.String? = builder.blueprintLocation
    /**
     * Specifies a path in Amazon S3 where the blueprint is copied when you call `CreateBlueprint/UpdateBlueprint` to register the blueprint in Glue.
     */
    public val blueprintServiceLocation: kotlin.String? = builder.blueprintServiceLocation
    /**
     * The date and time the blueprint was registered.
     */
    public val createdOn: aws.smithy.kotlin.runtime.time.Instant? = builder.createdOn
    /**
     * The description of the blueprint.
     */
    public val description: kotlin.String? = builder.description
    /**
     * An error message.
     */
    public val errorMessage: kotlin.String? = builder.errorMessage
    /**
     * 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 val lastActiveDefinition: aws.sdk.kotlin.services.glue.model.LastActiveDefinition? = builder.lastActiveDefinition
    /**
     * The date and time the blueprint was last modified.
     */
    public val lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedOn
    /**
     * The name of the blueprint.
     */
    public val name: kotlin.String? = builder.name
    /**
     * A JSON string that indicates the list of parameter specifications for the blueprint.
     */
    public val parameterSpec: kotlin.String? = builder.parameterSpec
    /**
     * The status of the blueprint registration.
     * + Creating — The blueprint registration is in progress.
     * + Active — The blueprint has been successfully registered.
     * + Updating — An update to the blueprint registration is in progress.
     * + Failed — The blueprint registration failed.
     */
    public val status: aws.sdk.kotlin.services.glue.model.BlueprintStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("Blueprint(")
        append("blueprintLocation=$blueprintLocation,")
        append("blueprintServiceLocation=$blueprintServiceLocation,")
        append("createdOn=$createdOn,")
        append("description=$description,")
        append("errorMessage=$errorMessage,")
        append("lastActiveDefinition=$lastActiveDefinition,")
        append("lastModifiedOn=$lastModifiedOn,")
        append("name=$name,")
        append("parameterSpec=$parameterSpec,")
        append("status=$status")
        append(")")
    }

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

        if (blueprintLocation != other.blueprintLocation) return false
        if (blueprintServiceLocation != other.blueprintServiceLocation) return false
        if (createdOn != other.createdOn) return false
        if (description != other.description) return false
        if (errorMessage != other.errorMessage) return false
        if (lastActiveDefinition != other.lastActiveDefinition) return false
        if (lastModifiedOn != other.lastModifiedOn) return false
        if (name != other.name) return false
        if (parameterSpec != other.parameterSpec) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies the path in Amazon S3 where the blueprint is published.
         */
        public var blueprintLocation: kotlin.String? = null
        /**
         * Specifies a path in Amazon S3 where the blueprint is copied when you call `CreateBlueprint/UpdateBlueprint` to register the blueprint in Glue.
         */
        public var blueprintServiceLocation: kotlin.String? = null
        /**
         * The date and time the blueprint was registered.
         */
        public var createdOn: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The description of the blueprint.
         */
        public var description: kotlin.String? = null
        /**
         * An error message.
         */
        public var errorMessage: kotlin.String? = null
        /**
         * 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 var lastActiveDefinition: aws.sdk.kotlin.services.glue.model.LastActiveDefinition? = null
        /**
         * The date and time the blueprint was last modified.
         */
        public var lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the blueprint.
         */
        public var name: kotlin.String? = null
        /**
         * A JSON string that indicates the list of parameter specifications for the blueprint.
         */
        public var parameterSpec: kotlin.String? = null
        /**
         * The status of the blueprint registration.
         * + Creating — The blueprint registration is in progress.
         * + Active — The blueprint has been successfully registered.
         * + Updating — An update to the blueprint registration is in progress.
         * + Failed — The blueprint registration failed.
         */
        public var status: aws.sdk.kotlin.services.glue.model.BlueprintStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.Blueprint) : this() {
            this.blueprintLocation = x.blueprintLocation
            this.blueprintServiceLocation = x.blueprintServiceLocation
            this.createdOn = x.createdOn
            this.description = x.description
            this.errorMessage = x.errorMessage
            this.lastActiveDefinition = x.lastActiveDefinition
            this.lastModifiedOn = x.lastModifiedOn
            this.name = x.name
            this.parameterSpec = x.parameterSpec
            this.status = x.status
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy