commonMain.aws.sdk.kotlin.services.deadline.model.GetLicenseEndpointResponse.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
public class GetLicenseEndpointResponse private constructor(builder: Builder) {
/**
* The DNS name.
*/
public val dnsName: kotlin.String? = builder.dnsName
/**
* The license endpoint ID.
*/
public val licenseEndpointId: kotlin.String = requireNotNull(builder.licenseEndpointId) { "A non-null value must be provided for licenseEndpointId" }
/**
* The security group IDs for the license endpoint.
*/
public val securityGroupIds: List? = builder.securityGroupIds
/**
* The status of the license endpoint.
*/
public val status: aws.sdk.kotlin.services.deadline.model.LicenseEndpointStatus = requireNotNull(builder.status) { "A non-null value must be provided for status" }
/**
* The status message of the license endpoint.
*/
public val statusMessage: kotlin.String = requireNotNull(builder.statusMessage) { "A non-null value must be provided for statusMessage" }
/**
* The subnet IDs.
*/
public val subnetIds: List? = builder.subnetIds
/**
* 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.GetLicenseEndpointResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetLicenseEndpointResponse(")
append("dnsName=$dnsName,")
append("licenseEndpointId=$licenseEndpointId,")
append("securityGroupIds=$securityGroupIds,")
append("status=$status,")
append("statusMessage=$statusMessage,")
append("subnetIds=$subnetIds,")
append("vpcId=$vpcId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dnsName?.hashCode() ?: 0
result = 31 * result + (licenseEndpointId.hashCode())
result = 31 * result + (securityGroupIds?.hashCode() ?: 0)
result = 31 * result + (status.hashCode())
result = 31 * result + (statusMessage.hashCode())
result = 31 * result + (subnetIds?.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 GetLicenseEndpointResponse
if (dnsName != other.dnsName) return false
if (licenseEndpointId != other.licenseEndpointId) return false
if (securityGroupIds != other.securityGroupIds) return false
if (status != other.status) return false
if (statusMessage != other.statusMessage) return false
if (subnetIds != other.subnetIds) return false
if (vpcId != other.vpcId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.GetLicenseEndpointResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The DNS name.
*/
public var dnsName: kotlin.String? = null
/**
* The license endpoint ID.
*/
public var licenseEndpointId: kotlin.String? = null
/**
* The security group IDs for the license endpoint.
*/
public var securityGroupIds: List? = 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 subnet IDs.
*/
public var subnetIds: List? = 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.GetLicenseEndpointResponse) : this() {
this.dnsName = x.dnsName
this.licenseEndpointId = x.licenseEndpointId
this.securityGroupIds = x.securityGroupIds
this.status = x.status
this.statusMessage = x.statusMessage
this.subnetIds = x.subnetIds
this.vpcId = x.vpcId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.GetLicenseEndpointResponse = GetLicenseEndpointResponse(this)
internal fun correctErrors(): Builder {
if (licenseEndpointId == null) licenseEndpointId = ""
if (status == null) status = LicenseEndpointStatus.SdkUnknown("no value provided")
if (statusMessage == null) statusMessage = ""
return this
}
}
}