
commonMain.aws.sdk.kotlin.services.s3.model.Owner.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3.model
/**
* Container for the owner's display name and ID.
*/
public class Owner private constructor(builder: Builder) {
/**
* Container for the display name of the owner. This value is only supported in the following Amazon Web Services Regions:
* + US East (N. Virginia)
* + US West (N. California)
* + US West (Oregon)
* + Asia Pacific (Singapore)
* + Asia Pacific (Sydney)
* + Asia Pacific (Tokyo)
* + Europe (Ireland)
* + South America (São Paulo)
*
* This functionality is not supported for directory buckets.
*/
public val displayName: kotlin.String? = builder.displayName
/**
* Container for the ID of the owner.
*/
public val id: kotlin.String? = builder.id
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3.model.Owner = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Owner(")
append("displayName=$displayName,")
append("id=$id")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = displayName?.hashCode() ?: 0
result = 31 * result + (id?.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 Owner
if (displayName != other.displayName) return false
if (id != other.id) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3.model.Owner = Builder(this).apply(block).build()
public class Builder {
/**
* Container for the display name of the owner. This value is only supported in the following Amazon Web Services Regions:
* + US East (N. Virginia)
* + US West (N. California)
* + US West (Oregon)
* + Asia Pacific (Singapore)
* + Asia Pacific (Sydney)
* + Asia Pacific (Tokyo)
* + Europe (Ireland)
* + South America (São Paulo)
*
* This functionality is not supported for directory buckets.
*/
public var displayName: kotlin.String? = null
/**
* Container for the ID of the owner.
*/
public var id: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3.model.Owner) : this() {
this.displayName = x.displayName
this.id = x.id
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3.model.Owner = Owner(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy