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

io.cloudshiftdev.awscdk.services.ecs.BinPackResource.kt Maven / Gradle / Ivy

The newest version!
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")

package io.cloudshiftdev.awscdk.services.ecs

public enum class BinPackResource(
  private val cdkObject: software.amazon.awscdk.services.ecs.BinPackResource,
) {
  CPU(software.amazon.awscdk.services.ecs.BinPackResource.CPU),
  MEMORY(software.amazon.awscdk.services.ecs.BinPackResource.MEMORY),
  ;

  public companion object {
    internal fun wrap(cdkObject: software.amazon.awscdk.services.ecs.BinPackResource):
        BinPackResource = when (cdkObject) {
      software.amazon.awscdk.services.ecs.BinPackResource.CPU -> BinPackResource.CPU
      software.amazon.awscdk.services.ecs.BinPackResource.MEMORY -> BinPackResource.MEMORY
    }

    internal fun unwrap(wrapped: BinPackResource):
        software.amazon.awscdk.services.ecs.BinPackResource = wrapped.cdkObject
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy