
commonMain.aws.sdk.kotlin.services.codecommit.model.GetCommentsForComparedCommitRequest.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 GetCommentsForComparedCommitRequest private constructor(builder: Builder) {
/**
* To establish the directionality of the comparison, the full commit ID of the after commit.
*/
public val afterCommitId: kotlin.String? = builder.afterCommitId
/**
* To establish the directionality of the comparison, the full commit ID of the before commit.
*/
public val beforeCommitId: kotlin.String? = builder.beforeCommitId
/**
* A non-zero, non-negative integer used to limit the number of returned results. The default is 100 comments, but you can configure up to 500.
*/
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 compare commits.
*/
public val repositoryName: kotlin.String? = builder.repositoryName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.GetCommentsForComparedCommitRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetCommentsForComparedCommitRequest(")
append("afterCommitId=$afterCommitId,")
append("beforeCommitId=$beforeCommitId,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("repositoryName=$repositoryName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = afterCommitId?.hashCode() ?: 0
result = 31 * result + (beforeCommitId?.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 GetCommentsForComparedCommitRequest
if (afterCommitId != other.afterCommitId) return false
if (beforeCommitId != other.beforeCommitId) 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.GetCommentsForComparedCommitRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* To establish the directionality of the comparison, the full commit ID of the after commit.
*/
public var afterCommitId: kotlin.String? = null
/**
* To establish the directionality of the comparison, the full commit ID of the before commit.
*/
public var beforeCommitId: kotlin.String? = null
/**
* A non-zero, non-negative integer used to limit the number of returned results. The default is 100 comments, but you can configure up to 500.
*/
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 compare commits.
*/
public var repositoryName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.GetCommentsForComparedCommitRequest) : this() {
this.afterCommitId = x.afterCommitId
this.beforeCommitId = x.beforeCommitId
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.repositoryName = x.repositoryName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.GetCommentsForComparedCommitRequest = GetCommentsForComparedCommitRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy