commonMain.aws.sdk.kotlin.services.ssmincidents.model.UpdateReplicationSetAction.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ssmincidents-jvm Show documentation
Show all versions of ssmincidents-jvm Show documentation
The AWS SDK for Kotlin client for SSM Incidents
// 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
}