commonMain.aws.sdk.kotlin.services.deadline.model.WindowsUser.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The Windows user details.
*/
public class WindowsUser private constructor(builder: Builder) {
/**
* The password ARN for the Windows user.
*/
public val passwordArn: kotlin.String = requireNotNull(builder.passwordArn) { "A non-null value must be provided for passwordArn" }
/**
* The user.
*/
public val user: kotlin.String = requireNotNull(builder.user) { "A non-null value must be provided for user" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.WindowsUser = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("WindowsUser(")
append("passwordArn=$passwordArn,")
append("user=$user")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = passwordArn.hashCode()
result = 31 * result + (user.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 WindowsUser
if (passwordArn != other.passwordArn) return false
if (user != other.user) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.WindowsUser = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The password ARN for the Windows user.
*/
public var passwordArn: kotlin.String? = null
/**
* The user.
*/
public var user: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.WindowsUser) : this() {
this.passwordArn = x.passwordArn
this.user = x.user
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.WindowsUser = WindowsUser(this)
internal fun correctErrors(): Builder {
if (passwordArn == null) passwordArn = ""
if (user == null) user = ""
return this
}
}
}