commonMain.aws.sdk.kotlin.services.iot.model.MitigationActionIdentifier.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iot Show documentation
Show all versions of iot Show documentation
The AWS SDK for Kotlin client for IoT
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* Information that identifies a mitigation action. This information is returned by ListMitigationActions.
*/
public class MitigationActionIdentifier private constructor(builder: Builder) {
/**
* The IAM role ARN used to apply this mitigation action.
*/
public val actionArn: kotlin.String? = builder.actionArn
/**
* The friendly name of the mitigation action.
*/
public val actionName: kotlin.String? = builder.actionName
/**
* The date when this mitigation action was created.
*/
public val creationDate: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDate
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.MitigationActionIdentifier = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MitigationActionIdentifier(")
append("actionArn=$actionArn,")
append("actionName=$actionName,")
append("creationDate=$creationDate")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actionArn?.hashCode() ?: 0
result = 31 * result + (actionName?.hashCode() ?: 0)
result = 31 * result + (creationDate?.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 MitigationActionIdentifier
if (actionArn != other.actionArn) return false
if (actionName != other.actionName) return false
if (creationDate != other.creationDate) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.MitigationActionIdentifier = Builder(this).apply(block).build()
public class Builder {
/**
* The IAM role ARN used to apply this mitigation action.
*/
public var actionArn: kotlin.String? = null
/**
* The friendly name of the mitigation action.
*/
public var actionName: kotlin.String? = null
/**
* The date when this mitigation action was created.
*/
public var creationDate: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.MitigationActionIdentifier) : this() {
this.actionArn = x.actionArn
this.actionName = x.actionName
this.creationDate = x.creationDate
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.MitigationActionIdentifier = MitigationActionIdentifier(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy