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

io.cloudshiftdev.awscdk.services.cloudwatch.actions.OpsItemSeverity.kt Maven / Gradle / Ivy

There is a newer version: 0.10.0
Show newest version
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package io.cloudshiftdev.awscdk.services.cloudwatch.actions

public enum class OpsItemSeverity(
  private val cdkObject: software.amazon.awscdk.services.cloudwatch.actions.OpsItemSeverity,
) {
  CRITICAL(software.amazon.awscdk.services.cloudwatch.actions.OpsItemSeverity.CRITICAL),
  HIGH(software.amazon.awscdk.services.cloudwatch.actions.OpsItemSeverity.HIGH),
  MEDIUM(software.amazon.awscdk.services.cloudwatch.actions.OpsItemSeverity.MEDIUM),
  LOW(software.amazon.awscdk.services.cloudwatch.actions.OpsItemSeverity.LOW),
  ;

  public companion object {
    internal
        fun wrap(cdkObject: software.amazon.awscdk.services.cloudwatch.actions.OpsItemSeverity):
        OpsItemSeverity = when (cdkObject) {
      software.amazon.awscdk.services.cloudwatch.actions.OpsItemSeverity.CRITICAL ->
          OpsItemSeverity.CRITICAL
      software.amazon.awscdk.services.cloudwatch.actions.OpsItemSeverity.HIGH ->
          OpsItemSeverity.HIGH
      software.amazon.awscdk.services.cloudwatch.actions.OpsItemSeverity.MEDIUM ->
          OpsItemSeverity.MEDIUM
      software.amazon.awscdk.services.cloudwatch.actions.OpsItemSeverity.LOW -> OpsItemSeverity.LOW
    }

    internal fun unwrap(wrapped: OpsItemSeverity):
        software.amazon.awscdk.services.cloudwatch.actions.OpsItemSeverity = wrapped.cdkObject
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy