
commonMain.aws.sdk.kotlin.services.s3control.model.DeleteAccessGrantsLocationRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
public class DeleteAccessGrantsLocationRequest private constructor(builder: Builder) {
/**
* The ID of the registered location that you are deregistering from your S3 Access Grants instance. S3 Access Grants assigned this ID when you registered the location. S3 Access Grants assigns the ID `default` to the default location `s3://` and assigns an auto-generated ID to other locations that you register.
*/
public val accessGrantsLocationId: kotlin.String? = builder.accessGrantsLocationId
/**
* The ID of the Amazon Web Services account that is making this request.
*/
public val accountId: kotlin.String? = builder.accountId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.DeleteAccessGrantsLocationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteAccessGrantsLocationRequest(")
append("accessGrantsLocationId=$accessGrantsLocationId,")
append("accountId=$accountId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accessGrantsLocationId?.hashCode() ?: 0
result = 31 * result + (accountId?.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 DeleteAccessGrantsLocationRequest
if (accessGrantsLocationId != other.accessGrantsLocationId) return false
if (accountId != other.accountId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.DeleteAccessGrantsLocationRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the registered location that you are deregistering from your S3 Access Grants instance. S3 Access Grants assigned this ID when you registered the location. S3 Access Grants assigns the ID `default` to the default location `s3://` and assigns an auto-generated ID to other locations that you register.
*/
public var accessGrantsLocationId: kotlin.String? = null
/**
* The ID of the Amazon Web Services account that is making this request.
*/
public var accountId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.DeleteAccessGrantsLocationRequest) : this() {
this.accessGrantsLocationId = x.accessGrantsLocationId
this.accountId = x.accountId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.DeleteAccessGrantsLocationRequest = DeleteAccessGrantsLocationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy