commonMain.aws.sdk.kotlin.services.codegurureviewer.model.DisassociateRepositoryResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codegurureviewer-jvm Show documentation
Show all versions of codegurureviewer-jvm Show documentation
The AWS SDK for Kotlin client for CodeGuru Reviewer
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codegurureviewer.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DisassociateRepositoryResponse private constructor(builder: Builder) {
/**
* Information about the disassociated repository.
*/
public val repositoryAssociation: aws.sdk.kotlin.services.codegurureviewer.model.RepositoryAssociation? = builder.repositoryAssociation
/**
* An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:
* + A *tag key* (for example, `CostCenter`, `Environment`, `Project`, or `Secret`). Tag keys are case sensitive.
* + An optional field known as a *tag value* (for example, `111122223333`, `Production`, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codegurureviewer.model.DisassociateRepositoryResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DisassociateRepositoryResponse(")
append("repositoryAssociation=$repositoryAssociation,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = repositoryAssociation?.hashCode() ?: 0
result = 31 * result + (tags?.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 DisassociateRepositoryResponse
if (repositoryAssociation != other.repositoryAssociation) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codegurureviewer.model.DisassociateRepositoryResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about the disassociated repository.
*/
public var repositoryAssociation: aws.sdk.kotlin.services.codegurureviewer.model.RepositoryAssociation? = null
/**
* An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:
* + A *tag key* (for example, `CostCenter`, `Environment`, `Project`, or `Secret`). Tag keys are case sensitive.
* + An optional field known as a *tag value* (for example, `111122223333`, `Production`, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codegurureviewer.model.DisassociateRepositoryResponse) : this() {
this.repositoryAssociation = x.repositoryAssociation
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codegurureviewer.model.DisassociateRepositoryResponse = DisassociateRepositoryResponse(this)
/**
* construct an [aws.sdk.kotlin.services.codegurureviewer.model.RepositoryAssociation] inside the given [block]
*/
public fun repositoryAssociation(block: aws.sdk.kotlin.services.codegurureviewer.model.RepositoryAssociation.Builder.() -> kotlin.Unit) {
this.repositoryAssociation = aws.sdk.kotlin.services.codegurureviewer.model.RepositoryAssociation.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}