commonMain.aws.sdk.kotlin.services.proton.model.RepositorySyncDefinition.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.proton.model
/**
* A repository sync definition.
*/
public class RepositorySyncDefinition private constructor(builder: Builder) {
/**
* The repository branch.
*/
public val branch: kotlin.String? = builder.branch
/**
* The directory in the repository.
*/
public val directory: kotlin.String? = builder.directory
/**
* The resource that is synced from.
*/
public val parent: kotlin.String? = builder.parent
/**
* The resource that is synced to.
*/
public val target: kotlin.String? = builder.target
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.proton.model.RepositorySyncDefinition = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RepositorySyncDefinition(")
append("branch=$branch,")
append("directory=$directory,")
append("parent=$parent,")
append("target=$target")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = branch?.hashCode() ?: 0
result = 31 * result + (directory?.hashCode() ?: 0)
result = 31 * result + (parent?.hashCode() ?: 0)
result = 31 * result + (target?.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 RepositorySyncDefinition
if (branch != other.branch) return false
if (directory != other.directory) return false
if (parent != other.parent) return false
if (target != other.target) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.proton.model.RepositorySyncDefinition = Builder(this).apply(block).build()
public class Builder {
/**
* The repository branch.
*/
public var branch: kotlin.String? = null
/**
* The directory in the repository.
*/
public var directory: kotlin.String? = null
/**
* The resource that is synced from.
*/
public var parent: kotlin.String? = null
/**
* The resource that is synced to.
*/
public var target: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.proton.model.RepositorySyncDefinition) : this() {
this.branch = x.branch
this.directory = x.directory
this.parent = x.parent
this.target = x.target
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.proton.model.RepositorySyncDefinition = RepositorySyncDefinition(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy