commonMain.aws.sdk.kotlin.services.sagemakergeospatial.model.RasterDataCollectionMetadata.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemakergeospatial.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Response object containing details for a specific RasterDataCollection.
*/
public class RasterDataCollectionMetadata 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 description URL of the raster data collection.
*/
public val descriptionPageUrl: kotlin.String? = builder.descriptionPageUrl
/**
* 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 list of 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 type of raster data collection.
*/
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.RasterDataCollectionMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RasterDataCollectionMetadata(")
append("arn=$arn,")
append("description=$description,")
append("descriptionPageUrl=$descriptionPageUrl,")
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() ?: 0)
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 RasterDataCollectionMetadata
if (arn != other.arn) return false
if (description != other.description) return false
if (descriptionPageUrl != other.descriptionPageUrl) 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.RasterDataCollectionMetadata = 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 description URL of the raster data collection.
*/
public var descriptionPageUrl: kotlin.String? = null
/**
* The name of the raster data collection.
*/
public var name: kotlin.String? = null
/**
* The list of 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 type of raster data collection.
*/
public var type: aws.sdk.kotlin.services.sagemakergeospatial.model.DataCollectionType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemakergeospatial.model.RasterDataCollectionMetadata) : this() {
this.arn = x.arn
this.description = x.description
this.descriptionPageUrl = x.descriptionPageUrl
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.RasterDataCollectionMetadata = RasterDataCollectionMetadata(this)
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
if (description == null) description = ""
if (name == null) name = ""
if (supportedFilters == null) supportedFilters = emptyList()
if (type == null) type = DataCollectionType.SdkUnknown("no value provided")
return this
}
}
}