All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.ssmincidents.model.UpdateReplicationSetAction.kt Maven / Gradle / Ivy

There is a newer version: 1.3.79
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.ssmincidents.model



/**
 * Details used when updating the replication set.
 */
public sealed class UpdateReplicationSetAction {
    /**
     * Details about the Amazon Web Services Region that you're adding to the replication set.
     */
    public data class AddRegionAction(val value: aws.sdk.kotlin.services.ssmincidents.model.AddRegionAction) : aws.sdk.kotlin.services.ssmincidents.model.UpdateReplicationSetAction() {
    }

    /**
     * Details about the Amazon Web Services Region that you're deleting to the replication set.
     */
    public data class DeleteRegionAction(val value: aws.sdk.kotlin.services.ssmincidents.model.DeleteRegionAction) : aws.sdk.kotlin.services.ssmincidents.model.UpdateReplicationSetAction() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.ssmincidents.model.UpdateReplicationSetAction() {
    }

    /**
     * Casts this [UpdateReplicationSetAction] as a [AddRegionAction] and retrieves its [aws.sdk.kotlin.services.ssmincidents.model.AddRegionAction] value. Throws an exception if the [UpdateReplicationSetAction] is not a
     * [AddRegionAction].
     */
    public fun asAddRegionAction(): aws.sdk.kotlin.services.ssmincidents.model.AddRegionAction = (this as UpdateReplicationSetAction.AddRegionAction).value

    /**
     * Casts this [UpdateReplicationSetAction] as a [AddRegionAction] and retrieves its [aws.sdk.kotlin.services.ssmincidents.model.AddRegionAction] value. Returns null if the [UpdateReplicationSetAction] is not a [AddRegionAction].
     */
    public fun asAddRegionActionOrNull(): aws.sdk.kotlin.services.ssmincidents.model.AddRegionAction? = (this as? UpdateReplicationSetAction.AddRegionAction)?.value

    /**
     * Casts this [UpdateReplicationSetAction] as a [DeleteRegionAction] and retrieves its [aws.sdk.kotlin.services.ssmincidents.model.DeleteRegionAction] value. Throws an exception if the [UpdateReplicationSetAction] is not a
     * [DeleteRegionAction].
     */
    public fun asDeleteRegionAction(): aws.sdk.kotlin.services.ssmincidents.model.DeleteRegionAction = (this as UpdateReplicationSetAction.DeleteRegionAction).value

    /**
     * Casts this [UpdateReplicationSetAction] as a [DeleteRegionAction] and retrieves its [aws.sdk.kotlin.services.ssmincidents.model.DeleteRegionAction] value. Returns null if the [UpdateReplicationSetAction] is not a [DeleteRegionAction].
     */
    public fun asDeleteRegionActionOrNull(): aws.sdk.kotlin.services.ssmincidents.model.DeleteRegionAction? = (this as? UpdateReplicationSetAction.DeleteRegionAction)?.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy