
commonMain.aws.sdk.kotlin.services.s3control.model.CreateMultiRegionAccessPointRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
public class CreateMultiRegionAccessPointRequest private constructor(builder: Builder) {
/**
* The Amazon Web Services account ID for the owner of the Multi-Region Access Point. The owner of the Multi-Region Access Point also must own the underlying buckets.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* An idempotency token used to identify the request and guarantee that requests are unique.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* A container element containing details about the Multi-Region Access Point.
*/
public val details: aws.sdk.kotlin.services.s3control.model.CreateMultiRegionAccessPointInput? = builder.details
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.CreateMultiRegionAccessPointRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateMultiRegionAccessPointRequest(")
append("accountId=$accountId,")
append("clientToken=$clientToken,")
append("details=$details")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (clientToken?.hashCode() ?: 0)
result = 31 * result + (details?.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 CreateMultiRegionAccessPointRequest
if (accountId != other.accountId) return false
if (clientToken != other.clientToken) return false
if (details != other.details) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.CreateMultiRegionAccessPointRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Web Services account ID for the owner of the Multi-Region Access Point. The owner of the Multi-Region Access Point also must own the underlying buckets.
*/
public var accountId: kotlin.String? = null
/**
* An idempotency token used to identify the request and guarantee that requests are unique.
*/
public var clientToken: kotlin.String? = null
/**
* A container element containing details about the Multi-Region Access Point.
*/
public var details: aws.sdk.kotlin.services.s3control.model.CreateMultiRegionAccessPointInput? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.CreateMultiRegionAccessPointRequest) : this() {
this.accountId = x.accountId
this.clientToken = x.clientToken
this.details = x.details
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.CreateMultiRegionAccessPointRequest = CreateMultiRegionAccessPointRequest(this)
/**
* construct an [aws.sdk.kotlin.services.s3control.model.CreateMultiRegionAccessPointInput] inside the given [block]
*/
public fun details(block: aws.sdk.kotlin.services.s3control.model.CreateMultiRegionAccessPointInput.Builder.() -> kotlin.Unit) {
this.details = aws.sdk.kotlin.services.s3control.model.CreateMultiRegionAccessPointInput.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy