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

commonMain.aws.sdk.kotlin.services.datazone.model.GetEnvironmentBlueprintResponse.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
import aws.smithy.kotlin.runtime.time.Instant

public class GetEnvironmentBlueprintResponse private constructor(builder: Builder) {
    /**
     * A timestamp of when this blueprint was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The deployment properties of this Amazon DataZone blueprint.
     */
    public val deploymentProperties: aws.sdk.kotlin.services.datazone.model.DeploymentProperties? = builder.deploymentProperties
    /**
     * The description of this Amazon DataZone blueprint.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The glossary terms attached to this Amazon DataZone blueprint.
     */
    public val glossaryTerms: List? = builder.glossaryTerms
    /**
     * The ID of this Amazon DataZone blueprint.
     */
    public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
    /**
     * The name of this Amazon DataZone blueprint.
     */
    public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
    /**
     * The provider of this Amazon DataZone blueprint.
     */
    public val provider: kotlin.String = requireNotNull(builder.provider) { "A non-null value must be provided for provider" }
    /**
     * The provisioning properties of this Amazon DataZone blueprint.
     */
    public val provisioningProperties: aws.sdk.kotlin.services.datazone.model.ProvisioningProperties? = builder.provisioningProperties
    /**
     * The timestamp of when this blueprint was updated.
     */
    public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
    /**
     * The user parameters of this blueprint.
     */
    public val userParameters: List? = builder.userParameters

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

    override fun toString(): kotlin.String = buildString {
        append("GetEnvironmentBlueprintResponse(")
        append("createdAt=$createdAt,")
        append("deploymentProperties=$deploymentProperties,")
        append("description=*** Sensitive Data Redacted ***,")
        append("glossaryTerms=$glossaryTerms,")
        append("id=$id,")
        append("name=$name,")
        append("provider=$provider,")
        append("provisioningProperties=$provisioningProperties,")
        append("updatedAt=$updatedAt,")
        append("userParameters=$userParameters")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdAt?.hashCode() ?: 0
        result = 31 * result + (deploymentProperties?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (glossaryTerms?.hashCode() ?: 0)
        result = 31 * result + (id.hashCode())
        result = 31 * result + (name.hashCode())
        result = 31 * result + (provider.hashCode())
        result = 31 * result + (provisioningProperties?.hashCode() ?: 0)
        result = 31 * result + (updatedAt?.hashCode() ?: 0)
        result = 31 * result + (userParameters?.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 GetEnvironmentBlueprintResponse

        if (createdAt != other.createdAt) return false
        if (deploymentProperties != other.deploymentProperties) return false
        if (description != other.description) return false
        if (glossaryTerms != other.glossaryTerms) return false
        if (id != other.id) return false
        if (name != other.name) return false
        if (provider != other.provider) return false
        if (provisioningProperties != other.provisioningProperties) return false
        if (updatedAt != other.updatedAt) return false
        if (userParameters != other.userParameters) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A timestamp of when this blueprint was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The deployment properties of this Amazon DataZone blueprint.
         */
        public var deploymentProperties: aws.sdk.kotlin.services.datazone.model.DeploymentProperties? = null
        /**
         * The description of this Amazon DataZone blueprint.
         */
        public var description: kotlin.String? = null
        /**
         * The glossary terms attached to this Amazon DataZone blueprint.
         */
        public var glossaryTerms: List? = null
        /**
         * The ID of this Amazon DataZone blueprint.
         */
        public var id: kotlin.String? = null
        /**
         * The name of this Amazon DataZone blueprint.
         */
        public var name: kotlin.String? = null
        /**
         * The provider of this Amazon DataZone blueprint.
         */
        public var provider: kotlin.String? = null
        /**
         * The provisioning properties of this Amazon DataZone blueprint.
         */
        public var provisioningProperties: aws.sdk.kotlin.services.datazone.model.ProvisioningProperties? = null
        /**
         * The timestamp of when this blueprint was updated.
         */
        public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The user parameters of this blueprint.
         */
        public var userParameters: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.GetEnvironmentBlueprintResponse) : this() {
            this.createdAt = x.createdAt
            this.deploymentProperties = x.deploymentProperties
            this.description = x.description
            this.glossaryTerms = x.glossaryTerms
            this.id = x.id
            this.name = x.name
            this.provider = x.provider
            this.provisioningProperties = x.provisioningProperties
            this.updatedAt = x.updatedAt
            this.userParameters = x.userParameters
        }

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

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

        internal fun correctErrors(): Builder {
            if (id == null) id = ""
            if (name == null) name = ""
            if (provider == null) provider = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy