
commonMain.aws.sdk.kotlin.services.deadline.model.CreateLicenseEndpointRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateLicenseEndpointRequest private constructor(builder: Builder) {
/**
* The unique token which the server uses to recognize retries of the same request.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The security group IDs.
*/
public val securityGroupIds: List? = builder.securityGroupIds
/**
* The subnet IDs.
*/
public val subnetIds: List? = builder.subnetIds
/**
* Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings.
*/
public val tags: Map? = builder.tags
/**
* The VPC (virtual private cloud) ID to use 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.CreateLicenseEndpointRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateLicenseEndpointRequest(")
append("clientToken=$clientToken,")
append("securityGroupIds=$securityGroupIds,")
append("subnetIds=$subnetIds,")
append("tags=$tags,")
append("vpcId=$vpcId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (securityGroupIds?.hashCode() ?: 0)
result = 31 * result + (subnetIds?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateLicenseEndpointRequest
if (clientToken != other.clientToken) return false
if (securityGroupIds != other.securityGroupIds) return false
if (subnetIds != other.subnetIds) return false
if (tags != other.tags) return false
if (vpcId != other.vpcId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.CreateLicenseEndpointRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique token which the server uses to recognize retries of the same request.
*/
public var clientToken: kotlin.String? = null
/**
* The security group IDs.
*/
public var securityGroupIds: List? = null
/**
* The subnet IDs.
*/
public var subnetIds: List? = null
/**
* Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings.
*/
public var tags: Map? = null
/**
* The VPC (virtual private cloud) ID to use with the license endpoint.
*/
public var vpcId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.CreateLicenseEndpointRequest) : this() {
this.clientToken = x.clientToken
this.securityGroupIds = x.securityGroupIds
this.subnetIds = x.subnetIds
this.tags = x.tags
this.vpcId = x.vpcId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.CreateLicenseEndpointRequest = CreateLicenseEndpointRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy