
commonMain.aws.sdk.kotlin.services.codecommit.model.CreateCommitResponse.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 CreateCommitResponse private constructor(builder: Builder) {
/**
* The full commit ID of the commit that contains your committed file changes.
*/
public val commitId: kotlin.String? = builder.commitId
/**
* The files added as part of the committed file changes.
*/
public val filesAdded: List? = builder.filesAdded
/**
* The files deleted as part of the committed file changes.
*/
public val filesDeleted: List? = builder.filesDeleted
/**
* The files updated as part of the commited file changes.
*/
public val filesUpdated: List? = builder.filesUpdated
/**
* The full SHA-1 pointer of the tree information for the commit that contains the commited file changes.
*/
public val treeId: kotlin.String? = builder.treeId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.CreateCommitResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateCommitResponse(")
append("commitId=$commitId,")
append("filesAdded=$filesAdded,")
append("filesDeleted=$filesDeleted,")
append("filesUpdated=$filesUpdated,")
append("treeId=$treeId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = commitId?.hashCode() ?: 0
result = 31 * result + (filesAdded?.hashCode() ?: 0)
result = 31 * result + (filesDeleted?.hashCode() ?: 0)
result = 31 * result + (filesUpdated?.hashCode() ?: 0)
result = 31 * result + (treeId?.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 CreateCommitResponse
if (commitId != other.commitId) return false
if (filesAdded != other.filesAdded) return false
if (filesDeleted != other.filesDeleted) return false
if (filesUpdated != other.filesUpdated) return false
if (treeId != other.treeId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.CreateCommitResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The full commit ID of the commit that contains your committed file changes.
*/
public var commitId: kotlin.String? = null
/**
* The files added as part of the committed file changes.
*/
public var filesAdded: List? = null
/**
* The files deleted as part of the committed file changes.
*/
public var filesDeleted: List? = null
/**
* The files updated as part of the commited file changes.
*/
public var filesUpdated: List? = null
/**
* The full SHA-1 pointer of the tree information for the commit that contains the commited file changes.
*/
public var treeId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.CreateCommitResponse) : this() {
this.commitId = x.commitId
this.filesAdded = x.filesAdded
this.filesDeleted = x.filesDeleted
this.filesUpdated = x.filesUpdated
this.treeId = x.treeId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.CreateCommitResponse = CreateCommitResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy