io.github.cdklabs.cdk.appflow.OnScheduleFlow Maven / Gradle / Ivy
package io.github.cdklabs.cdk.appflow;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-10-11T10:39:08.267Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdk.appflow.$Module.class, fqn = "@cdklabs/cdk-appflow.OnScheduleFlow")
public class OnScheduleFlow extends io.github.cdklabs.cdk.appflow.TriggeredFlowBase implements io.github.cdklabs.cdk.appflow.IFlow {
protected OnScheduleFlow(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected OnScheduleFlow(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param scope This parameter is required.
* @param id This parameter is required.
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public OnScheduleFlow(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.OnScheduleFlowProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* @param id This parameter is required.
* @param options
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.events.Rule onDeactivated(final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.events.OnEventOptions options) {
return software.amazon.jsii.Kernel.call(this, "onDeactivated", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.events.Rule.class), new Object[] { java.util.Objects.requireNonNull(id, "id is required"), options });
}
/**
* @param id This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.events.Rule onDeactivated(final @org.jetbrains.annotations.NotNull java.lang.String id) {
return software.amazon.jsii.Kernel.call(this, "onDeactivated", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.events.Rule.class), new Object[] { java.util.Objects.requireNonNull(id, "id is required") });
}
/**
* (experimental) A fluent builder for {@link io.github.cdklabs.cdk.appflow.OnScheduleFlow}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
* @param scope This parameter is required.
* @param id This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static Builder create(final software.constructs.Construct scope, final java.lang.String id) {
return new Builder(scope, id);
}
private final software.constructs.Construct scope;
private final java.lang.String id;
private final io.github.cdklabs.cdk.appflow.OnScheduleFlowProps.Builder props;
private Builder(final software.constructs.Construct scope, final java.lang.String id) {
this.scope = scope;
this.id = id;
this.props = new io.github.cdklabs.cdk.appflow.OnScheduleFlowProps.Builder();
}
/**
* @return {@code this}
* @param destination This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder destination(final io.github.cdklabs.cdk.appflow.IDestination destination) {
this.props.destination(destination);
return this;
}
/**
* @return {@code this}
* @param mappings This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder mappings(final java.util.List extends io.github.cdklabs.cdk.appflow.IMapping> mappings) {
this.props.mappings(mappings);
return this;
}
/**
* @return {@code this}
* @param source This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder source(final io.github.cdklabs.cdk.appflow.ISource source) {
this.props.source(source);
return this;
}
/**
* @return {@code this}
* @param description This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder description(final java.lang.String description) {
this.props.description(description);
return this;
}
/**
* @return {@code this}
* @param filters This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder filters(final java.util.List extends io.github.cdklabs.cdk.appflow.IFilter> filters) {
this.props.filters(filters);
return this;
}
/**
* @return {@code this}
* @param key This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder key(final software.amazon.awscdk.services.kms.IKey key) {
this.props.key(key);
return this;
}
/**
* @return {@code this}
* @param name This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder name(final java.lang.String name) {
this.props.name(name);
return this;
}
/**
* @return {@code this}
* @param transforms This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder transforms(final java.util.List extends io.github.cdklabs.cdk.appflow.ITransform> transforms) {
this.props.transforms(transforms);
return this;
}
/**
* @return {@code this}
* @param validations This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder validations(final java.util.List extends io.github.cdklabs.cdk.appflow.IValidation> validations) {
this.props.validations(validations);
return this;
}
/**
* @return {@code this}
* @deprecated . This property is deprecated and will be removed in a future release. Use {@link status } instead
* @param autoActivate This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated)
@Deprecated
public Builder autoActivate(final java.lang.Boolean autoActivate) {
this.props.autoActivate(autoActivate);
return this;
}
/**
* (experimental) The status to set on the flow.
*
* Use this over {@link autoActivate}.
*
* @return {@code this}
* @param status The status to set on the flow. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder status(final io.github.cdklabs.cdk.appflow.FlowStatus status) {
this.props.status(status);
return this;
}
/**
* @return {@code this}
* @param pullConfig This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder pullConfig(final io.github.cdklabs.cdk.appflow.DataPullConfig pullConfig) {
this.props.pullConfig(pullConfig);
return this;
}
/**
* @return {@code this}
* @param schedule This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder schedule(final software.amazon.awscdk.services.events.Schedule schedule) {
this.props.schedule(schedule);
return this;
}
/**
* @return {@code this}
* @param scheduleProperties This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder scheduleProperties(final io.github.cdklabs.cdk.appflow.ScheduleProperties scheduleProperties) {
this.props.scheduleProperties(scheduleProperties);
return this;
}
/**
* @return a newly built instance of {@link io.github.cdklabs.cdk.appflow.OnScheduleFlow}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public io.github.cdklabs.cdk.appflow.OnScheduleFlow build() {
return new io.github.cdklabs.cdk.appflow.OnScheduleFlow(
this.scope,
this.id,
this.props.build()
);
}
}
}