commonMain.aws.sdk.kotlin.services.iotfleetwise.model.Branch.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotfleetwise-jvm Show documentation
Show all versions of iotfleetwise-jvm Show documentation
The AWS SDK for Kotlin client for IoTFleetWise
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotfleetwise.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A group of signals that are defined in a hierarchical structure.
*/
public class Branch private constructor(builder: Builder) {
/**
* A comment in addition to the description.
*/
public val comment: kotlin.String? = builder.comment
/**
* The deprecation message for the node or the branch that was moved or deleted.
*/
public val deprecationMessage: kotlin.String? = builder.deprecationMessage
/**
* A brief description of the branch.
*/
public val description: kotlin.String? = builder.description
/**
* The fully qualified name of the branch. For example, the fully qualified name of a branch might be `Vehicle.Body.Engine`.
*/
public val fullyQualifiedName: kotlin.String = requireNotNull(builder.fullyQualifiedName) { "A non-null value must be provided for fullyQualifiedName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotfleetwise.model.Branch = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Branch(")
append("comment=$comment,")
append("deprecationMessage=$deprecationMessage,")
append("description=$description,")
append("fullyQualifiedName=$fullyQualifiedName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = comment?.hashCode() ?: 0
result = 31 * result + (deprecationMessage?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (fullyQualifiedName.hashCode())
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 Branch
if (comment != other.comment) return false
if (deprecationMessage != other.deprecationMessage) return false
if (description != other.description) return false
if (fullyQualifiedName != other.fullyQualifiedName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotfleetwise.model.Branch = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A comment in addition to the description.
*/
public var comment: kotlin.String? = null
/**
* The deprecation message for the node or the branch that was moved or deleted.
*/
public var deprecationMessage: kotlin.String? = null
/**
* A brief description of the branch.
*/
public var description: kotlin.String? = null
/**
* The fully qualified name of the branch. For example, the fully qualified name of a branch might be `Vehicle.Body.Engine`.
*/
public var fullyQualifiedName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotfleetwise.model.Branch) : this() {
this.comment = x.comment
this.deprecationMessage = x.deprecationMessage
this.description = x.description
this.fullyQualifiedName = x.fullyQualifiedName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotfleetwise.model.Branch = Branch(this)
internal fun correctErrors(): Builder {
if (fullyQualifiedName == null) fullyQualifiedName = ""
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy