
commonMain.aws.sdk.kotlin.services.amplify.model.DeleteAppResponse.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 app request.
*/
public class DeleteAppResponse private constructor(builder: Builder) {
/**
* Represents the different branches of a repository for building, deploying, and hosting an Amplify app.
*/
public val app: aws.sdk.kotlin.services.amplify.model.App? = builder.app
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.amplify.model.DeleteAppResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteAppResponse(")
append("app=$app")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = app?.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 DeleteAppResponse
if (app != other.app) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.amplify.model.DeleteAppResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Represents the different branches of a repository for building, deploying, and hosting an Amplify app.
*/
public var app: aws.sdk.kotlin.services.amplify.model.App? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.amplify.model.DeleteAppResponse) : this() {
this.app = x.app
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.amplify.model.DeleteAppResponse = DeleteAppResponse(this)
/**
* construct an [aws.sdk.kotlin.services.amplify.model.App] inside the given [block]
*/
public fun app(block: aws.sdk.kotlin.services.amplify.model.App.Builder.() -> kotlin.Unit) {
this.app = aws.sdk.kotlin.services.amplify.model.App.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy