
commonMain.aws.sdk.kotlin.services.groundstation.model.S3Object.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.groundstation.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Object stored in S3 containing ephemeris data.
*/
public class S3Object private constructor(builder: Builder) {
/**
* An Amazon S3 Bucket name.
*/
public val bucket: kotlin.String? = builder.bucket
/**
* An Amazon S3 key for the ephemeris.
*/
public val key: kotlin.String? = builder.key
/**
* For versioned S3 objects, the version to use for the ephemeris.
*/
public val version: kotlin.String? = builder.version
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.groundstation.model.S3Object = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3Object(")
append("bucket=$bucket,")
append("key=$key,")
append("version=$version")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bucket?.hashCode() ?: 0
result = 31 * result + (key?.hashCode() ?: 0)
result = 31 * result + (version?.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 S3Object
if (bucket != other.bucket) return false
if (key != other.key) return false
if (version != other.version) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.groundstation.model.S3Object = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An Amazon S3 Bucket name.
*/
public var bucket: kotlin.String? = null
/**
* An Amazon S3 key for the ephemeris.
*/
public var key: kotlin.String? = null
/**
* For versioned S3 objects, the version to use for the ephemeris.
*/
public var version: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.groundstation.model.S3Object) : this() {
this.bucket = x.bucket
this.key = x.key
this.version = x.version
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.groundstation.model.S3Object = S3Object(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy