
commonMain.aws.sdk.kotlin.services.codecommit.model.UpdateApprovalRuleTemplateDescriptionRequest.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 UpdateApprovalRuleTemplateDescriptionRequest private constructor(builder: Builder) {
/**
* The updated description of the approval rule template.
*/
public val approvalRuleTemplateDescription: kotlin.String? = builder.approvalRuleTemplateDescription
/**
* The name of the template for which you want to update the description.
*/
public val approvalRuleTemplateName: kotlin.String? = builder.approvalRuleTemplateName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.UpdateApprovalRuleTemplateDescriptionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateApprovalRuleTemplateDescriptionRequest(")
append("approvalRuleTemplateDescription=$approvalRuleTemplateDescription,")
append("approvalRuleTemplateName=$approvalRuleTemplateName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = approvalRuleTemplateDescription?.hashCode() ?: 0
result = 31 * result + (approvalRuleTemplateName?.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 UpdateApprovalRuleTemplateDescriptionRequest
if (approvalRuleTemplateDescription != other.approvalRuleTemplateDescription) return false
if (approvalRuleTemplateName != other.approvalRuleTemplateName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.UpdateApprovalRuleTemplateDescriptionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The updated description of the approval rule template.
*/
public var approvalRuleTemplateDescription: kotlin.String? = null
/**
* The name of the template for which you want to update the description.
*/
public var approvalRuleTemplateName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.UpdateApprovalRuleTemplateDescriptionRequest) : this() {
this.approvalRuleTemplateDescription = x.approvalRuleTemplateDescription
this.approvalRuleTemplateName = x.approvalRuleTemplateName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.UpdateApprovalRuleTemplateDescriptionRequest = UpdateApprovalRuleTemplateDescriptionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy