commonMain.aws.sdk.kotlin.services.signer.model.S3SignedObject.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.signer.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The Amazon S3 bucket name and key where Signer saved your signed code image.
*/
public class S3SignedObject private constructor(builder: Builder) {
/**
* Name of the S3 bucket.
*/
public val bucketName: kotlin.String? = builder.bucketName
/**
* Key name that uniquely identifies a signed code image in your bucket.
*/
public val key: kotlin.String? = builder.key
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.signer.model.S3SignedObject = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3SignedObject(")
append("bucketName=$bucketName,")
append("key=$key")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = bucketName?.hashCode() ?: 0
result = 31 * result + (key?.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 S3SignedObject
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.signer.model.S3SignedObject = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Name of the S3 bucket.
*/
public var bucketName: kotlin.String? = null
/**
* Key name that uniquely identifies a signed code image in your bucket.
*/
public var key: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.signer.model.S3SignedObject) : this() {
this.bucketName = x.bucketName
this.key = x.key
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.signer.model.S3SignedObject = S3SignedObject(this)
internal fun correctErrors(): Builder {
return this
}
}
}