
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
/**
* The YAML configuration of the blueprint.
*/
public val pipelineConfigurationBody: kotlin.String? = builder.pipelineConfigurationBody
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("pipelineConfigurationBody=$pipelineConfigurationBody")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = blueprintName?.hashCode() ?: 0
result = 31 * result + (pipelineConfigurationBody?.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 (pipelineConfigurationBody != other.pipelineConfigurationBody) 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
/**
* The YAML configuration of the blueprint.
*/
public var pipelineConfigurationBody: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.osis.model.PipelineBlueprint) : this() {
this.blueprintName = x.blueprintName
this.pipelineConfigurationBody = x.pipelineConfigurationBody
}
@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