io.github.jogold.cloudstructs.RollTrigger Maven / Gradle / Ivy
Show all versions of cloudstructs Show documentation
package io.github.jogold.cloudstructs;
/**
* The rule or schedule that should trigger a roll.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-23T12:43:48.158Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = io.github.jogold.cloudstructs.$Module.class, fqn = "cloudstructs.RollTrigger")
public abstract class RollTrigger extends software.amazon.jsii.JsiiObject {
protected RollTrigger(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected RollTrigger(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
protected RollTrigger() {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this);
}
/**
* Rule that should trigger a roll.
*
* @param rule This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull io.github.jogold.cloudstructs.RollTrigger fromRule(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.events.Rule rule) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(io.github.jogold.cloudstructs.RollTrigger.class, "fromRule", software.amazon.jsii.NativeType.forClass(io.github.jogold.cloudstructs.RollTrigger.class), new Object[] { java.util.Objects.requireNonNull(rule, "rule is required") });
}
/**
* Schedule that should trigger a roll.
*
* @param schedule This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull io.github.jogold.cloudstructs.RollTrigger fromSchedule(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.events.Schedule schedule) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(io.github.jogold.cloudstructs.RollTrigger.class, "fromSchedule", software.amazon.jsii.NativeType.forClass(io.github.jogold.cloudstructs.RollTrigger.class), new Object[] { java.util.Objects.requireNonNull(schedule, "schedule is required") });
}
/**
* Roll rule.
*
* Default: - roll everyday at midnight
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public abstract @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.events.Rule getRule();
/**
* Roll schedule.
*
* Default: - roll everyday at midnight
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public abstract @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.events.Schedule getSchedule();
/**
* A proxy class which represents a concrete javascript instance of this type.
*/
@software.amazon.jsii.Internal
private static final class Jsii$Proxy extends io.github.jogold.cloudstructs.RollTrigger {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
/**
* Roll rule.
*
* Default: - roll everyday at midnight
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.events.Rule getRule() {
return software.amazon.jsii.Kernel.get(this, "rule", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.events.Rule.class));
}
/**
* Roll schedule.
*
* Default: - roll everyday at midnight
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.events.Schedule getSchedule() {
return software.amazon.jsii.Kernel.get(this, "schedule", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.events.Schedule.class));
}
}
}