commonMain.aws.sdk.kotlin.services.glacier.model.Grantee.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glacier-jvm Show documentation
Show all versions of glacier-jvm Show documentation
The AWS Kotlin client for Glacier
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glacier.model
/**
* Contains information about the grantee.
*/
public class Grantee private constructor(builder: Builder) {
/**
* Screen name of the grantee.
*/
public val displayName: kotlin.String? = builder.displayName
/**
* Email address of the grantee.
*/
public val emailAddress: kotlin.String? = builder.emailAddress
/**
* The canonical user ID of the grantee.
*/
public val id: kotlin.String? = builder.id
/**
* Type of grantee
*/
public val type: aws.sdk.kotlin.services.glacier.model.Type = requireNotNull(builder.type) { "A non-null value must be provided for type" }
/**
* URI of the grantee group.
*/
public val uri: kotlin.String? = builder.uri
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glacier.model.Grantee = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Grantee(")
append("displayName=$displayName,")
append("emailAddress=$emailAddress,")
append("id=$id,")
append("type=$type,")
append("uri=$uri")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = displayName?.hashCode() ?: 0
result = 31 * result + (emailAddress?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (type.hashCode())
result = 31 * result + (uri?.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 Grantee
if (displayName != other.displayName) return false
if (emailAddress != other.emailAddress) return false
if (id != other.id) return false
if (type != other.type) return false
if (uri != other.uri) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glacier.model.Grantee = Builder(this).apply(block).build()
public class Builder {
/**
* Screen name of the grantee.
*/
public var displayName: kotlin.String? = null
/**
* Email address of the grantee.
*/
public var emailAddress: kotlin.String? = null
/**
* The canonical user ID of the grantee.
*/
public var id: kotlin.String? = null
/**
* Type of grantee
*/
public var type: aws.sdk.kotlin.services.glacier.model.Type? = null
/**
* URI of the grantee group.
*/
public var uri: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glacier.model.Grantee) : this() {
this.displayName = x.displayName
this.emailAddress = x.emailAddress
this.id = x.id
this.type = x.type
this.uri = x.uri
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glacier.model.Grantee = Grantee(this)
internal fun correctErrors(): Builder {
if (type == null) type = Type.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy