
commonMain.aws.sdk.kotlin.services.budgets.model.ScpActionDefinition.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.budgets.model
/**
* The service control policies (SCP) action definition details.
*/
public class ScpActionDefinition private constructor(builder: Builder) {
/**
* The policy ID attached.
*/
public val policyId: kotlin.String? = builder.policyId
/**
* A list of target IDs.
*/
public val targetIds: List? = builder.targetIds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.budgets.model.ScpActionDefinition = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ScpActionDefinition(")
append("policyId=$policyId,")
append("targetIds=$targetIds)")
}
override fun hashCode(): kotlin.Int {
var result = policyId?.hashCode() ?: 0
result = 31 * result + (targetIds?.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 ScpActionDefinition
if (policyId != other.policyId) return false
if (targetIds != other.targetIds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.budgets.model.ScpActionDefinition = Builder(this).apply(block).build()
public class Builder {
/**
* The policy ID attached.
*/
public var policyId: kotlin.String? = null
/**
* A list of target IDs.
*/
public var targetIds: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.budgets.model.ScpActionDefinition) : this() {
this.policyId = x.policyId
this.targetIds = x.targetIds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.budgets.model.ScpActionDefinition = ScpActionDefinition(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy