
commonMain.aws.sdk.kotlin.services.osis.model.ValidatePipelineResponse.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
public class ValidatePipelineResponse private constructor(builder: Builder) {
/**
* A list of errors if the configuration is invalid.
*/
public val errors: List? = builder.errors
/**
* A boolean indicating whether or not the pipeline configuration is valid.
*/
public val isValid: kotlin.Boolean? = builder.isValid
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.osis.model.ValidatePipelineResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ValidatePipelineResponse(")
append("errors=$errors,")
append("isValid=$isValid")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errors?.hashCode() ?: 0
result = 31 * result + (isValid?.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 ValidatePipelineResponse
if (errors != other.errors) return false
if (isValid != other.isValid) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.osis.model.ValidatePipelineResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of errors if the configuration is invalid.
*/
public var errors: List? = null
/**
* A boolean indicating whether or not the pipeline configuration is valid.
*/
public var isValid: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.osis.model.ValidatePipelineResponse) : this() {
this.errors = x.errors
this.isValid = x.isValid
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.osis.model.ValidatePipelineResponse = ValidatePipelineResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy