zio.aws.nimble.model.VolumeRetentionMode.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-nimble_3 Show documentation
Show all versions of zio-aws-nimble_3 Show documentation
Low-level AWS wrapper for ZIO
package zio.aws.nimble.model
import scala.jdk.CollectionConverters.*
sealed trait VolumeRetentionMode {
def unwrap: software.amazon.awssdk.services.nimble.model.VolumeRetentionMode
}
object VolumeRetentionMode {
def wrap(
value: software.amazon.awssdk.services.nimble.model.VolumeRetentionMode
): zio.aws.nimble.model.VolumeRetentionMode = value match {
case software.amazon.awssdk.services.nimble.model.VolumeRetentionMode.UNKNOWN_TO_SDK_VERSION =>
val r = unknownToSdkVersion
r
case software.amazon.awssdk.services.nimble.model.VolumeRetentionMode.RETAIN =>
val r = RETAIN
r
case software.amazon.awssdk.services.nimble.model.VolumeRetentionMode.DELETE =>
val r = DELETE
r
}
case object unknownToSdkVersion
extends zio.aws.nimble.model.VolumeRetentionMode {
override def unwrap
: software.amazon.awssdk.services.nimble.model.VolumeRetentionMode =
software.amazon.awssdk.services.nimble.model.VolumeRetentionMode.UNKNOWN_TO_SDK_VERSION
}
case object RETAIN extends zio.aws.nimble.model.VolumeRetentionMode {
override def unwrap
: software.amazon.awssdk.services.nimble.model.VolumeRetentionMode =
software.amazon.awssdk.services.nimble.model.VolumeRetentionMode.RETAIN
}
case object DELETE extends zio.aws.nimble.model.VolumeRetentionMode {
override def unwrap
: software.amazon.awssdk.services.nimble.model.VolumeRetentionMode =
software.amazon.awssdk.services.nimble.model.VolumeRetentionMode.DELETE
}
}