
commonMain.aws.sdk.kotlin.services.codecommit.model.GetDifferencesRequest.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 GetDifferencesRequest private constructor(builder: Builder) {
/**
* The branch, tag, HEAD, or other fully qualified reference used to identify a commit.
*/
public val afterCommitSpecifier: kotlin.String? = builder.afterCommitSpecifier
/**
* The file path in which to check differences. Limits the results to this path. Can also be used to specify the changed name of a directory or folder, if it has changed. If not specified, differences are shown for all paths.
*/
public val afterPath: kotlin.String? = builder.afterPath
/**
* The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, the full commit ID). Optional. If not specified, all changes before the `afterCommitSpecifier` value are shown. If you do not use `beforeCommitSpecifier` in your request, consider limiting the results with `maxResults`.
*/
public val beforeCommitSpecifier: kotlin.String? = builder.beforeCommitSpecifier
/**
* The file path in which to check for differences. Limits the results to this path. Can also be used to specify the previous name of a directory or folder. If `beforePath` and `afterPath` are not specified, differences are shown for all paths.
*/
public val beforePath: kotlin.String? = builder.beforePath
/**
* A non-zero, non-negative integer used to limit the number of returned results.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* An enumeration token that, when provided in a request, returns the next batch of the results.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The name of the repository where you want to get differences.
*/
public val repositoryName: kotlin.String? = builder.repositoryName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.GetDifferencesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDifferencesRequest(")
append("afterCommitSpecifier=$afterCommitSpecifier,")
append("afterPath=$afterPath,")
append("beforeCommitSpecifier=$beforeCommitSpecifier,")
append("beforePath=$beforePath,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("repositoryName=$repositoryName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = afterCommitSpecifier?.hashCode() ?: 0
result = 31 * result + (afterPath?.hashCode() ?: 0)
result = 31 * result + (beforeCommitSpecifier?.hashCode() ?: 0)
result = 31 * result + (beforePath?.hashCode() ?: 0)
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.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 GetDifferencesRequest
if (afterCommitSpecifier != other.afterCommitSpecifier) return false
if (afterPath != other.afterPath) return false
if (beforeCommitSpecifier != other.beforeCommitSpecifier) return false
if (beforePath != other.beforePath) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (repositoryName != other.repositoryName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.GetDifferencesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The branch, tag, HEAD, or other fully qualified reference used to identify a commit.
*/
public var afterCommitSpecifier: kotlin.String? = null
/**
* The file path in which to check differences. Limits the results to this path. Can also be used to specify the changed name of a directory or folder, if it has changed. If not specified, differences are shown for all paths.
*/
public var afterPath: kotlin.String? = null
/**
* The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, the full commit ID). Optional. If not specified, all changes before the `afterCommitSpecifier` value are shown. If you do not use `beforeCommitSpecifier` in your request, consider limiting the results with `maxResults`.
*/
public var beforeCommitSpecifier: kotlin.String? = null
/**
* The file path in which to check for differences. Limits the results to this path. Can also be used to specify the previous name of a directory or folder. If `beforePath` and `afterPath` are not specified, differences are shown for all paths.
*/
public var beforePath: kotlin.String? = null
/**
* A non-zero, non-negative integer used to limit the number of returned results.
*/
public var maxResults: kotlin.Int? = null
/**
* An enumeration token that, when provided in a request, returns the next batch of the results.
*/
public var nextToken: kotlin.String? = null
/**
* The name of the repository where you want to get differences.
*/
public var repositoryName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.GetDifferencesRequest) : this() {
this.afterCommitSpecifier = x.afterCommitSpecifier
this.afterPath = x.afterPath
this.beforeCommitSpecifier = x.beforeCommitSpecifier
this.beforePath = x.beforePath
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.repositoryName = x.repositoryName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.GetDifferencesRequest = GetDifferencesRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy