commonMain.aws.sdk.kotlin.services.xray.model.Alias.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.xray.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An alias for an edge.
*/
public class Alias private constructor(builder: Builder) {
/**
* The canonical name of the alias.
*/
public val name: kotlin.String? = builder.name
/**
* A list of names for the alias, including the canonical name.
*/
public val names: List? = builder.names
/**
* The type of the alias.
*/
public val type: kotlin.String? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.xray.model.Alias = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Alias(")
append("name=$name,")
append("names=$names,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (names?.hashCode() ?: 0)
result = 31 * result + (type?.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 Alias
if (name != other.name) return false
if (names != other.names) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.xray.model.Alias = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The canonical name of the alias.
*/
public var name: kotlin.String? = null
/**
* A list of names for the alias, including the canonical name.
*/
public var names: List? = null
/**
* The type of the alias.
*/
public var type: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.xray.model.Alias) : this() {
this.name = x.name
this.names = x.names
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.xray.model.Alias = Alias(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy