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