commonMain.aws.sdk.kotlin.services.s3outposts.model.Outpost.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of s3outposts-jvm Show documentation
Show all versions of s3outposts-jvm Show documentation
The AWS SDK for Kotlin client for S3Outposts
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3outposts.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains the details for the Outpost object.
*/
public class Outpost private constructor(builder: Builder) {
/**
* The Amazon S3 capacity of the outpost in bytes.
*/
public val capacityInBytes: kotlin.Long = builder.capacityInBytes
/**
* Specifies the unique Amazon Resource Name (ARN) for the outpost.
*/
public val outpostArn: kotlin.String? = builder.outpostArn
/**
* Specifies the unique identifier for the outpost.
*/
public val outpostId: kotlin.String? = builder.outpostId
/**
* Returns the Amazon Web Services account ID of the outpost owner. Useful for comparing owned versus shared outposts.
*/
public val ownerId: kotlin.String? = builder.ownerId
/**
* Specifies the unique S3 on Outposts ARN for use with Resource Access Manager (RAM).
*/
public val s3OutpostArn: kotlin.String? = builder.s3OutpostArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3outposts.model.Outpost = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Outpost(")
append("capacityInBytes=$capacityInBytes,")
append("outpostArn=$outpostArn,")
append("outpostId=$outpostId,")
append("ownerId=$ownerId,")
append("s3OutpostArn=$s3OutpostArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = capacityInBytes.hashCode()
result = 31 * result + (outpostArn?.hashCode() ?: 0)
result = 31 * result + (outpostId?.hashCode() ?: 0)
result = 31 * result + (ownerId?.hashCode() ?: 0)
result = 31 * result + (s3OutpostArn?.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 Outpost
if (capacityInBytes != other.capacityInBytes) return false
if (outpostArn != other.outpostArn) return false
if (outpostId != other.outpostId) return false
if (ownerId != other.ownerId) return false
if (s3OutpostArn != other.s3OutpostArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3outposts.model.Outpost = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon S3 capacity of the outpost in bytes.
*/
public var capacityInBytes: kotlin.Long = 0L
/**
* Specifies the unique Amazon Resource Name (ARN) for the outpost.
*/
public var outpostArn: kotlin.String? = null
/**
* Specifies the unique identifier for the outpost.
*/
public var outpostId: kotlin.String? = null
/**
* Returns the Amazon Web Services account ID of the outpost owner. Useful for comparing owned versus shared outposts.
*/
public var ownerId: kotlin.String? = null
/**
* Specifies the unique S3 on Outposts ARN for use with Resource Access Manager (RAM).
*/
public var s3OutpostArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3outposts.model.Outpost) : this() {
this.capacityInBytes = x.capacityInBytes
this.outpostArn = x.outpostArn
this.outpostId = x.outpostId
this.ownerId = x.ownerId
this.s3OutpostArn = x.s3OutpostArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3outposts.model.Outpost = Outpost(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy