
commonMain.aws.sdk.kotlin.services.amplify.model.DeleteBranchResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.amplify.model
/**
* The result structure for the delete branch request.
*/
public class DeleteBranchResponse private constructor(builder: Builder) {
/**
* The branch for an Amplify app, which maps to a third-party repository branch.
*/
public val branch: aws.sdk.kotlin.services.amplify.model.Branch? = builder.branch
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.amplify.model.DeleteBranchResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteBranchResponse(")
append("branch=$branch")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = branch?.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 (branch != other.branch) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.amplify.model.DeleteBranchResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The branch for an Amplify app, which maps to a third-party repository branch.
*/
public var branch: aws.sdk.kotlin.services.amplify.model.Branch? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.amplify.model.DeleteBranchResponse) : this() {
this.branch = x.branch
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.amplify.model.DeleteBranchResponse = DeleteBranchResponse(this)
/**
* construct an [aws.sdk.kotlin.services.amplify.model.Branch] inside the given [block]
*/
public fun branch(block: aws.sdk.kotlin.services.amplify.model.Branch.Builder.() -> kotlin.Unit) {
this.branch = aws.sdk.kotlin.services.amplify.model.Branch.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy