commonMain.aws.sdk.kotlin.services.deadline.model.S3Location.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The Amazon S3 location information.
*/
public class S3Location private constructor(builder: Builder) {
/**
* The name of the Amazon S3 bucket.
*/
public val bucketName: kotlin.String = requireNotNull(builder.bucketName) { "A non-null value must be provided for bucketName" }
/**
* The Amazon S3 object key that uniquely identifies the Amazon S3 bucket.
*/
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.deadline.model.S3Location = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3Location(")
append("bucketName=$bucketName,")
append("key=$key")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bucketName.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 S3Location
if (bucketName != other.bucketName) return false
if (key != other.key) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.S3Location = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the Amazon S3 bucket.
*/
public var bucketName: kotlin.String? = null
/**
* The Amazon S3 object key that uniquely identifies the Amazon S3 bucket.
*/
public var key: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.S3Location) : this() {
this.bucketName = x.bucketName
this.key = x.key
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.S3Location = S3Location(this)
internal fun correctErrors(): Builder {
if (bucketName == null) bucketName = ""
if (key == null) key = ""
return this
}
}
}