commonMain.aws.sdk.kotlin.services.fms.model.Ec2CopyRouteTableAction.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fms.model
/**
* An action that copies the EC2 route table for use in remediation.
*/
public class Ec2CopyRouteTableAction private constructor(builder: Builder) {
/**
* A description of the copied EC2 route table that is associated with the remediation action.
*/
public val description: kotlin.String? = builder.description
/**
* The ID of the copied EC2 route table that is associated with the remediation action.
*/
public val routeTableId: aws.sdk.kotlin.services.fms.model.ActionTarget? = builder.routeTableId
/**
* The VPC ID of the copied EC2 route table that is associated with the remediation action.
*/
public val vpcId: aws.sdk.kotlin.services.fms.model.ActionTarget? = builder.vpcId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.fms.model.Ec2CopyRouteTableAction = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Ec2CopyRouteTableAction(")
append("description=$description,")
append("routeTableId=$routeTableId,")
append("vpcId=$vpcId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (routeTableId?.hashCode() ?: 0)
result = 31 * result + (vpcId?.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 Ec2CopyRouteTableAction
if (description != other.description) return false
if (routeTableId != other.routeTableId) return false
if (vpcId != other.vpcId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.fms.model.Ec2CopyRouteTableAction = Builder(this).apply(block).build()
public class Builder {
/**
* A description of the copied EC2 route table that is associated with the remediation action.
*/
public var description: kotlin.String? = null
/**
* The ID of the copied EC2 route table that is associated with the remediation action.
*/
public var routeTableId: aws.sdk.kotlin.services.fms.model.ActionTarget? = null
/**
* The VPC ID of the copied EC2 route table that is associated with the remediation action.
*/
public var vpcId: aws.sdk.kotlin.services.fms.model.ActionTarget? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.fms.model.Ec2CopyRouteTableAction) : this() {
this.description = x.description
this.routeTableId = x.routeTableId
this.vpcId = x.vpcId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.fms.model.Ec2CopyRouteTableAction = Ec2CopyRouteTableAction(this)
/**
* construct an [aws.sdk.kotlin.services.fms.model.ActionTarget] inside the given [block]
*/
public fun routeTableId(block: aws.sdk.kotlin.services.fms.model.ActionTarget.Builder.() -> kotlin.Unit) {
this.routeTableId = aws.sdk.kotlin.services.fms.model.ActionTarget.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.fms.model.ActionTarget] inside the given [block]
*/
public fun vpcId(block: aws.sdk.kotlin.services.fms.model.ActionTarget.Builder.() -> kotlin.Unit) {
this.vpcId = aws.sdk.kotlin.services.fms.model.ActionTarget.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy