commonMain.aws.sdk.kotlin.services.datapipeline.model.PipelineObject.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datapipeline-jvm Show documentation
Show all versions of datapipeline-jvm Show documentation
The AWS SDK for Kotlin client for Data Pipeline
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datapipeline.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains information about a pipeline object. This can be a logical, physical, or physical attempt pipeline object. The complete set of components of a pipeline defines the pipeline.
*/
public class PipelineObject private constructor(builder: Builder) {
/**
* Key-value pairs that define the properties of the object.
*/
public val fields: List = requireNotNull(builder.fields) { "A non-null value must be provided for fields" }
/**
* The ID of the object.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* The name of the object.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datapipeline.model.PipelineObject = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PipelineObject(")
append("fields=$fields,")
append("id=$id,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fields.hashCode()
result = 31 * result + (id.hashCode())
result = 31 * result + (name.hashCode())
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 PipelineObject
if (fields != other.fields) return false
if (id != other.id) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datapipeline.model.PipelineObject = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Key-value pairs that define the properties of the object.
*/
public var fields: List? = null
/**
* The ID of the object.
*/
public var id: kotlin.String? = null
/**
* The name of the object.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datapipeline.model.PipelineObject) : this() {
this.fields = x.fields
this.id = x.id
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datapipeline.model.PipelineObject = PipelineObject(this)
internal fun correctErrors(): Builder {
if (fields == null) fields = emptyList()
if (id == null) id = ""
if (name == null) name = ""
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy