
commonMain.aws.sdk.kotlin.services.codecommit.model.GetBlobResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codecommit.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Represents the output of a get blob operation.
*/
public class GetBlobResponse private constructor(builder: Builder) {
/**
* The content of the blob, usually a file.
*/
public val content: kotlin.ByteArray = requireNotNull(builder.content) { "A non-null value must be provided for content" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.GetBlobResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetBlobResponse(")
append("content=$content")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = content.contentHashCode()
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 GetBlobResponse
if (content != null) {
if (other.content == null) return false
if (!content.contentEquals(other.content)) return false
} else if (other.content != null) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.GetBlobResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The content of the blob, usually a file.
*/
public var content: kotlin.ByteArray? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.GetBlobResponse) : this() {
this.content = x.content
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.GetBlobResponse = GetBlobResponse(this)
internal fun correctErrors(): Builder {
if (content == null) content = ByteArray(0)
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy