commonMain.aws.sdk.kotlin.services.proton.model.Revision.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.proton.model
/**
* Revision detail data for a commit and push that activates a sync attempt
*/
public class Revision private constructor(builder: Builder) {
/**
* The repository branch.
*/
public val branch: kotlin.String? = builder.branch
/**
* The repository directory changed by a commit and push that activated the sync attempt.
*/
public val directory: kotlin.String? = builder.directory
/**
* The repository name.
*/
public val repositoryName: kotlin.String? = builder.repositoryName
/**
* The repository provider.
*/
public val repositoryProvider: aws.sdk.kotlin.services.proton.model.RepositoryProvider? = builder.repositoryProvider
/**
* The secure hash algorithm (SHA) hash for the revision.
*/
public val sha: kotlin.String? = builder.sha
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.proton.model.Revision = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Revision(")
append("branch=$branch,")
append("directory=$directory,")
append("repositoryName=$repositoryName,")
append("repositoryProvider=$repositoryProvider,")
append("sha=$sha")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = branch?.hashCode() ?: 0
result = 31 * result + (directory?.hashCode() ?: 0)
result = 31 * result + (repositoryName?.hashCode() ?: 0)
result = 31 * result + (repositoryProvider?.hashCode() ?: 0)
result = 31 * result + (sha?.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 Revision
if (branch != other.branch) return false
if (directory != other.directory) return false
if (repositoryName != other.repositoryName) return false
if (repositoryProvider != other.repositoryProvider) return false
if (sha != other.sha) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.proton.model.Revision = Builder(this).apply(block).build()
public class Builder {
/**
* The repository branch.
*/
public var branch: kotlin.String? = null
/**
* The repository directory changed by a commit and push that activated the sync attempt.
*/
public var directory: kotlin.String? = null
/**
* The repository name.
*/
public var repositoryName: kotlin.String? = null
/**
* The repository provider.
*/
public var repositoryProvider: aws.sdk.kotlin.services.proton.model.RepositoryProvider? = null
/**
* The secure hash algorithm (SHA) hash for the revision.
*/
public var sha: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.proton.model.Revision) : this() {
this.branch = x.branch
this.directory = x.directory
this.repositoryName = x.repositoryName
this.repositoryProvider = x.repositoryProvider
this.sha = x.sha
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.proton.model.Revision = Revision(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy