commonMain.aws.sdk.kotlin.services.codebuild.model.ResolvedArtifact.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codebuild-jvm Show documentation
Show all versions of codebuild-jvm Show documentation
The AWS SDK for Kotlin client for CodeBuild
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codebuild.model
/**
* Represents a resolved build artifact. A resolved artifact is an artifact that is built and deployed to the destination, such as Amazon S3.
*/
class ResolvedArtifact private constructor(builder: Builder) {
/**
* The identifier of the artifact.
*/
val identifier: kotlin.String? = builder.identifier
/**
* The location of the artifact.
*/
val location: kotlin.String? = builder.location
/**
* Specifies the type of artifact.
*/
val type: aws.sdk.kotlin.services.codebuild.model.ArtifactsType? = builder.type
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codebuild.model.ResolvedArtifact = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ResolvedArtifact(")
append("identifier=$identifier,")
append("location=$location,")
append("type=$type)")
}
override fun hashCode(): kotlin.Int {
var result = identifier?.hashCode() ?: 0
result = 31 * result + (location?.hashCode() ?: 0)
result = 31 * result + (type?.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 ResolvedArtifact
if (identifier != other.identifier) return false
if (location != other.location) return false
if (type != other.type) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.ResolvedArtifact = Builder(this).apply(block).build()
class Builder {
/**
* The identifier of the artifact.
*/
var identifier: kotlin.String? = null
/**
* The location of the artifact.
*/
var location: kotlin.String? = null
/**
* Specifies the type of artifact.
*/
var type: aws.sdk.kotlin.services.codebuild.model.ArtifactsType? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codebuild.model.ResolvedArtifact) : this() {
this.identifier = x.identifier
this.location = x.location
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codebuild.model.ResolvedArtifact = ResolvedArtifact(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy