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