commonMain.aws.sdk.kotlin.services.proton.model.S3ObjectSource.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proton-jvm Show documentation
Show all versions of proton-jvm Show documentation
The AWS SDK for Kotlin client for Proton
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.proton.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Template bundle S3 bucket data.
*/
public class S3ObjectSource private constructor(builder: Builder) {
/**
* The name of the S3 bucket that contains a template bundle.
*/
public val bucket: kotlin.String = requireNotNull(builder.bucket) { "A non-null value must be provided for bucket" }
/**
* The path to the S3 bucket that contains a template bundle.
*/
public val key: kotlin.String = requireNotNull(builder.key) { "A non-null value must be provided for key" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.proton.model.S3ObjectSource = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3ObjectSource(")
append("bucket=$bucket,")
append("key=$key")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bucket.hashCode()
result = 31 * result + (key.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 S3ObjectSource
if (bucket != other.bucket) return false
if (key != other.key) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.proton.model.S3ObjectSource = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the S3 bucket that contains a template bundle.
*/
public var bucket: kotlin.String? = null
/**
* The path to the S3 bucket that contains a template bundle.
*/
public var key: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.proton.model.S3ObjectSource) : this() {
this.bucket = x.bucket
this.key = x.key
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.proton.model.S3ObjectSource = S3ObjectSource(this)
internal fun correctErrors(): Builder {
if (bucket == null) bucket = ""
if (key == null) key = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy