
commonMain.aws.sdk.kotlin.services.groundstation.model.DataflowDetail.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.groundstation.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about a dataflow edge used in a contact.
*/
public class DataflowDetail private constructor(builder: Builder) {
/**
* Dataflow details for the destination side.
*/
public val destination: aws.sdk.kotlin.services.groundstation.model.Destination? = builder.destination
/**
* Error message for a dataflow.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* Dataflow details for the source side.
*/
public val source: aws.sdk.kotlin.services.groundstation.model.Source? = builder.source
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.DataflowDetail = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DataflowDetail(")
append("destination=$destination,")
append("errorMessage=$errorMessage,")
append("source=$source")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destination?.hashCode() ?: 0
result = 31 * result + (errorMessage?.hashCode() ?: 0)
result = 31 * result + (source?.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 DataflowDetail
if (destination != other.destination) return false
if (errorMessage != other.errorMessage) return false
if (source != other.source) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.DataflowDetail = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Dataflow details for the destination side.
*/
public var destination: aws.sdk.kotlin.services.groundstation.model.Destination? = null
/**
* Error message for a dataflow.
*/
public var errorMessage: kotlin.String? = null
/**
* Dataflow details for the source side.
*/
public var source: aws.sdk.kotlin.services.groundstation.model.Source? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.groundstation.model.DataflowDetail) : this() {
this.destination = x.destination
this.errorMessage = x.errorMessage
this.source = x.source
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.groundstation.model.DataflowDetail = DataflowDetail(this)
/**
* construct an [aws.sdk.kotlin.services.groundstation.model.Destination] inside the given [block]
*/
public fun destination(block: aws.sdk.kotlin.services.groundstation.model.Destination.Builder.() -> kotlin.Unit) {
this.destination = aws.sdk.kotlin.services.groundstation.model.Destination.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.groundstation.model.Source] inside the given [block]
*/
public fun source(block: aws.sdk.kotlin.services.groundstation.model.Source.Builder.() -> kotlin.Unit) {
this.source = aws.sdk.kotlin.services.groundstation.model.Source.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy