
commonMain.aws.sdk.kotlin.services.codecommit.model.GetBlobRequest.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 input of a get blob operation.
*/
public class GetBlobRequest private constructor(builder: Builder) {
/**
* The ID of the blob, which is its SHA-1 pointer.
*/
public val blobId: kotlin.String? = builder.blobId
/**
* The name of the repository that contains the blob.
*/
public val repositoryName: kotlin.String? = builder.repositoryName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.GetBlobRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetBlobRequest(")
append("blobId=$blobId,")
append("repositoryName=$repositoryName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = blobId?.hashCode() ?: 0
result = 31 * result + (repositoryName?.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 GetBlobRequest
if (blobId != other.blobId) return false
if (repositoryName != other.repositoryName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.GetBlobRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the blob, which is its SHA-1 pointer.
*/
public var blobId: kotlin.String? = null
/**
* The name of the repository that contains the blob.
*/
public var repositoryName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.GetBlobRequest) : this() {
this.blobId = x.blobId
this.repositoryName = x.repositoryName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.GetBlobRequest = GetBlobRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy