
commonMain.aws.sdk.kotlin.services.codecommit.model.GetFolderRequest.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 GetFolderRequest private constructor(builder: Builder) {
/**
* A fully qualified reference used to identify a commit that contains the version of the folder's content to return. A fully qualified reference can be a commit ID, branch name, tag, or reference such as HEAD. If no specifier is provided, the folder content is returned as it exists in the HEAD commit.
*/
public val commitSpecifier: kotlin.String? = builder.commitSpecifier
/**
* The fully qualified path to the folder whose contents are returned, including the folder name. For example, /examples is a fully-qualified path to a folder named examples that was created off of the root directory (/) of a repository.
*/
public val folderPath: kotlin.String? = builder.folderPath
/**
* The name of the repository.
*/
public val repositoryName: kotlin.String? = builder.repositoryName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.GetFolderRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetFolderRequest(")
append("commitSpecifier=$commitSpecifier,")
append("folderPath=$folderPath,")
append("repositoryName=$repositoryName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = commitSpecifier?.hashCode() ?: 0
result = 31 * result + (folderPath?.hashCode() ?: 0)
result = 31 * result + (repositoryName?.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 GetFolderRequest
if (commitSpecifier != other.commitSpecifier) return false
if (folderPath != other.folderPath) return false
if (repositoryName != other.repositoryName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.GetFolderRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A fully qualified reference used to identify a commit that contains the version of the folder's content to return. A fully qualified reference can be a commit ID, branch name, tag, or reference such as HEAD. If no specifier is provided, the folder content is returned as it exists in the HEAD commit.
*/
public var commitSpecifier: kotlin.String? = null
/**
* The fully qualified path to the folder whose contents are returned, including the folder name. For example, /examples is a fully-qualified path to a folder named examples that was created off of the root directory (/) of a repository.
*/
public var folderPath: kotlin.String? = null
/**
* The name of the repository.
*/
public var repositoryName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.GetFolderRequest) : this() {
this.commitSpecifier = x.commitSpecifier
this.folderPath = x.folderPath
this.repositoryName = x.repositoryName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.GetFolderRequest = GetFolderRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy