io.github.cdklabs.cdk.appflow.SalesforceDestination 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.283Z")
@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.SalesforceDestination")
public class SalesforceDestination extends software.amazon.jsii.JsiiObject implements io.github.cdklabs.cdk.appflow.IDestination {
protected SalesforceDestination(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected SalesforceDestination(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public SalesforceDestination(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.SalesforceDestinationProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* @param flow This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appflow.CfnFlow.DestinationFlowConfigProperty bind(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.IFlow flow) {
return software.amazon.jsii.Kernel.call(this, "bind", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.appflow.CfnFlow.DestinationFlowConfigProperty.class), new Object[] { java.util.Objects.requireNonNull(flow, "flow is required") });
}
/**
* (experimental) The AppFlow type of the connector that this source is implemented for.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.ConnectorType getConnectorType() {
return software.amazon.jsii.Kernel.get(this, "connectorType", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.appflow.ConnectorType.class));
}
/**
* (experimental) A fluent builder for {@link io.github.cdklabs.cdk.appflow.SalesforceDestination}.
*/
@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}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static Builder create() {
return new Builder();
}
private final io.github.cdklabs.cdk.appflow.SalesforceDestinationProps.Builder props;
private Builder() {
this.props = new io.github.cdklabs.cdk.appflow.SalesforceDestinationProps.Builder();
}
/**
* (experimental) The Salesforce object for which the operation is to be set.
*
* @return {@code this}
* @param object The Salesforce object for which the operation is to be set. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder object(final java.lang.String object) {
this.props.object(object);
return this;
}
/**
* @return {@code this}
* @param operation This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder operation(final io.github.cdklabs.cdk.appflow.WriteOperation operation) {
this.props.operation(operation);
return this;
}
/**
* @return {@code this}
* @param profile This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder profile(final io.github.cdklabs.cdk.appflow.SalesforceConnectorProfile profile) {
this.props.profile(profile);
return this;
}
/**
* (experimental) Specifies which Salesforce API is used by Amazon AppFlow when your flow transfers data to Salesforce.
*
* @return {@code this}
* @param dataTransferApi Specifies which Salesforce API is used by Amazon AppFlow when your flow transfers data to Salesforce. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder dataTransferApi(final io.github.cdklabs.cdk.appflow.SalesforceDataTransferApi dataTransferApi) {
this.props.dataTransferApi(dataTransferApi);
return this;
}
/**
* (experimental) The settings that determine how Amazon AppFlow handles an error when placing data in the Salesforce destination.
*
* For example, this setting would determine if the flow should fail after one insertion error, or continue and attempt to insert every record regardless of the initial failure.
*
* @return {@code this}
* @param errorHandling The settings that determine how Amazon AppFlow handles an error when placing data in the Salesforce destination. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder errorHandling(final io.github.cdklabs.cdk.appflow.ErrorHandlingConfiguration errorHandling) {
this.props.errorHandling(errorHandling);
return this;
}
/**
* @return a newly built instance of {@link io.github.cdklabs.cdk.appflow.SalesforceDestination}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public io.github.cdklabs.cdk.appflow.SalesforceDestination build() {
return new io.github.cdklabs.cdk.appflow.SalesforceDestination(
this.props.build()
);
}
}
}