com.github.mmuller88.alpsUnifiedTs.Alps Maven / Gradle / Ivy
package com.github.mmuller88.alpsUnifiedTs;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.16.0 (build 99a3413)", date = "2020-12-19T21:27:37.740Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = com.github.mmuller88.alpsUnifiedTs.$Module.class, fqn = "alps-unified-ts.Alps")
public class Alps extends software.amazon.jsii.JsiiObject {
protected Alps(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected Alps(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Alps() {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this);
}
/**
* loads the ALPS document.
*
* @param path ALPS spec file path. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull java.lang.Object loadYaml(final @org.jetbrains.annotations.NotNull java.lang.String path) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(com.github.mmuller88.alpsUnifiedTs.Alps.class, "loadYaml", software.amazon.jsii.NativeType.forClass(java.lang.Object.class), new Object[] { java.util.Objects.requireNonNull(path, "path is required") });
}
/**
* @param spec This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull com.github.mmuller88.alpsUnifiedTs.AlpsSpec spec(final @org.jetbrains.annotations.NotNull com.github.mmuller88.alpsUnifiedTs.AlpsSpec spec) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(com.github.mmuller88.alpsUnifiedTs.Alps.class, "spec", software.amazon.jsii.NativeType.forClass(com.github.mmuller88.alpsUnifiedTs.AlpsSpec.class), new Object[] { java.util.Objects.requireNonNull(spec, "spec is required") });
}
/**
* Converts an ALPS spec JSON object into a specified API like openApi or graph ql schema.
*
* @return the requested api as a string
* @param alpsDocument The ALPS document. This parameter is required.
* @param options Options for the convertion.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull java.lang.String unified(final @org.jetbrains.annotations.NotNull java.lang.Object alpsDocument, final @org.jetbrains.annotations.Nullable com.github.mmuller88.alpsUnifiedTs.ConvertOptions options) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(com.github.mmuller88.alpsUnifiedTs.Alps.class, "unified", software.amazon.jsii.NativeType.forClass(java.lang.String.class), new Object[] { alpsDocument, options });
}
/**
* Converts an ALPS spec JSON object into a specified API like openApi or graph ql schema.
*
* @return the requested api as a string
* @param alpsDocument The ALPS document. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull java.lang.String unified(final @org.jetbrains.annotations.NotNull java.lang.Object alpsDocument) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(com.github.mmuller88.alpsUnifiedTs.Alps.class, "unified", software.amazon.jsii.NativeType.forClass(java.lang.String.class), new Object[] { alpsDocument });
}
}