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