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

io.cloudshiftdev.awscdk.services.apigateway.IModel.kt Maven / Gradle / Ivy

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

package io.cloudshiftdev.awscdk.services.apigateway

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

/**
 *
 */
public interface IModel {
  /**
   * Returns the model name, such as 'myModel'.
   */
  public fun modelId(): String

  private class Wrapper(
    cdkObject: software.amazon.awscdk.services.apigateway.IModel,
  ) : CdkObject(cdkObject),
      IModel {
    /**
     * Returns the model name, such as 'myModel'.
     */
    override fun modelId(): String = unwrap(this).getModelId()
  }

  public companion object {
    internal fun wrap(cdkObject: software.amazon.awscdk.services.apigateway.IModel): IModel =
        CdkObjectWrappers.wrap(cdkObject) as? IModel ?: Wrapper(cdkObject)

    internal fun unwrap(wrapped: IModel): software.amazon.awscdk.services.apigateway.IModel =
        (wrapped as CdkObject).cdkObject as software.amazon.awscdk.services.apigateway.IModel
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy