
commonMain.aws.sdk.kotlin.services.groundstation.model.DataflowEndpointConfig.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 the dataflow endpoint `Config`.
*/
public class DataflowEndpointConfig private constructor(builder: Builder) {
/**
* Name of a dataflow endpoint.
*/
public val dataflowEndpointName: kotlin.String = requireNotNull(builder.dataflowEndpointName) { "A non-null value must be provided for dataflowEndpointName" }
/**
* Region of a dataflow endpoint.
*/
public val dataflowEndpointRegion: kotlin.String? = builder.dataflowEndpointRegion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.DataflowEndpointConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DataflowEndpointConfig(")
append("dataflowEndpointName=$dataflowEndpointName,")
append("dataflowEndpointRegion=$dataflowEndpointRegion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dataflowEndpointName.hashCode()
result = 31 * result + (dataflowEndpointRegion?.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 DataflowEndpointConfig
if (dataflowEndpointName != other.dataflowEndpointName) return false
if (dataflowEndpointRegion != other.dataflowEndpointRegion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.DataflowEndpointConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Name of a dataflow endpoint.
*/
public var dataflowEndpointName: kotlin.String? = null
/**
* Region of a dataflow endpoint.
*/
public var dataflowEndpointRegion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.groundstation.model.DataflowEndpointConfig) : this() {
this.dataflowEndpointName = x.dataflowEndpointName
this.dataflowEndpointRegion = x.dataflowEndpointRegion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.groundstation.model.DataflowEndpointConfig = DataflowEndpointConfig(this)
internal fun correctErrors(): Builder {
if (dataflowEndpointName == null) dataflowEndpointName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy