commonMain.aws.sdk.kotlin.services.deadline.model.LicenseEndpointSummary.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 details for a license endpoint.
*/
public class LicenseEndpointSummary private constructor(builder: Builder) {
/**
* The license endpoint ID.
*/
public val licenseEndpointId: kotlin.String? = builder.licenseEndpointId
/**
* The status of the license endpoint.
*/
public val status: aws.sdk.kotlin.services.deadline.model.LicenseEndpointStatus? = builder.status
/**
* The status message of the license endpoint.
*/
public val statusMessage: kotlin.String? = builder.statusMessage
/**
* The VCP(virtual private cloud) ID associated with the license endpoint.
*/
public val vpcId: kotlin.String? = builder.vpcId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.LicenseEndpointSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LicenseEndpointSummary(")
append("licenseEndpointId=$licenseEndpointId,")
append("status=$status,")
append("statusMessage=$statusMessage,")
append("vpcId=$vpcId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = licenseEndpointId?.hashCode() ?: 0
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (statusMessage?.hashCode() ?: 0)
result = 31 * result + (vpcId?.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 LicenseEndpointSummary
if (licenseEndpointId != other.licenseEndpointId) return false
if (status != other.status) return false
if (statusMessage != other.statusMessage) return false
if (vpcId != other.vpcId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.LicenseEndpointSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The license endpoint ID.
*/
public var licenseEndpointId: kotlin.String? = null
/**
* The status of the license endpoint.
*/
public var status: aws.sdk.kotlin.services.deadline.model.LicenseEndpointStatus? = null
/**
* The status message of the license endpoint.
*/
public var statusMessage: kotlin.String? = null
/**
* The VCP(virtual private cloud) ID associated with the license endpoint.
*/
public var vpcId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.LicenseEndpointSummary) : this() {
this.licenseEndpointId = x.licenseEndpointId
this.status = x.status
this.statusMessage = x.statusMessage
this.vpcId = x.vpcId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.LicenseEndpointSummary = LicenseEndpointSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}