
commonMain.aws.sdk.kotlin.services.amplify.model.Artifact.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.amplify.model
/**
* Describes an artifact.
*/
public class Artifact private constructor(builder: Builder) {
/**
* The file name for the artifact.
*/
public val artifactFileName: kotlin.String = requireNotNull(builder.artifactFileName) { "A non-null value must be provided for artifactFileName" }
/**
* The unique ID for the artifact.
*/
public val artifactId: kotlin.String = requireNotNull(builder.artifactId) { "A non-null value must be provided for artifactId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.amplify.model.Artifact = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Artifact(")
append("artifactFileName=$artifactFileName,")
append("artifactId=$artifactId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = artifactFileName.hashCode()
result = 31 * result + (artifactId.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 Artifact
if (artifactFileName != other.artifactFileName) return false
if (artifactId != other.artifactId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.amplify.model.Artifact = Builder(this).apply(block).build()
public class Builder {
/**
* The file name for the artifact.
*/
public var artifactFileName: kotlin.String? = null
/**
* The unique ID for the artifact.
*/
public var artifactId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.amplify.model.Artifact) : this() {
this.artifactFileName = x.artifactFileName
this.artifactId = x.artifactId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.amplify.model.Artifact = Artifact(this)
internal fun correctErrors(): Builder {
if (artifactFileName == null) artifactFileName = ""
if (artifactId == null) artifactId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy