commonMain.aws.sdk.kotlin.services.sagemakergeospatial.model.RasterDataCollectionQueryOutput.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 output structure contains the Raster Data Collection Query input along with some additional metadata.
*/
public class RasterDataCollectionQueryOutput private constructor(builder: Builder) {
/**
* The Area of Interest used in the search.
*/
public val areaOfInterest: aws.sdk.kotlin.services.sagemakergeospatial.model.AreaOfInterest? = builder.areaOfInterest
/**
* Property filters used in the search.
*/
public val propertyFilters: aws.sdk.kotlin.services.sagemakergeospatial.model.PropertyFilters? = builder.propertyFilters
/**
* The ARN of the Raster Data Collection against which the search is done.
*/
public val rasterDataCollectionArn: kotlin.String = requireNotNull(builder.rasterDataCollectionArn) { "A non-null value must be provided for rasterDataCollectionArn" }
/**
* The name of the raster data collection.
*/
public val rasterDataCollectionName: kotlin.String = requireNotNull(builder.rasterDataCollectionName) { "A non-null value must be provided for rasterDataCollectionName" }
/**
* The TimeRange filter used in the search.
*/
public val timeRangeFilter: aws.sdk.kotlin.services.sagemakergeospatial.model.TimeRangeFilterOutput? = builder.timeRangeFilter
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemakergeospatial.model.RasterDataCollectionQueryOutput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RasterDataCollectionQueryOutput(")
append("areaOfInterest=$areaOfInterest,")
append("propertyFilters=$propertyFilters,")
append("rasterDataCollectionArn=$rasterDataCollectionArn,")
append("rasterDataCollectionName=$rasterDataCollectionName,")
append("timeRangeFilter=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = areaOfInterest?.hashCode() ?: 0
result = 31 * result + (propertyFilters?.hashCode() ?: 0)
result = 31 * result + (rasterDataCollectionArn.hashCode())
result = 31 * result + (rasterDataCollectionName.hashCode())
result = 31 * result + (timeRangeFilter?.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 RasterDataCollectionQueryOutput
if (areaOfInterest != other.areaOfInterest) return false
if (propertyFilters != other.propertyFilters) return false
if (rasterDataCollectionArn != other.rasterDataCollectionArn) return false
if (rasterDataCollectionName != other.rasterDataCollectionName) return false
if (timeRangeFilter != other.timeRangeFilter) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemakergeospatial.model.RasterDataCollectionQueryOutput = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Area of Interest used in the search.
*/
public var areaOfInterest: aws.sdk.kotlin.services.sagemakergeospatial.model.AreaOfInterest? = null
/**
* Property filters used in the search.
*/
public var propertyFilters: aws.sdk.kotlin.services.sagemakergeospatial.model.PropertyFilters? = null
/**
* The ARN of the Raster Data Collection against which the search is done.
*/
public var rasterDataCollectionArn: kotlin.String? = null
/**
* The name of the raster data collection.
*/
public var rasterDataCollectionName: kotlin.String? = null
/**
* The TimeRange filter used in the search.
*/
public var timeRangeFilter: aws.sdk.kotlin.services.sagemakergeospatial.model.TimeRangeFilterOutput? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemakergeospatial.model.RasterDataCollectionQueryOutput) : this() {
this.areaOfInterest = x.areaOfInterest
this.propertyFilters = x.propertyFilters
this.rasterDataCollectionArn = x.rasterDataCollectionArn
this.rasterDataCollectionName = x.rasterDataCollectionName
this.timeRangeFilter = x.timeRangeFilter
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemakergeospatial.model.RasterDataCollectionQueryOutput = RasterDataCollectionQueryOutput(this)
/**
* construct an [aws.sdk.kotlin.services.sagemakergeospatial.model.PropertyFilters] inside the given [block]
*/
public fun propertyFilters(block: aws.sdk.kotlin.services.sagemakergeospatial.model.PropertyFilters.Builder.() -> kotlin.Unit) {
this.propertyFilters = aws.sdk.kotlin.services.sagemakergeospatial.model.PropertyFilters.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.sagemakergeospatial.model.TimeRangeFilterOutput] inside the given [block]
*/
public fun timeRangeFilter(block: aws.sdk.kotlin.services.sagemakergeospatial.model.TimeRangeFilterOutput.Builder.() -> kotlin.Unit) {
this.timeRangeFilter = aws.sdk.kotlin.services.sagemakergeospatial.model.TimeRangeFilterOutput.invoke(block)
}
internal fun correctErrors(): Builder {
if (rasterDataCollectionArn == null) rasterDataCollectionArn = ""
if (rasterDataCollectionName == null) rasterDataCollectionName = ""
return this
}
}
}