
commonMain.aws.sdk.kotlin.services.codecommit.model.DeleteBranchResponse.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 delete branch operation.
*/
public class DeleteBranchResponse private constructor(builder: Builder) {
/**
* Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.
*/
public val deletedBranch: aws.sdk.kotlin.services.codecommit.model.BranchInfo? = builder.deletedBranch
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.DeleteBranchResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteBranchResponse(")
append("deletedBranch=$deletedBranch")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deletedBranch?.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 DeleteBranchResponse
if (deletedBranch != other.deletedBranch) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.DeleteBranchResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.
*/
public var deletedBranch: aws.sdk.kotlin.services.codecommit.model.BranchInfo? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.DeleteBranchResponse) : this() {
this.deletedBranch = x.deletedBranch
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.DeleteBranchResponse = DeleteBranchResponse(this)
/**
* construct an [aws.sdk.kotlin.services.codecommit.model.BranchInfo] inside the given [block]
*/
public fun deletedBranch(block: aws.sdk.kotlin.services.codecommit.model.BranchInfo.Builder.() -> kotlin.Unit) {
this.deletedBranch = aws.sdk.kotlin.services.codecommit.model.BranchInfo.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy