
commonMain.aws.sdk.kotlin.services.codecommit.model.GetPullRequestOverrideStateResponse.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 GetPullRequestOverrideStateResponse private constructor(builder: Builder) {
/**
* A Boolean value that indicates whether a pull request has had its rules set aside (TRUE) or whether all approval rules still apply (FALSE).
*/
public val overridden: kotlin.Boolean = builder.overridden
/**
* The Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.
*/
public val overrider: kotlin.String? = builder.overrider
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.GetPullRequestOverrideStateResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetPullRequestOverrideStateResponse(")
append("overridden=$overridden,")
append("overrider=$overrider")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = overridden.hashCode()
result = 31 * result + (overrider?.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 GetPullRequestOverrideStateResponse
if (overridden != other.overridden) return false
if (overrider != other.overrider) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.GetPullRequestOverrideStateResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A Boolean value that indicates whether a pull request has had its rules set aside (TRUE) or whether all approval rules still apply (FALSE).
*/
public var overridden: kotlin.Boolean = false
/**
* The Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.
*/
public var overrider: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.GetPullRequestOverrideStateResponse) : this() {
this.overridden = x.overridden
this.overrider = x.overrider
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.GetPullRequestOverrideStateResponse = GetPullRequestOverrideStateResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy