commonMain.aws.sdk.kotlin.services.bedrockagent.model.DeleteAgentRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bedrockagent-jvm Show documentation
Show all versions of bedrockagent-jvm Show documentation
The AWS SDK for Kotlin client for Bedrock Agent
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrockagent.model
public class DeleteAgentRequest private constructor(builder: Builder) {
/**
* The unique identifier of the agent to delete.
*/
public val agentId: kotlin.String? = builder.agentId
/**
* By default, this value is `false` and deletion is stopped if the resource is in use. If you set it to `true`, the resource will be deleted even if the resource is in use.
*/
public val skipResourceInUseCheck: kotlin.Boolean? = builder.skipResourceInUseCheck
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrockagent.model.DeleteAgentRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteAgentRequest(")
append("agentId=$agentId,")
append("skipResourceInUseCheck=$skipResourceInUseCheck")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = agentId?.hashCode() ?: 0
result = 31 * result + (skipResourceInUseCheck?.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 DeleteAgentRequest
if (agentId != other.agentId) return false
if (skipResourceInUseCheck != other.skipResourceInUseCheck) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrockagent.model.DeleteAgentRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The unique identifier of the agent to delete.
*/
public var agentId: kotlin.String? = null
/**
* By default, this value is `false` and deletion is stopped if the resource is in use. If you set it to `true`, the resource will be deleted even if the resource is in use.
*/
public var skipResourceInUseCheck: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.DeleteAgentRequest) : this() {
this.agentId = x.agentId
this.skipResourceInUseCheck = x.skipResourceInUseCheck
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrockagent.model.DeleteAgentRequest = DeleteAgentRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}