
commonMain.aws.sdk.kotlin.services.codecommit.model.BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.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 BatchAssociateApprovalRuleTemplateWithRepositoriesRequest private constructor(builder: Builder) {
/**
* The name of the template you want to associate with one or more repositories.
*/
public val approvalRuleTemplateName: kotlin.String? = builder.approvalRuleTemplateName
/**
* The names of the repositories you want to associate with the template.
*
* The length constraint limit is for each string in the array. The array itself can be empty.
*/
public val repositoryNames: List? = builder.repositoryNames
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.BatchAssociateApprovalRuleTemplateWithRepositoriesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchAssociateApprovalRuleTemplateWithRepositoriesRequest(")
append("approvalRuleTemplateName=$approvalRuleTemplateName,")
append("repositoryNames=$repositoryNames")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = approvalRuleTemplateName?.hashCode() ?: 0
result = 31 * result + (repositoryNames?.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 BatchAssociateApprovalRuleTemplateWithRepositoriesRequest
if (approvalRuleTemplateName != other.approvalRuleTemplateName) return false
if (repositoryNames != other.repositoryNames) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.BatchAssociateApprovalRuleTemplateWithRepositoriesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the template you want to associate with one or more repositories.
*/
public var approvalRuleTemplateName: kotlin.String? = null
/**
* The names of the repositories you want to associate with the template.
*
* The length constraint limit is for each string in the array. The array itself can be empty.
*/
public var repositoryNames: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.BatchAssociateApprovalRuleTemplateWithRepositoriesRequest) : this() {
this.approvalRuleTemplateName = x.approvalRuleTemplateName
this.repositoryNames = x.repositoryNames
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.BatchAssociateApprovalRuleTemplateWithRepositoriesRequest = BatchAssociateApprovalRuleTemplateWithRepositoriesRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy