
commonMain.aws.sdk.kotlin.services.fis.model.ActionSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fis.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Provides a summary of an action.
*/
public class ActionSummary private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the action.
*/
public val arn: kotlin.String? = builder.arn
/**
* The description for the action.
*/
public val description: kotlin.String? = builder.description
/**
* The ID of the action.
*/
public val id: kotlin.String? = builder.id
/**
* The tags for the action.
*/
public val tags: Map? = builder.tags
/**
* The targets for the action.
*/
public val targets: Map? = builder.targets
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fis.model.ActionSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ActionSummary(")
append("arn=$arn,")
append("description=$description,")
append("id=$id,")
append("tags=$tags,")
append("targets=$targets")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (targets?.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 ActionSummary
if (arn != other.arn) return false
if (description != other.description) return false
if (id != other.id) return false
if (tags != other.tags) return false
if (targets != other.targets) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fis.model.ActionSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the action.
*/
public var arn: kotlin.String? = null
/**
* The description for the action.
*/
public var description: kotlin.String? = null
/**
* The ID of the action.
*/
public var id: kotlin.String? = null
/**
* The tags for the action.
*/
public var tags: Map? = null
/**
* The targets for the action.
*/
public var targets: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fis.model.ActionSummary) : this() {
this.arn = x.arn
this.description = x.description
this.id = x.id
this.tags = x.tags
this.targets = x.targets
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fis.model.ActionSummary = ActionSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy