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