
commonMain.aws.sdk.kotlin.services.s3control.model.StorageLensAwsOrg.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
/**
* The Amazon Web Services organization for your S3 Storage Lens.
*/
public class StorageLensAwsOrg private constructor(builder: Builder) {
/**
* A container for the Amazon Resource Name (ARN) of the Amazon Web Services organization. This property is read-only and follows the following format: ` arn:aws:organizations:us-east-1:example-account-id:organization/o-ex2l495dck `
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.StorageLensAwsOrg = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StorageLensAwsOrg(")
append("arn=$arn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
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 StorageLensAwsOrg
if (arn != other.arn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.StorageLensAwsOrg = Builder(this).apply(block).build()
public class Builder {
/**
* A container for the Amazon Resource Name (ARN) of the Amazon Web Services organization. This property is read-only and follows the following format: ` arn:aws:organizations:us-east-1:example-account-id:organization/o-ex2l495dck `
*/
public var arn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.StorageLensAwsOrg) : this() {
this.arn = x.arn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.StorageLensAwsOrg = StorageLensAwsOrg(this)
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy