
commonMain.aws.sdk.kotlin.services.codeartifact.model.DeleteRepositoryPermissionsPolicyRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codeartifact-jvm Show documentation
Show all versions of codeartifact-jvm Show documentation
The AWS SDK for Kotlin client for codeartifact
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codeartifact.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DeleteRepositoryPermissionsPolicyRequest private constructor(builder: Builder) {
/**
* The name of the domain that contains the repository associated with the resource policy to be deleted.
*/
public val domain: kotlin.String? = builder.domain
/**
* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
*/
public val domainOwner: kotlin.String? = builder.domainOwner
/**
* The revision of the repository's resource policy to be deleted. This revision is used for optimistic locking, which prevents others from accidentally overwriting your changes to the repository's resource policy.
*/
public val policyRevision: kotlin.String? = builder.policyRevision
/**
* The name of the repository that is associated with the resource policy to be deleted
*/
public val repository: kotlin.String? = builder.repository
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codeartifact.model.DeleteRepositoryPermissionsPolicyRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteRepositoryPermissionsPolicyRequest(")
append("domain=$domain,")
append("domainOwner=$domainOwner,")
append("policyRevision=$policyRevision,")
append("repository=$repository")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domain?.hashCode() ?: 0
result = 31 * result + (domainOwner?.hashCode() ?: 0)
result = 31 * result + (policyRevision?.hashCode() ?: 0)
result = 31 * result + (repository?.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 DeleteRepositoryPermissionsPolicyRequest
if (domain != other.domain) return false
if (domainOwner != other.domainOwner) return false
if (policyRevision != other.policyRevision) return false
if (repository != other.repository) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codeartifact.model.DeleteRepositoryPermissionsPolicyRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the domain that contains the repository associated with the resource policy to be deleted.
*/
public var domain: kotlin.String? = null
/**
* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
*/
public var domainOwner: kotlin.String? = null
/**
* The revision of the repository's resource policy to be deleted. This revision is used for optimistic locking, which prevents others from accidentally overwriting your changes to the repository's resource policy.
*/
public var policyRevision: kotlin.String? = null
/**
* The name of the repository that is associated with the resource policy to be deleted
*/
public var repository: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codeartifact.model.DeleteRepositoryPermissionsPolicyRequest) : this() {
this.domain = x.domain
this.domainOwner = x.domainOwner
this.policyRevision = x.policyRevision
this.repository = x.repository
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codeartifact.model.DeleteRepositoryPermissionsPolicyRequest = DeleteRepositoryPermissionsPolicyRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy