commonMain.aws.sdk.kotlin.services.sagemakergeospatial.model.SearchRasterDataCollectionRequest.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
public class SearchRasterDataCollectionRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the raster data collection.
*/
public val arn: kotlin.String? = builder.arn
/**
* If the previous response was truncated, you receive this token. Use it in your next request to receive the next set of results.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* RasterDataCollectionQuery consisting of [AreaOfInterest(AOI)](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_geospatial_AreaOfInterest.html), [PropertyFilters](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_geospatial_PropertyFilter.html) and [TimeRangeFilterInput](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_geospatial_TimeRangeFilterInput.html) used in [SearchRasterDataCollection](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_geospatial_SearchRasterDataCollection.html).
*/
public val rasterDataCollectionQuery: aws.sdk.kotlin.services.sagemakergeospatial.model.RasterDataCollectionQueryWithBandFilterInput? = builder.rasterDataCollectionQuery
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemakergeospatial.model.SearchRasterDataCollectionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SearchRasterDataCollectionRequest(")
append("arn=$arn,")
append("nextToken=*** Sensitive Data Redacted ***,")
append("rasterDataCollectionQuery=$rasterDataCollectionQuery")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (rasterDataCollectionQuery?.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 SearchRasterDataCollectionRequest
if (arn != other.arn) return false
if (nextToken != other.nextToken) return false
if (rasterDataCollectionQuery != other.rasterDataCollectionQuery) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemakergeospatial.model.SearchRasterDataCollectionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the raster data collection.
*/
public var arn: kotlin.String? = null
/**
* If the previous response was truncated, you receive this token. Use it in your next request to receive the next set of results.
*/
public var nextToken: kotlin.String? = null
/**
* RasterDataCollectionQuery consisting of [AreaOfInterest(AOI)](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_geospatial_AreaOfInterest.html), [PropertyFilters](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_geospatial_PropertyFilter.html) and [TimeRangeFilterInput](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_geospatial_TimeRangeFilterInput.html) used in [SearchRasterDataCollection](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_geospatial_SearchRasterDataCollection.html).
*/
public var rasterDataCollectionQuery: aws.sdk.kotlin.services.sagemakergeospatial.model.RasterDataCollectionQueryWithBandFilterInput? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemakergeospatial.model.SearchRasterDataCollectionRequest) : this() {
this.arn = x.arn
this.nextToken = x.nextToken
this.rasterDataCollectionQuery = x.rasterDataCollectionQuery
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemakergeospatial.model.SearchRasterDataCollectionRequest = SearchRasterDataCollectionRequest(this)
/**
* construct an [aws.sdk.kotlin.services.sagemakergeospatial.model.RasterDataCollectionQueryWithBandFilterInput] inside the given [block]
*/
public fun rasterDataCollectionQuery(block: aws.sdk.kotlin.services.sagemakergeospatial.model.RasterDataCollectionQueryWithBandFilterInput.Builder.() -> kotlin.Unit) {
this.rasterDataCollectionQuery = aws.sdk.kotlin.services.sagemakergeospatial.model.RasterDataCollectionQueryWithBandFilterInput.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}