commonMain.aws.sdk.kotlin.services.freetier.model.DimensionValues.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freetier-jvm Show documentation
Show all versions of freetier-jvm Show documentation
The AWS SDK for Kotlin client for FreeTier
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.freetier.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains the specifications for the filters to use for your request.
*/
public class DimensionValues private constructor(builder: Builder) {
/**
* The name of the dimension that you want to filter on.
*/
public val key: aws.sdk.kotlin.services.freetier.model.Dimension = requireNotNull(builder.key) { "A non-null value must be provided for key" }
/**
* The match options that you can use to filter your results. You can specify only one of these values in the array.
*/
public val matchOptions: List = requireNotNull(builder.matchOptions) { "A non-null value must be provided for matchOptions" }
/**
* The metadata values you can specify to filter upon, so that the results all match at least one of the specified values.
*/
public val values: List = requireNotNull(builder.values) { "A non-null value must be provided for values" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.freetier.model.DimensionValues = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DimensionValues(")
append("key=$key,")
append("matchOptions=$matchOptions,")
append("values=$values")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = key.hashCode()
result = 31 * result + (matchOptions.hashCode())
result = 31 * result + (values.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 DimensionValues
if (key != other.key) return false
if (matchOptions != other.matchOptions) return false
if (values != other.values) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.freetier.model.DimensionValues = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the dimension that you want to filter on.
*/
public var key: aws.sdk.kotlin.services.freetier.model.Dimension? = null
/**
* The match options that you can use to filter your results. You can specify only one of these values in the array.
*/
public var matchOptions: List? = null
/**
* The metadata values you can specify to filter upon, so that the results all match at least one of the specified values.
*/
public var values: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.freetier.model.DimensionValues) : this() {
this.key = x.key
this.matchOptions = x.matchOptions
this.values = x.values
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.freetier.model.DimensionValues = DimensionValues(this)
internal fun correctErrors(): Builder {
if (key == null) key = Dimension.SdkUnknown("no value provided")
if (matchOptions == null) matchOptions = emptyList()
if (values == null) values = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy