commonMain.aws.sdk.kotlin.services.iotsitewise.model.ActionDefinition.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotsitewise-jvm Show documentation
Show all versions of iotsitewise-jvm Show documentation
The AWS SDK for Kotlin client for IoTSiteWise
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotsitewise.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains a definition for an action.
*/
public class ActionDefinition private constructor(builder: Builder) {
/**
* The ID of the action definition.
*/
public val actionDefinitionId: kotlin.String = requireNotNull(builder.actionDefinitionId) { "A non-null value must be provided for actionDefinitionId" }
/**
* The name of the action definition.
*/
public val actionName: kotlin.String = requireNotNull(builder.actionName) { "A non-null value must be provided for actionName" }
/**
* The type of the action definition.
*/
public val actionType: kotlin.String = requireNotNull(builder.actionType) { "A non-null value must be provided for actionType" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotsitewise.model.ActionDefinition = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ActionDefinition(")
append("actionDefinitionId=$actionDefinitionId,")
append("actionName=$actionName,")
append("actionType=$actionType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actionDefinitionId.hashCode()
result = 31 * result + (actionName.hashCode())
result = 31 * result + (actionType.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 ActionDefinition
if (actionDefinitionId != other.actionDefinitionId) return false
if (actionName != other.actionName) return false
if (actionType != other.actionType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotsitewise.model.ActionDefinition = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the action definition.
*/
public var actionDefinitionId: kotlin.String? = null
/**
* The name of the action definition.
*/
public var actionName: kotlin.String? = null
/**
* The type of the action definition.
*/
public var actionType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotsitewise.model.ActionDefinition) : this() {
this.actionDefinitionId = x.actionDefinitionId
this.actionName = x.actionName
this.actionType = x.actionType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotsitewise.model.ActionDefinition = ActionDefinition(this)
internal fun correctErrors(): Builder {
if (actionDefinitionId == null) actionDefinitionId = ""
if (actionName == null) actionName = ""
if (actionType == null) actionType = ""
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy