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

commonMain.aws.sdk.kotlin.services.datazone.model.CreateEnvironmentProfileRequest.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



public class CreateEnvironmentProfileRequest private constructor(builder: Builder) {
    /**
     * The Amazon Web Services account in which the Amazon DataZone environment is created.
     */
    public val awsAccountId: kotlin.String? = builder.awsAccountId
    /**
     * The Amazon Web Services region in which this environment profile is created.
     */
    public val awsAccountRegion: kotlin.String? = builder.awsAccountRegion
    /**
     * The description of this Amazon DataZone environment profile.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The ID of the Amazon DataZone domain in which this environment profile is created.
     */
    public val domainIdentifier: kotlin.String? = builder.domainIdentifier
    /**
     * The ID of the blueprint with which this environment profile is created.
     */
    public val environmentBlueprintIdentifier: kotlin.String? = builder.environmentBlueprintIdentifier
    /**
     * The name of this Amazon DataZone environment profile.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The identifier of the project in which to create the environment profile.
     */
    public val projectIdentifier: kotlin.String? = builder.projectIdentifier
    /**
     * The user parameters of this Amazon DataZone environment profile.
     */
    public val userParameters: List? = builder.userParameters

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

    override fun toString(): kotlin.String = buildString {
        append("CreateEnvironmentProfileRequest(")
        append("awsAccountId=$awsAccountId,")
        append("awsAccountRegion=$awsAccountRegion,")
        append("description=*** Sensitive Data Redacted ***,")
        append("domainIdentifier=$domainIdentifier,")
        append("environmentBlueprintIdentifier=$environmentBlueprintIdentifier,")
        append("name=*** Sensitive Data Redacted ***,")
        append("projectIdentifier=$projectIdentifier,")
        append("userParameters=$userParameters")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = awsAccountId?.hashCode() ?: 0
        result = 31 * result + (awsAccountRegion?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (domainIdentifier?.hashCode() ?: 0)
        result = 31 * result + (environmentBlueprintIdentifier?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (projectIdentifier?.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 CreateEnvironmentProfileRequest

        if (awsAccountId != other.awsAccountId) return false
        if (awsAccountRegion != other.awsAccountRegion) return false
        if (description != other.description) return false
        if (domainIdentifier != other.domainIdentifier) return false
        if (environmentBlueprintIdentifier != other.environmentBlueprintIdentifier) return false
        if (name != other.name) return false
        if (projectIdentifier != other.projectIdentifier) return false
        if (userParameters != other.userParameters) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon Web Services account in which the Amazon DataZone environment is created.
         */
        public var awsAccountId: kotlin.String? = null
        /**
         * The Amazon Web Services region in which this environment profile is created.
         */
        public var awsAccountRegion: kotlin.String? = null
        /**
         * The description of this Amazon DataZone environment profile.
         */
        public var description: kotlin.String? = null
        /**
         * The ID of the Amazon DataZone domain in which this environment profile is created.
         */
        public var domainIdentifier: kotlin.String? = null
        /**
         * The ID of the blueprint with which this environment profile is created.
         */
        public var environmentBlueprintIdentifier: kotlin.String? = null
        /**
         * The name of this Amazon DataZone environment profile.
         */
        public var name: kotlin.String? = null
        /**
         * The identifier of the project in which to create the environment profile.
         */
        public var projectIdentifier: kotlin.String? = null
        /**
         * The user parameters of this Amazon DataZone environment profile.
         */
        public var userParameters: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.CreateEnvironmentProfileRequest) : this() {
            this.awsAccountId = x.awsAccountId
            this.awsAccountRegion = x.awsAccountRegion
            this.description = x.description
            this.domainIdentifier = x.domainIdentifier
            this.environmentBlueprintIdentifier = x.environmentBlueprintIdentifier
            this.name = x.name
            this.projectIdentifier = x.projectIdentifier
            this.userParameters = x.userParameters
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy