
commonMain.aws.sdk.kotlin.services.codecommit.model.DeleteApprovalRuleTemplateResponse.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
public class DeleteApprovalRuleTemplateResponse private constructor(builder: Builder) {
/**
* The system-generated ID of the deleted approval rule template. If the template has been previously deleted, the only response is a 200 OK.
*/
public val approvalRuleTemplateId: kotlin.String = requireNotNull(builder.approvalRuleTemplateId) { "A non-null value must be provided for approvalRuleTemplateId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.DeleteApprovalRuleTemplateResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteApprovalRuleTemplateResponse(")
append("approvalRuleTemplateId=$approvalRuleTemplateId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = approvalRuleTemplateId.hashCode()
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 DeleteApprovalRuleTemplateResponse
if (approvalRuleTemplateId != other.approvalRuleTemplateId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.DeleteApprovalRuleTemplateResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The system-generated ID of the deleted approval rule template. If the template has been previously deleted, the only response is a 200 OK.
*/
public var approvalRuleTemplateId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.DeleteApprovalRuleTemplateResponse) : this() {
this.approvalRuleTemplateId = x.approvalRuleTemplateId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.DeleteApprovalRuleTemplateResponse = DeleteApprovalRuleTemplateResponse(this)
internal fun correctErrors(): Builder {
if (approvalRuleTemplateId == null) approvalRuleTemplateId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy