commonMain.aws.sdk.kotlin.services.sagemakergeospatial.model.ExportEarthObservationJobRequest.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
public class ExportEarthObservationJobRequest private constructor(builder: Builder) {
/**
* The input Amazon Resource Name (ARN) of the Earth Observation job being exported.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* A unique token that guarantees that the call to this API is idempotent.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
*/
public val executionRoleArn: kotlin.String = requireNotNull(builder.executionRoleArn) { "A non-null value must be provided for executionRoleArn" }
/**
* The source images provided to the Earth Observation job being exported.
*/
public val exportSourceImages: kotlin.Boolean? = builder.exportSourceImages
/**
* An object containing information about the output file.
*/
public val outputConfig: aws.sdk.kotlin.services.sagemakergeospatial.model.OutputConfigInput? = builder.outputConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemakergeospatial.model.ExportEarthObservationJobRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExportEarthObservationJobRequest(")
append("arn=$arn,")
append("clientToken=$clientToken,")
append("executionRoleArn=$executionRoleArn,")
append("exportSourceImages=$exportSourceImages,")
append("outputConfig=$outputConfig")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
result = 31 * result + (clientToken?.hashCode() ?: 0)
result = 31 * result + (executionRoleArn.hashCode())
result = 31 * result + (exportSourceImages?.hashCode() ?: 0)
result = 31 * result + (outputConfig?.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 ExportEarthObservationJobRequest
if (arn != other.arn) return false
if (clientToken != other.clientToken) return false
if (executionRoleArn != other.executionRoleArn) return false
if (exportSourceImages != other.exportSourceImages) return false
if (outputConfig != other.outputConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemakergeospatial.model.ExportEarthObservationJobRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The input Amazon Resource Name (ARN) of the Earth Observation job being exported.
*/
public var arn: kotlin.String? = null
/**
* A unique token that guarantees that the call to this API is idempotent.
*/
public var clientToken: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
*/
public var executionRoleArn: kotlin.String? = null
/**
* The source images provided to the Earth Observation job being exported.
*/
public var exportSourceImages: kotlin.Boolean? = null
/**
* An object containing information about the output file.
*/
public var outputConfig: aws.sdk.kotlin.services.sagemakergeospatial.model.OutputConfigInput? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemakergeospatial.model.ExportEarthObservationJobRequest) : this() {
this.arn = x.arn
this.clientToken = x.clientToken
this.executionRoleArn = x.executionRoleArn
this.exportSourceImages = x.exportSourceImages
this.outputConfig = x.outputConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemakergeospatial.model.ExportEarthObservationJobRequest = ExportEarthObservationJobRequest(this)
/**
* construct an [aws.sdk.kotlin.services.sagemakergeospatial.model.OutputConfigInput] inside the given [block]
*/
public fun outputConfig(block: aws.sdk.kotlin.services.sagemakergeospatial.model.OutputConfigInput.Builder.() -> kotlin.Unit) {
this.outputConfig = aws.sdk.kotlin.services.sagemakergeospatial.model.OutputConfigInput.invoke(block)
}
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
if (executionRoleArn == null) executionRoleArn = ""
return this
}
}
}