commonMain.aws.sdk.kotlin.services.datapipeline.model.GetPipelineDefinitionRequest.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 the parameters for GetPipelineDefinition.
*/
public class GetPipelineDefinitionRequest private constructor(builder: Builder) {
/**
* The ID of the pipeline.
*/
public val pipelineId: kotlin.String? = builder.pipelineId
/**
* The version of the pipeline definition to retrieve. Set this parameter to `latest` (default) to use the last definition saved to the pipeline or `active` to use the last definition that was activated.
*/
public val version: kotlin.String? = builder.version
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datapipeline.model.GetPipelineDefinitionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetPipelineDefinitionRequest(")
append("pipelineId=$pipelineId,")
append("version=$version")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = pipelineId?.hashCode() ?: 0
result = 31 * result + (version?.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 GetPipelineDefinitionRequest
if (pipelineId != other.pipelineId) return false
if (version != other.version) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datapipeline.model.GetPipelineDefinitionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the pipeline.
*/
public var pipelineId: kotlin.String? = null
/**
* The version of the pipeline definition to retrieve. Set this parameter to `latest` (default) to use the last definition saved to the pipeline or `active` to use the last definition that was activated.
*/
public var version: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datapipeline.model.GetPipelineDefinitionRequest) : this() {
this.pipelineId = x.pipelineId
this.version = x.version
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datapipeline.model.GetPipelineDefinitionRequest = GetPipelineDefinitionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy