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

commonMain.aws.sdk.kotlin.services.osis.model.PipelineBlueprint.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.osis.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Container for information about an OpenSearch Ingestion blueprint.
 */
public class PipelineBlueprint private constructor(builder: Builder) {
    /**
     * The name of the blueprint.
     */
    public val blueprintName: kotlin.String? = builder.blueprintName
    /**
     * A description of the blueprint.
     */
    public val displayDescription: kotlin.String? = builder.displayDescription
    /**
     * The display name of the blueprint.
     */
    public val displayName: kotlin.String? = builder.displayName
    /**
     * The YAML configuration of the blueprint.
     */
    public val pipelineConfigurationBody: kotlin.String? = builder.pipelineConfigurationBody
    /**
     * The name of the service that the blueprint is associated with.
     */
    public val service: kotlin.String? = builder.service
    /**
     * The use case that the blueprint relates to.
     */
    public val useCase: kotlin.String? = builder.useCase

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

    override fun toString(): kotlin.String = buildString {
        append("PipelineBlueprint(")
        append("blueprintName=$blueprintName,")
        append("displayDescription=$displayDescription,")
        append("displayName=$displayName,")
        append("pipelineConfigurationBody=$pipelineConfigurationBody,")
        append("service=$service,")
        append("useCase=$useCase")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = blueprintName?.hashCode() ?: 0
        result = 31 * result + (displayDescription?.hashCode() ?: 0)
        result = 31 * result + (displayName?.hashCode() ?: 0)
        result = 31 * result + (pipelineConfigurationBody?.hashCode() ?: 0)
        result = 31 * result + (service?.hashCode() ?: 0)
        result = 31 * result + (useCase?.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 PipelineBlueprint

        if (blueprintName != other.blueprintName) return false
        if (displayDescription != other.displayDescription) return false
        if (displayName != other.displayName) return false
        if (pipelineConfigurationBody != other.pipelineConfigurationBody) return false
        if (service != other.service) return false
        if (useCase != other.useCase) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the blueprint.
         */
        public var blueprintName: kotlin.String? = null
        /**
         * A description of the blueprint.
         */
        public var displayDescription: kotlin.String? = null
        /**
         * The display name of the blueprint.
         */
        public var displayName: kotlin.String? = null
        /**
         * The YAML configuration of the blueprint.
         */
        public var pipelineConfigurationBody: kotlin.String? = null
        /**
         * The name of the service that the blueprint is associated with.
         */
        public var service: kotlin.String? = null
        /**
         * The use case that the blueprint relates to.
         */
        public var useCase: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.osis.model.PipelineBlueprint) : this() {
            this.blueprintName = x.blueprintName
            this.displayDescription = x.displayDescription
            this.displayName = x.displayName
            this.pipelineConfigurationBody = x.pipelineConfigurationBody
            this.service = x.service
            this.useCase = x.useCase
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy