commonMain.aws.sdk.kotlin.services.sagemakergeospatial.model.PlatformInput.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sagemakergeospatial-jvm Show documentation
Show all versions of sagemakergeospatial-jvm Show documentation
The AWS SDK for Kotlin client for SageMaker Geospatial
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemakergeospatial.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The input structure for specifying Platform. Platform refers to the unique name of the specific platform the instrument is attached to. For satellites it is the name of the satellite, eg. landsat-8 (Landsat-8), sentinel-2a.
*/
public class PlatformInput private constructor(builder: Builder) {
/**
* The ComparisonOperator to use with PlatformInput.
*/
public val comparisonOperator: aws.sdk.kotlin.services.sagemakergeospatial.model.ComparisonOperator? = builder.comparisonOperator
/**
* The value of the platform.
*/
public val value: kotlin.String = requireNotNull(builder.value) { "A non-null value must be provided for value" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemakergeospatial.model.PlatformInput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PlatformInput(")
append("comparisonOperator=$comparisonOperator,")
append("value=$value")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = comparisonOperator?.hashCode() ?: 0
result = 31 * result + (value.hashCode())
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 PlatformInput
if (comparisonOperator != other.comparisonOperator) return false
if (value != other.value) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemakergeospatial.model.PlatformInput = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ComparisonOperator to use with PlatformInput.
*/
public var comparisonOperator: aws.sdk.kotlin.services.sagemakergeospatial.model.ComparisonOperator? = null
/**
* The value of the platform.
*/
public var value: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemakergeospatial.model.PlatformInput) : this() {
this.comparisonOperator = x.comparisonOperator
this.value = x.value
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemakergeospatial.model.PlatformInput = PlatformInput(this)
internal fun correctErrors(): Builder {
if (value == null) value = ""
return this
}
}
}