commonMain.aws.sdk.kotlin.services.glue.model.SecurityConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Specifies a security configuration.
*/
public class SecurityConfiguration private constructor(builder: Builder) {
/**
* The time at which this security configuration was created.
*/
public val createdTimeStamp: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTimeStamp
/**
* The encryption configuration associated with this security configuration.
*/
public val encryptionConfiguration: aws.sdk.kotlin.services.glue.model.EncryptionConfiguration? = builder.encryptionConfiguration
/**
* The name of the security configuration.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.SecurityConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SecurityConfiguration(")
append("createdTimeStamp=$createdTimeStamp,")
append("encryptionConfiguration=$encryptionConfiguration,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdTimeStamp?.hashCode() ?: 0
result = 31 * result + (encryptionConfiguration?.hashCode() ?: 0)
result = 31 * result + (name?.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 SecurityConfiguration
if (createdTimeStamp != other.createdTimeStamp) return false
if (encryptionConfiguration != other.encryptionConfiguration) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.SecurityConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time at which this security configuration was created.
*/
public var createdTimeStamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The encryption configuration associated with this security configuration.
*/
public var encryptionConfiguration: aws.sdk.kotlin.services.glue.model.EncryptionConfiguration? = null
/**
* The name of the security configuration.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.SecurityConfiguration) : this() {
this.createdTimeStamp = x.createdTimeStamp
this.encryptionConfiguration = x.encryptionConfiguration
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.SecurityConfiguration = SecurityConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.EncryptionConfiguration] inside the given [block]
*/
public fun encryptionConfiguration(block: aws.sdk.kotlin.services.glue.model.EncryptionConfiguration.Builder.() -> kotlin.Unit) {
this.encryptionConfiguration = aws.sdk.kotlin.services.glue.model.EncryptionConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}