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
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Represents a resolved build artifact. A resolved artifact is an artifact that is built and deployed to the destination, such as Amazon S3.
*/
public class ResolvedArtifact private constructor(builder: Builder) {
/**
* The identifier of the artifact.
*/
public val identifier: kotlin.String? = builder.identifier
/**
* The location of the artifact.
*/
public val location: kotlin.String? = builder.location
/**
* Specifies the type of artifact.
*/
public val type: aws.sdk.kotlin.services.codebuild.model.ArtifactsType? = builder.type
public companion object {
public 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")
append(")")
}
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
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.ResolvedArtifact = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier of the artifact.
*/
public var identifier: kotlin.String? = null
/**
* The location of the artifact.
*/
public var location: kotlin.String? = null
/**
* Specifies the type of artifact.
*/
public var type: aws.sdk.kotlin.services.codebuild.model.ArtifactsType? = null
@PublishedApi
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)
internal fun correctErrors(): Builder {
return this
}
}
}