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

io.github.cdklabs.cdk.appflow.MicrosoftSharepointOnlineObject Maven / Gradle / Ivy

There is a newer version: 0.0.44
Show newest version
package io.github.cdklabs.cdk.appflow;

/**
 * (experimental) Represents a list of Microsoft Sharepoint Online site drives from which to retrieve the documents.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-10-11T10:39:08.264Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdk.appflow.$Module.class, fqn = "@cdklabs/cdk-appflow.MicrosoftSharepointOnlineObject")
@software.amazon.jsii.Jsii.Proxy(MicrosoftSharepointOnlineObject.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface MicrosoftSharepointOnlineObject extends software.amazon.jsii.JsiiSerializable {

    /**
     * (experimental) The Microsoft Sharepoint Online site from which the documents are to be retrieved.
     * 

* Note: requires full name starting with 'sites/' */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @org.jetbrains.annotations.NotNull java.lang.String getSite(); /** * (deprecated) An array of Microsoft Sharepoint Online site drives from which the documents are to be retrieved. *

* Note: each drive requires full name starting with 'drives/' *

* @deprecated . This property is deprecated and will be removed in a future release. Use {@link entities } instead */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated default @org.jetbrains.annotations.Nullable java.util.List getDrives() { return null; } /** * (experimental) An array of Microsoft Sharepoint Online site entities from which the documents are to be retrieved. *

* Note: each entity requires full name starting with 'drives/' followed by driveID and optional '/items/' followed by itemID *

* Example: *

*

     * "drives/${driveID}/items/${itemID}";
     * 
*/ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.util.List getEntities() { return null; } /** * @return a {@link Builder} of {@link MicrosoftSharepointOnlineObject} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) static Builder builder() { return new Builder(); } /** * A builder for {@link MicrosoftSharepointOnlineObject} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String site; java.util.List drives; java.util.List entities; /** * Sets the value of {@link MicrosoftSharepointOnlineObject#getSite} * @param site The Microsoft Sharepoint Online site from which the documents are to be retrieved. This parameter is required. * Note: requires full name starting with 'sites/' * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder site(java.lang.String site) { this.site = site; return this; } /** * Sets the value of {@link MicrosoftSharepointOnlineObject#getDrives} * @param drives An array of Microsoft Sharepoint Online site drives from which the documents are to be retrieved. * Note: each drive requires full name starting with 'drives/' * @return {@code this} * @deprecated . This property is deprecated and will be removed in a future release. Use {@link entities } instead */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public Builder drives(java.util.List drives) { this.drives = drives; return this; } /** * Sets the value of {@link MicrosoftSharepointOnlineObject#getEntities} * @param entities An array of Microsoft Sharepoint Online site entities from which the documents are to be retrieved. * Note: each entity requires full name starting with 'drives/' followed by driveID and optional '/items/' followed by itemID * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder entities(java.util.List entities) { this.entities = entities; return this; } /** * Builds the configured instance. * @return a new instance of {@link MicrosoftSharepointOnlineObject} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public MicrosoftSharepointOnlineObject build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link MicrosoftSharepointOnlineObject} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MicrosoftSharepointOnlineObject { private final java.lang.String site; private final java.util.List drives; private final java.util.List entities; /** * 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.site = software.amazon.jsii.Kernel.get(this, "site", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.drives = software.amazon.jsii.Kernel.get(this, "drives", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); this.entities = software.amazon.jsii.Kernel.get(this, "entities", software.amazon.jsii.NativeType.listOf(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.site = java.util.Objects.requireNonNull(builder.site, "site is required"); this.drives = builder.drives; this.entities = builder.entities; } @Override public final java.lang.String getSite() { return this.site; } @Override public final java.util.List getDrives() { return this.drives; } @Override public final java.util.List getEntities() { return this.entities; } @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("site", om.valueToTree(this.getSite())); if (this.getDrives() != null) { data.set("drives", om.valueToTree(this.getDrives())); } if (this.getEntities() != null) { data.set("entities", om.valueToTree(this.getEntities())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@cdklabs/cdk-appflow.MicrosoftSharepointOnlineObject")); 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; MicrosoftSharepointOnlineObject.Jsii$Proxy that = (MicrosoftSharepointOnlineObject.Jsii$Proxy) o; if (!site.equals(that.site)) return false; if (this.drives != null ? !this.drives.equals(that.drives) : that.drives != null) return false; return this.entities != null ? this.entities.equals(that.entities) : that.entities == null; } @Override public final int hashCode() { int result = this.site.hashCode(); result = 31 * result + (this.drives != null ? this.drives.hashCode() : 0); result = 31 * result + (this.entities != null ? this.entities.hashCode() : 0); return result; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy