All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.cdklabs.awscdk.appsync.utils.SourceApiAssociationMergeOperationProps Maven / Gradle / Ivy

There is a newer version: 0.0.579
Show newest version
package io.github.cdklabs.awscdk.appsync.utils;

/**
 * Properties for SourceApiAssociationMergeOperation which handles triggering a merge operation as a custom resource during a Cloudformation stack update.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-28T00:18:00.323Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.awscdk.appsync.utils.$Module.class, fqn = "awscdk-appsync-utils.SourceApiAssociationMergeOperationProps")
@software.amazon.jsii.Jsii.Proxy(SourceApiAssociationMergeOperationProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface SourceApiAssociationMergeOperationProps extends software.amazon.jsii.JsiiSerializable {

    /**
     * The source api association resource which will be merged.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.ISourceApiAssociation getSourceApiAssociation();

    /**
     * Flag indicating whether the source api should be merged on every CFN update or not.
     * 

* If set to true and there are no changes to the source API, this will result in a no-op merge operation. *

* Default: False */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Boolean getAlwaysMergeOnStackUpdate() { return null; } /** * The merge operation provider construct which is responsible for configuring the Lambda resource that will be invoked during Cloudformation update. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable io.github.cdklabs.awscdk.appsync.utils.ISourceApiAssociationMergeOperationProvider getMergeOperationProvider() { return null; } /** * The version identifier for the schema merge operation. *

* Any change to the version identifier will trigger a merge on the next * update. Use the version identifier property to control when the source API metadata is merged. *

* Default: null */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getVersionIdentifier() { return null; } /** * @return a {@link Builder} of {@link SourceApiAssociationMergeOperationProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link SourceApiAssociationMergeOperationProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { software.amazon.awscdk.services.appsync.ISourceApiAssociation sourceApiAssociation; java.lang.Boolean alwaysMergeOnStackUpdate; io.github.cdklabs.awscdk.appsync.utils.ISourceApiAssociationMergeOperationProvider mergeOperationProvider; java.lang.String versionIdentifier; /** * Sets the value of {@link SourceApiAssociationMergeOperationProps#getSourceApiAssociation} * @param sourceApiAssociation The source api association resource which will be merged. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder sourceApiAssociation(software.amazon.awscdk.services.appsync.ISourceApiAssociation sourceApiAssociation) { this.sourceApiAssociation = sourceApiAssociation; return this; } /** * Sets the value of {@link SourceApiAssociationMergeOperationProps#getAlwaysMergeOnStackUpdate} * @param alwaysMergeOnStackUpdate Flag indicating whether the source api should be merged on every CFN update or not. * If set to true and there are no changes to the source API, this will result in a no-op merge operation. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder alwaysMergeOnStackUpdate(java.lang.Boolean alwaysMergeOnStackUpdate) { this.alwaysMergeOnStackUpdate = alwaysMergeOnStackUpdate; return this; } /** * Sets the value of {@link SourceApiAssociationMergeOperationProps#getMergeOperationProvider} * @param mergeOperationProvider The merge operation provider construct which is responsible for configuring the Lambda resource that will be invoked during Cloudformation update. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder mergeOperationProvider(io.github.cdklabs.awscdk.appsync.utils.ISourceApiAssociationMergeOperationProvider mergeOperationProvider) { this.mergeOperationProvider = mergeOperationProvider; return this; } /** * Sets the value of {@link SourceApiAssociationMergeOperationProps#getVersionIdentifier} * @param versionIdentifier The version identifier for the schema merge operation. * Any change to the version identifier will trigger a merge on the next * update. Use the version identifier property to control when the source API metadata is merged. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder versionIdentifier(java.lang.String versionIdentifier) { this.versionIdentifier = versionIdentifier; return this; } /** * Builds the configured instance. * @return a new instance of {@link SourceApiAssociationMergeOperationProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public SourceApiAssociationMergeOperationProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link SourceApiAssociationMergeOperationProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SourceApiAssociationMergeOperationProps { private final software.amazon.awscdk.services.appsync.ISourceApiAssociation sourceApiAssociation; private final java.lang.Boolean alwaysMergeOnStackUpdate; private final io.github.cdklabs.awscdk.appsync.utils.ISourceApiAssociationMergeOperationProvider mergeOperationProvider; private final java.lang.String versionIdentifier; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. * @param objRef Reference to the JSII managed object. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); this.sourceApiAssociation = software.amazon.jsii.Kernel.get(this, "sourceApiAssociation", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.appsync.ISourceApiAssociation.class)); this.alwaysMergeOnStackUpdate = software.amazon.jsii.Kernel.get(this, "alwaysMergeOnStackUpdate", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.mergeOperationProvider = software.amazon.jsii.Kernel.get(this, "mergeOperationProvider", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.awscdk.appsync.utils.ISourceApiAssociationMergeOperationProvider.class)); this.versionIdentifier = software.amazon.jsii.Kernel.get(this, "versionIdentifier", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.sourceApiAssociation = java.util.Objects.requireNonNull(builder.sourceApiAssociation, "sourceApiAssociation is required"); this.alwaysMergeOnStackUpdate = builder.alwaysMergeOnStackUpdate; this.mergeOperationProvider = builder.mergeOperationProvider; this.versionIdentifier = builder.versionIdentifier; } @Override public final software.amazon.awscdk.services.appsync.ISourceApiAssociation getSourceApiAssociation() { return this.sourceApiAssociation; } @Override public final java.lang.Boolean getAlwaysMergeOnStackUpdate() { return this.alwaysMergeOnStackUpdate; } @Override public final io.github.cdklabs.awscdk.appsync.utils.ISourceApiAssociationMergeOperationProvider getMergeOperationProvider() { return this.mergeOperationProvider; } @Override public final java.lang.String getVersionIdentifier() { return this.versionIdentifier; } @Override @software.amazon.jsii.Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); data.set("sourceApiAssociation", om.valueToTree(this.getSourceApiAssociation())); if (this.getAlwaysMergeOnStackUpdate() != null) { data.set("alwaysMergeOnStackUpdate", om.valueToTree(this.getAlwaysMergeOnStackUpdate())); } if (this.getMergeOperationProvider() != null) { data.set("mergeOperationProvider", om.valueToTree(this.getMergeOperationProvider())); } if (this.getVersionIdentifier() != null) { data.set("versionIdentifier", om.valueToTree(this.getVersionIdentifier())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("awscdk-appsync-utils.SourceApiAssociationMergeOperationProps")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); obj.set("$jsii.struct", struct); return obj; } @Override public final boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SourceApiAssociationMergeOperationProps.Jsii$Proxy that = (SourceApiAssociationMergeOperationProps.Jsii$Proxy) o; if (!sourceApiAssociation.equals(that.sourceApiAssociation)) return false; if (this.alwaysMergeOnStackUpdate != null ? !this.alwaysMergeOnStackUpdate.equals(that.alwaysMergeOnStackUpdate) : that.alwaysMergeOnStackUpdate != null) return false; if (this.mergeOperationProvider != null ? !this.mergeOperationProvider.equals(that.mergeOperationProvider) : that.mergeOperationProvider != null) return false; return this.versionIdentifier != null ? this.versionIdentifier.equals(that.versionIdentifier) : that.versionIdentifier == null; } @Override public final int hashCode() { int result = this.sourceApiAssociation.hashCode(); result = 31 * result + (this.alwaysMergeOnStackUpdate != null ? this.alwaysMergeOnStackUpdate.hashCode() : 0); result = 31 * result + (this.mergeOperationProvider != null ? this.mergeOperationProvider.hashCode() : 0); result = 31 * result + (this.versionIdentifier != null ? this.versionIdentifier.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy