io.cloudshiftdev.awscdk.services.cloudwatch.IVariable.kt Maven / Gradle / Ivy
The newest version!
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.cloudwatch
import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.common.CdkObjectWrappers
import kotlin.Any
/**
* A single dashboard variable.
*/
public interface IVariable {
/**
* Return the variable JSON for use in the dashboard.
*/
public fun toJson(): Any
private class Wrapper(
cdkObject: software.amazon.awscdk.services.cloudwatch.IVariable,
) : CdkObject(cdkObject),
IVariable {
/**
* Return the variable JSON for use in the dashboard.
*/
override fun toJson(): Any = unwrap(this).toJson()
}
public companion object {
internal fun wrap(cdkObject: software.amazon.awscdk.services.cloudwatch.IVariable): IVariable =
CdkObjectWrappers.wrap(cdkObject) as? IVariable ?: Wrapper(cdkObject)
internal fun unwrap(wrapped: IVariable): software.amazon.awscdk.services.cloudwatch.IVariable =
(wrapped as CdkObject).cdkObject as software.amazon.awscdk.services.cloudwatch.IVariable
}
}