
commonMain.aws.sdk.kotlin.services.s3control.model.CreateAccessPointResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
public class CreateAccessPointResponse private constructor(builder: Builder) {
/**
* The ARN of the access point.
*
* This is only supported by Amazon S3 on Outposts.
*/
public val accessPointArn: kotlin.String? = builder.accessPointArn
/**
* The name or alias of the access point.
*/
public val alias: kotlin.String? = builder.alias
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.CreateAccessPointResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateAccessPointResponse(")
append("accessPointArn=$accessPointArn,")
append("alias=$alias")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accessPointArn?.hashCode() ?: 0
result = 31 * result + (alias?.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 CreateAccessPointResponse
if (accessPointArn != other.accessPointArn) return false
if (alias != other.alias) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.CreateAccessPointResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the access point.
*
* This is only supported by Amazon S3 on Outposts.
*/
public var accessPointArn: kotlin.String? = null
/**
* The name or alias of the access point.
*/
public var alias: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.CreateAccessPointResponse) : this() {
this.accessPointArn = x.accessPointArn
this.alias = x.alias
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.CreateAccessPointResponse = CreateAccessPointResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy