OperationUnion

sealed class OperationUnion

A union type representing the operation to perform on a construct during a mapping update.

Inheritors

Types

Link copied to clipboard
data class Delete(val value: DeleteOperation) : OperationUnion

A delete operation to remove a construct from the mapping.

Link copied to clipboard
data class Merge(val value: MergeOperation) : OperationUnion

A merge operation to combine constructs from different segments.

Link copied to clipboard
Link copied to clipboard
data class Split(val value: SplitOperation) : OperationUnion

A split operation to divide a construct into multiple constructs with specified CIDR blocks.

Link copied to clipboard
data class Update(val value: UpdateOperation) : OperationUnion

An update operation to modify construct properties.

Functions

Link copied to clipboard

Casts this OperationUnion as a Delete and retrieves its aws.sdk.kotlin.services.mgn.model.DeleteOperation value. Throws an exception if the OperationUnion is not a Delete.

Link copied to clipboard

Casts this OperationUnion as a Delete and retrieves its aws.sdk.kotlin.services.mgn.model.DeleteOperation value. Returns null if the OperationUnion is not a Delete.

Link copied to clipboard

Casts this OperationUnion as a Merge and retrieves its aws.sdk.kotlin.services.mgn.model.MergeOperation value. Throws an exception if the OperationUnion is not a Merge.

Link copied to clipboard

Casts this OperationUnion as a Merge and retrieves its aws.sdk.kotlin.services.mgn.model.MergeOperation value. Returns null if the OperationUnion is not a Merge.

Link copied to clipboard

Casts this OperationUnion as a Split and retrieves its aws.sdk.kotlin.services.mgn.model.SplitOperation value. Throws an exception if the OperationUnion is not a Split.

Link copied to clipboard

Casts this OperationUnion as a Split and retrieves its aws.sdk.kotlin.services.mgn.model.SplitOperation value. Returns null if the OperationUnion is not a Split.

Link copied to clipboard

Casts this OperationUnion as a Update and retrieves its aws.sdk.kotlin.services.mgn.model.UpdateOperation value. Throws an exception if the OperationUnion is not a Update.

Link copied to clipboard

Casts this OperationUnion as a Update and retrieves its aws.sdk.kotlin.services.mgn.model.UpdateOperation value. Returns null if the OperationUnion is not a Update.