
commonMain.aws.sdk.kotlin.services.codestar.model.DeleteProjectRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codestar.model
public class DeleteProjectRequest private constructor(builder: Builder) {
/**
* A user- or system-generated token that identifies the entity that requested project deletion. This token can be used to repeat the request.
*/
public val clientRequestToken: kotlin.String? = builder.clientRequestToken
/**
* Whether to send a delete request for the primary stack in AWS CloudFormation originally used to generate the project and its resources. This option will delete all AWS resources for the project (except for any buckets in Amazon S3) as well as deleting the project itself. Recommended for most use cases.
*/
public val deleteStack: kotlin.Boolean = builder.deleteStack
/**
* The ID of the project to be deleted in AWS CodeStar.
*/
public val id: kotlin.String? = builder.id
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codestar.model.DeleteProjectRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteProjectRequest(")
append("clientRequestToken=$clientRequestToken,")
append("deleteStack=$deleteStack,")
append("id=$id")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientRequestToken?.hashCode() ?: 0
result = 31 * result + (deleteStack.hashCode())
result = 31 * result + (id?.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 DeleteProjectRequest
if (clientRequestToken != other.clientRequestToken) return false
if (deleteStack != other.deleteStack) return false
if (id != other.id) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codestar.model.DeleteProjectRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A user- or system-generated token that identifies the entity that requested project deletion. This token can be used to repeat the request.
*/
public var clientRequestToken: kotlin.String? = null
/**
* Whether to send a delete request for the primary stack in AWS CloudFormation originally used to generate the project and its resources. This option will delete all AWS resources for the project (except for any buckets in Amazon S3) as well as deleting the project itself. Recommended for most use cases.
*/
public var deleteStack: kotlin.Boolean = false
/**
* The ID of the project to be deleted in AWS CodeStar.
*/
public var id: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codestar.model.DeleteProjectRequest) : this() {
this.clientRequestToken = x.clientRequestToken
this.deleteStack = x.deleteStack
this.id = x.id
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codestar.model.DeleteProjectRequest = DeleteProjectRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy