
commonMain.aws.sdk.kotlin.services.codecommit.model.SubModule.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
/**
* Returns information about a submodule reference in a repository folder.
*/
public class SubModule private constructor(builder: Builder) {
/**
* The fully qualified path to the folder that contains the reference to the submodule.
*/
public val absolutePath: kotlin.String? = builder.absolutePath
/**
* The commit ID that contains the reference to the submodule.
*/
public val commitId: kotlin.String? = builder.commitId
/**
* The relative path of the submodule from the folder where the query originated.
*/
public val relativePath: kotlin.String? = builder.relativePath
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.SubModule = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SubModule(")
append("absolutePath=$absolutePath,")
append("commitId=$commitId,")
append("relativePath=$relativePath")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = absolutePath?.hashCode() ?: 0
result = 31 * result + (commitId?.hashCode() ?: 0)
result = 31 * result + (relativePath?.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 SubModule
if (absolutePath != other.absolutePath) return false
if (commitId != other.commitId) return false
if (relativePath != other.relativePath) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.SubModule = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The fully qualified path to the folder that contains the reference to the submodule.
*/
public var absolutePath: kotlin.String? = null
/**
* The commit ID that contains the reference to the submodule.
*/
public var commitId: kotlin.String? = null
/**
* The relative path of the submodule from the folder where the query originated.
*/
public var relativePath: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.SubModule) : this() {
this.absolutePath = x.absolutePath
this.commitId = x.commitId
this.relativePath = x.relativePath
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.SubModule = SubModule(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy