com.cloudsnorkel.cdk.github.runners.Os Maven / Gradle / Ivy
Show all versions of cdk.github.runners Show documentation
package com.cloudsnorkel.cdk.github.runners;
/**
* (experimental) OS enum for an image.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-14T02:42:19.529Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = com.cloudsnorkel.cdk.github.runners.$Module.class, fqn = "@cloudsnorkel/cdk-github-runners.Os")
public class Os extends software.amazon.jsii.JsiiObject {
protected Os(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected Os(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
static {
LINUX = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.cloudsnorkel.cdk.github.runners.Os.class, "LINUX", software.amazon.jsii.NativeType.forClass(com.cloudsnorkel.cdk.github.runners.Os.class));
LINUX_AMAZON_2 = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.cloudsnorkel.cdk.github.runners.Os.class, "LINUX_AMAZON_2", software.amazon.jsii.NativeType.forClass(com.cloudsnorkel.cdk.github.runners.Os.class));
LINUX_AMAZON_2023 = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.cloudsnorkel.cdk.github.runners.Os.class, "LINUX_AMAZON_2023", software.amazon.jsii.NativeType.forClass(com.cloudsnorkel.cdk.github.runners.Os.class));
LINUX_UBUNTU = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.cloudsnorkel.cdk.github.runners.Os.class, "LINUX_UBUNTU", software.amazon.jsii.NativeType.forClass(com.cloudsnorkel.cdk.github.runners.Os.class));
WINDOWS = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.cloudsnorkel.cdk.github.runners.Os.class, "WINDOWS", software.amazon.jsii.NativeType.forClass(com.cloudsnorkel.cdk.github.runners.Os.class));
}
/**
* (experimental) Checks if the given OS is the same as this one.
*
* @param os OS to compare. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.Boolean is(final @org.jetbrains.annotations.NotNull com.cloudsnorkel.cdk.github.runners.Os os) {
return software.amazon.jsii.Kernel.call(this, "is", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class), new Object[] { java.util.Objects.requireNonNull(os, "os is required") });
}
/**
* (experimental) Checks if this OS is in a given list.
*
* @param oses list of OS to check. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.Boolean isIn(final @org.jetbrains.annotations.NotNull java.util.List oses) {
return software.amazon.jsii.Kernel.call(this, "isIn", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class), new Object[] { java.util.Objects.requireNonNull(oses, "oses is required") });
}
/**
* (deprecated) Linux.
*
* @deprecated use {@link LINUX_UBUNTU } or {@link LINUX_AMAZON_2 } or {@link LINUX_AMAZON_2023 }
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated)
@Deprecated
public final static com.cloudsnorkel.cdk.github.runners.Os LINUX;
/**
* (experimental) Amazon Linux 2.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public final static com.cloudsnorkel.cdk.github.runners.Os LINUX_AMAZON_2;
/**
* (experimental) Amazon Linux 2023.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public final static com.cloudsnorkel.cdk.github.runners.Os LINUX_AMAZON_2023;
/**
* (experimental) Ubuntu Linux.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public final static com.cloudsnorkel.cdk.github.runners.Os LINUX_UBUNTU;
/**
* (experimental) Windows.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public final static com.cloudsnorkel.cdk.github.runners.Os WINDOWS;
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.String getName() {
return software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
}