
commonMain.aws.sdk.kotlin.services.s3control.model.S3Grantee.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
/**
*
*/
public class S3Grantee private constructor(builder: Builder) {
/**
*
*/
public val displayName: kotlin.String? = builder.displayName
/**
*
*/
public val identifier: kotlin.String? = builder.identifier
/**
*
*/
public val typeIdentifier: aws.sdk.kotlin.services.s3control.model.S3GranteeTypeIdentifier? = builder.typeIdentifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.S3Grantee = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3Grantee(")
append("displayName=$displayName,")
append("identifier=$identifier,")
append("typeIdentifier=$typeIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = displayName?.hashCode() ?: 0
result = 31 * result + (identifier?.hashCode() ?: 0)
result = 31 * result + (typeIdentifier?.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 S3Grantee
if (displayName != other.displayName) return false
if (identifier != other.identifier) return false
if (typeIdentifier != other.typeIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.S3Grantee = Builder(this).apply(block).build()
public class Builder {
/**
*
*/
public var displayName: kotlin.String? = null
/**
*
*/
public var identifier: kotlin.String? = null
/**
*
*/
public var typeIdentifier: aws.sdk.kotlin.services.s3control.model.S3GranteeTypeIdentifier? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.S3Grantee) : this() {
this.displayName = x.displayName
this.identifier = x.identifier
this.typeIdentifier = x.typeIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.S3Grantee = S3Grantee(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy