
commonMain.aws.sdk.kotlin.services.codecommit.model.GetFolderResponse.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 GetFolderResponse private constructor(builder: Builder) {
/**
* The full commit ID used as a reference for the returned version of the folder content.
*/
public val commitId: kotlin.String = requireNotNull(builder.commitId) { "A non-null value must be provided for commitId" }
/**
* The list of files in the specified folder, if any.
*/
public val files: List? = builder.files
/**
* The fully qualified path of the folder whose contents are returned.
*/
public val folderPath: kotlin.String = requireNotNull(builder.folderPath) { "A non-null value must be provided for folderPath" }
/**
* The list of folders that exist under the specified folder, if any.
*/
public val subFolders: List? = builder.subFolders
/**
* The list of submodules in the specified folder, if any.
*/
public val subModules: List? = builder.subModules
/**
* The list of symbolic links to other files and folders in the specified folder, if any.
*/
public val symbolicLinks: List? = builder.symbolicLinks
/**
* The full SHA-1 pointer of the tree information for the commit that contains the folder.
*/
public val treeId: kotlin.String? = builder.treeId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.GetFolderResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetFolderResponse(")
append("commitId=$commitId,")
append("files=$files,")
append("folderPath=$folderPath,")
append("subFolders=$subFolders,")
append("subModules=$subModules,")
append("symbolicLinks=$symbolicLinks,")
append("treeId=$treeId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = commitId.hashCode()
result = 31 * result + (files?.hashCode() ?: 0)
result = 31 * result + (folderPath.hashCode())
result = 31 * result + (subFolders?.hashCode() ?: 0)
result = 31 * result + (subModules?.hashCode() ?: 0)
result = 31 * result + (symbolicLinks?.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 GetFolderResponse
if (commitId != other.commitId) return false
if (files != other.files) return false
if (folderPath != other.folderPath) return false
if (subFolders != other.subFolders) return false
if (subModules != other.subModules) return false
if (symbolicLinks != other.symbolicLinks) return false
if (treeId != other.treeId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.GetFolderResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The full commit ID used as a reference for the returned version of the folder content.
*/
public var commitId: kotlin.String? = null
/**
* The list of files in the specified folder, if any.
*/
public var files: List? = null
/**
* The fully qualified path of the folder whose contents are returned.
*/
public var folderPath: kotlin.String? = null
/**
* The list of folders that exist under the specified folder, if any.
*/
public var subFolders: List? = null
/**
* The list of submodules in the specified folder, if any.
*/
public var subModules: List? = null
/**
* The list of symbolic links to other files and folders in the specified folder, if any.
*/
public var symbolicLinks: List? = null
/**
* The full SHA-1 pointer of the tree information for the commit that contains the folder.
*/
public var treeId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.GetFolderResponse) : this() {
this.commitId = x.commitId
this.files = x.files
this.folderPath = x.folderPath
this.subFolders = x.subFolders
this.subModules = x.subModules
this.symbolicLinks = x.symbolicLinks
this.treeId = x.treeId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.GetFolderResponse = GetFolderResponse(this)
internal fun correctErrors(): Builder {
if (commitId == null) commitId = ""
if (folderPath == null) folderPath = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy