commonMain.aws.sdk.kotlin.services.appflow.model.Range.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appflow-jvm Show documentation
Show all versions of appflow-jvm Show documentation
The AWS SDK for Kotlin client for Appflow
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appflow.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The range of values that the property supports.
*/
public class Range private constructor(builder: Builder) {
/**
* Maximum value supported by the field.
*/
public val maximum: kotlin.Double = builder.maximum
/**
* Minimum value supported by the field.
*/
public val minimum: kotlin.Double = builder.minimum
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.Range = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Range(")
append("maximum=$maximum,")
append("minimum=$minimum")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maximum.hashCode()
result = 31 * result + (minimum.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 Range
if (!(maximum?.equals(other.maximum) ?: (other.maximum == null))) return false
if (!(minimum?.equals(other.minimum) ?: (other.minimum == null))) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.Range = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Maximum value supported by the field.
*/
public var maximum: kotlin.Double = 0.0
/**
* Minimum value supported by the field.
*/
public var minimum: kotlin.Double = 0.0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appflow.model.Range) : this() {
this.maximum = x.maximum
this.minimum = x.minimum
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appflow.model.Range = Range(this)
internal fun correctErrors(): Builder {
return this
}
}
}