commonMain.aws.sdk.kotlin.services.sagemakergeospatial.model.GetRasterDataCollectionResponse.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 GetRasterDataCollectionResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the raster data collection.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* A description of the raster data collection.
*/
public val description: kotlin.String = requireNotNull(builder.description) { "A non-null value must be provided for description" }
/**
* The URL of the description page.
*/
public val descriptionPageUrl: kotlin.String = requireNotNull(builder.descriptionPageUrl) { "A non-null value must be provided for descriptionPageUrl" }
/**
* The list of image source bands in the raster data collection.
*/
public val imageSourceBands: List = requireNotNull(builder.imageSourceBands) { "A non-null value must be provided for imageSourceBands" }
/**
* The name of the raster data collection.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* The filters supported by the raster data collection.
*/
public val supportedFilters: List = requireNotNull(builder.supportedFilters) { "A non-null value must be provided for supportedFilters" }
/**
* Each tag consists of a key and a value.
*/
public val tags: Map? = builder.tags
/**
* The raster data collection type.
*/
public val type: aws.sdk.kotlin.services.sagemakergeospatial.model.DataCollectionType = requireNotNull(builder.type) { "A non-null value must be provided for type" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemakergeospatial.model.GetRasterDataCollectionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetRasterDataCollectionResponse(")
append("arn=$arn,")
append("description=$description,")
append("descriptionPageUrl=$descriptionPageUrl,")
append("imageSourceBands=$imageSourceBands,")
append("name=$name,")
append("supportedFilters=$supportedFilters,")
append("tags=$tags,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
result = 31 * result + (description.hashCode())
result = 31 * result + (descriptionPageUrl.hashCode())
result = 31 * result + (imageSourceBands.hashCode())
result = 31 * result + (name.hashCode())
result = 31 * result + (supportedFilters.hashCode())
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (type.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 GetRasterDataCollectionResponse
if (arn != other.arn) return false
if (description != other.description) return false
if (descriptionPageUrl != other.descriptionPageUrl) return false
if (imageSourceBands != other.imageSourceBands) return false
if (name != other.name) return false
if (supportedFilters != other.supportedFilters) return false
if (tags != other.tags) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemakergeospatial.model.GetRasterDataCollectionResponse = 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
/**
* A description of the raster data collection.
*/
public var description: kotlin.String? = null
/**
* The URL of the description page.
*/
public var descriptionPageUrl: kotlin.String? = null
/**
* The list of image source bands in the raster data collection.
*/
public var imageSourceBands: List? = null
/**
* The name of the raster data collection.
*/
public var name: kotlin.String? = null
/**
* The filters supported by the raster data collection.
*/
public var supportedFilters: List? = null
/**
* Each tag consists of a key and a value.
*/
public var tags: Map? = null
/**
* The raster data collection type.
*/
public var type: aws.sdk.kotlin.services.sagemakergeospatial.model.DataCollectionType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemakergeospatial.model.GetRasterDataCollectionResponse) : this() {
this.arn = x.arn
this.description = x.description
this.descriptionPageUrl = x.descriptionPageUrl
this.imageSourceBands = x.imageSourceBands
this.name = x.name
this.supportedFilters = x.supportedFilters
this.tags = x.tags
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemakergeospatial.model.GetRasterDataCollectionResponse = GetRasterDataCollectionResponse(this)
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
if (description == null) description = ""
if (descriptionPageUrl == null) descriptionPageUrl = ""
if (imageSourceBands == null) imageSourceBands = emptyList()
if (name == null) name = ""
if (supportedFilters == null) supportedFilters = emptyList()
if (type == null) type = DataCollectionType.SdkUnknown("no value provided")
return this
}
}
}