commonMain.aws.sdk.kotlin.services.datapipeline.model.PutPipelineDefinitionResponse.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 output of PutPipelineDefinition.
*/
public class PutPipelineDefinitionResponse private constructor(builder: Builder) {
/**
* Indicates whether there were validation errors, and the pipeline definition is stored but cannot be activated until you correct the pipeline and call `PutPipelineDefinition` to commit the corrected pipeline.
*/
public val errored: kotlin.Boolean = builder.errored
/**
* The validation errors that are associated with the objects defined in `pipelineObjects`.
*/
public val validationErrors: List? = builder.validationErrors
/**
* The validation warnings that are associated with the objects defined in `pipelineObjects`.
*/
public val validationWarnings: List? = builder.validationWarnings
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datapipeline.model.PutPipelineDefinitionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutPipelineDefinitionResponse(")
append("errored=$errored,")
append("validationErrors=$validationErrors,")
append("validationWarnings=$validationWarnings")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errored.hashCode()
result = 31 * result + (validationErrors?.hashCode() ?: 0)
result = 31 * result + (validationWarnings?.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 PutPipelineDefinitionResponse
if (errored != other.errored) return false
if (validationErrors != other.validationErrors) return false
if (validationWarnings != other.validationWarnings) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datapipeline.model.PutPipelineDefinitionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Indicates whether there were validation errors, and the pipeline definition is stored but cannot be activated until you correct the pipeline and call `PutPipelineDefinition` to commit the corrected pipeline.
*/
public var errored: kotlin.Boolean = false
/**
* The validation errors that are associated with the objects defined in `pipelineObjects`.
*/
public var validationErrors: List? = null
/**
* The validation warnings that are associated with the objects defined in `pipelineObjects`.
*/
public var validationWarnings: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datapipeline.model.PutPipelineDefinitionResponse) : this() {
this.errored = x.errored
this.validationErrors = x.validationErrors
this.validationWarnings = x.validationWarnings
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datapipeline.model.PutPipelineDefinitionResponse = PutPipelineDefinitionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy