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

io.cloudshiftdev.constructs.IValidation.kt Maven / Gradle / Ivy

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

package io.cloudshiftdev.constructs

import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.common.CdkObjectWrappers
import kotlin.String
import kotlin.collections.List

public interface IValidation {
  public fun validate(): List

  private class Wrapper(
    cdkObject: software.constructs.IValidation,
  ) : CdkObject(cdkObject),
      IValidation {
    override fun validate(): List = unwrap(this).validate()
  }

  public companion object {
    internal fun wrap(cdkObject: software.constructs.IValidation): IValidation =
        CdkObjectWrappers.wrap(cdkObject) as? IValidation ?: Wrapper(cdkObject)

    internal fun unwrap(wrapped: IValidation): software.constructs.IValidation = (wrapped as
        CdkObject).cdkObject as software.constructs.IValidation
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy