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

org.mongodb.awscdk.resources.mongodbatlas.ProjectProps Maven / Gradle / Ivy

There is a newer version: 3.9.0
Show newest version
package org.mongodb.awscdk.resources.mongodbatlas;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-07-30T09:54:29.055Z")
@software.amazon.jsii.Jsii(module = org.mongodb.awscdk.resources.mongodbatlas.$Module.class, fqn = "awscdk-resources-mongodbatlas.ProjectProps")
@software.amazon.jsii.Jsii.Proxy(ProjectProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface ProjectProps extends software.amazon.jsii.JsiiSerializable {

    /**
     * Default: auto-generated
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.String getOrgId();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.Number getClusterCount() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.String getName() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.util.List getProjectApiKeys() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.String getProjectOwnerId() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable org.mongodb.awscdk.resources.mongodbatlas.ProjectSettings getProjectSettings() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.util.List getProjectTeams() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.Boolean getWithDefaultAlertsSettings() {
        return null;
    }

    /**
     * @return a {@link Builder} of {@link ProjectProps}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    static Builder builder() {
        return new Builder();
    }
    /**
     * A builder for {@link ProjectProps}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public static final class Builder implements software.amazon.jsii.Builder {
        java.lang.String orgId;
        java.lang.Number clusterCount;
        java.lang.String name;
        java.util.List projectApiKeys;
        java.lang.String projectOwnerId;
        org.mongodb.awscdk.resources.mongodbatlas.ProjectSettings projectSettings;
        java.util.List projectTeams;
        java.lang.Boolean withDefaultAlertsSettings;

        /**
         * Sets the value of {@link ProjectProps#getOrgId}
         * @param orgId the value to be set. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder orgId(java.lang.String orgId) {
            this.orgId = orgId;
            return this;
        }

        /**
         * Sets the value of {@link ProjectProps#getClusterCount}
         * @param clusterCount the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder clusterCount(java.lang.Number clusterCount) {
            this.clusterCount = clusterCount;
            return this;
        }

        /**
         * Sets the value of {@link ProjectProps#getName}
         * @param name the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder name(java.lang.String name) {
            this.name = name;
            return this;
        }

        /**
         * Sets the value of {@link ProjectProps#getProjectApiKeys}
         * @param projectApiKeys the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        @SuppressWarnings("unchecked")
        public Builder projectApiKeys(java.util.List projectApiKeys) {
            this.projectApiKeys = (java.util.List)projectApiKeys;
            return this;
        }

        /**
         * Sets the value of {@link ProjectProps#getProjectOwnerId}
         * @param projectOwnerId the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder projectOwnerId(java.lang.String projectOwnerId) {
            this.projectOwnerId = projectOwnerId;
            return this;
        }

        /**
         * Sets the value of {@link ProjectProps#getProjectSettings}
         * @param projectSettings the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder projectSettings(org.mongodb.awscdk.resources.mongodbatlas.ProjectSettings projectSettings) {
            this.projectSettings = projectSettings;
            return this;
        }

        /**
         * Sets the value of {@link ProjectProps#getProjectTeams}
         * @param projectTeams the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        @SuppressWarnings("unchecked")
        public Builder projectTeams(java.util.List projectTeams) {
            this.projectTeams = (java.util.List)projectTeams;
            return this;
        }

        /**
         * Sets the value of {@link ProjectProps#getWithDefaultAlertsSettings}
         * @param withDefaultAlertsSettings the value to be set.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder withDefaultAlertsSettings(java.lang.Boolean withDefaultAlertsSettings) {
            this.withDefaultAlertsSettings = withDefaultAlertsSettings;
            return this;
        }

        /**
         * Builds the configured instance.
         * @return a new instance of {@link ProjectProps}
         * @throws NullPointerException if any required attribute was not provided
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        @Override
        public ProjectProps build() {
            return new Jsii$Proxy(this);
        }
    }

    /**
     * An implementation for {@link ProjectProps}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @software.amazon.jsii.Internal
    final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ProjectProps {
        private final java.lang.String orgId;
        private final java.lang.Number clusterCount;
        private final java.lang.String name;
        private final java.util.List projectApiKeys;
        private final java.lang.String projectOwnerId;
        private final org.mongodb.awscdk.resources.mongodbatlas.ProjectSettings projectSettings;
        private final java.util.List projectTeams;
        private final java.lang.Boolean withDefaultAlertsSettings;

        /**
         * 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.orgId = software.amazon.jsii.Kernel.get(this, "orgId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.clusterCount = software.amazon.jsii.Kernel.get(this, "clusterCount", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
            this.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.projectApiKeys = software.amazon.jsii.Kernel.get(this, "projectApiKeys", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.ProjectApiKey.class)));
            this.projectOwnerId = software.amazon.jsii.Kernel.get(this, "projectOwnerId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.projectSettings = software.amazon.jsii.Kernel.get(this, "projectSettings", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.ProjectSettings.class));
            this.projectTeams = software.amazon.jsii.Kernel.get(this, "projectTeams", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.ProjectTeam.class)));
            this.withDefaultAlertsSettings = software.amazon.jsii.Kernel.get(this, "withDefaultAlertsSettings", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
        }

        /**
         * Constructor that initializes the object based on literal property values passed by the {@link Builder}.
         */
        @SuppressWarnings("unchecked")
        protected Jsii$Proxy(final Builder builder) {
            super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
            this.orgId = java.util.Objects.requireNonNull(builder.orgId, "orgId is required");
            this.clusterCount = builder.clusterCount;
            this.name = builder.name;
            this.projectApiKeys = (java.util.List)builder.projectApiKeys;
            this.projectOwnerId = builder.projectOwnerId;
            this.projectSettings = builder.projectSettings;
            this.projectTeams = (java.util.List)builder.projectTeams;
            this.withDefaultAlertsSettings = builder.withDefaultAlertsSettings;
        }

        @Override
        public final java.lang.String getOrgId() {
            return this.orgId;
        }

        @Override
        public final java.lang.Number getClusterCount() {
            return this.clusterCount;
        }

        @Override
        public final java.lang.String getName() {
            return this.name;
        }

        @Override
        public final java.util.List getProjectApiKeys() {
            return this.projectApiKeys;
        }

        @Override
        public final java.lang.String getProjectOwnerId() {
            return this.projectOwnerId;
        }

        @Override
        public final org.mongodb.awscdk.resources.mongodbatlas.ProjectSettings getProjectSettings() {
            return this.projectSettings;
        }

        @Override
        public final java.util.List getProjectTeams() {
            return this.projectTeams;
        }

        @Override
        public final java.lang.Boolean getWithDefaultAlertsSettings() {
            return this.withDefaultAlertsSettings;
        }

        @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("orgId", om.valueToTree(this.getOrgId()));
            if (this.getClusterCount() != null) {
                data.set("clusterCount", om.valueToTree(this.getClusterCount()));
            }
            if (this.getName() != null) {
                data.set("name", om.valueToTree(this.getName()));
            }
            if (this.getProjectApiKeys() != null) {
                data.set("projectApiKeys", om.valueToTree(this.getProjectApiKeys()));
            }
            if (this.getProjectOwnerId() != null) {
                data.set("projectOwnerId", om.valueToTree(this.getProjectOwnerId()));
            }
            if (this.getProjectSettings() != null) {
                data.set("projectSettings", om.valueToTree(this.getProjectSettings()));
            }
            if (this.getProjectTeams() != null) {
                data.set("projectTeams", om.valueToTree(this.getProjectTeams()));
            }
            if (this.getWithDefaultAlertsSettings() != null) {
                data.set("withDefaultAlertsSettings", om.valueToTree(this.getWithDefaultAlertsSettings()));
            }

            final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
            struct.set("fqn", om.valueToTree("awscdk-resources-mongodbatlas.ProjectProps"));
            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;

            ProjectProps.Jsii$Proxy that = (ProjectProps.Jsii$Proxy) o;

            if (!orgId.equals(that.orgId)) return false;
            if (this.clusterCount != null ? !this.clusterCount.equals(that.clusterCount) : that.clusterCount != null) return false;
            if (this.name != null ? !this.name.equals(that.name) : that.name != null) return false;
            if (this.projectApiKeys != null ? !this.projectApiKeys.equals(that.projectApiKeys) : that.projectApiKeys != null) return false;
            if (this.projectOwnerId != null ? !this.projectOwnerId.equals(that.projectOwnerId) : that.projectOwnerId != null) return false;
            if (this.projectSettings != null ? !this.projectSettings.equals(that.projectSettings) : that.projectSettings != null) return false;
            if (this.projectTeams != null ? !this.projectTeams.equals(that.projectTeams) : that.projectTeams != null) return false;
            return this.withDefaultAlertsSettings != null ? this.withDefaultAlertsSettings.equals(that.withDefaultAlertsSettings) : that.withDefaultAlertsSettings == null;
        }

        @Override
        public final int hashCode() {
            int result = this.orgId.hashCode();
            result = 31 * result + (this.clusterCount != null ? this.clusterCount.hashCode() : 0);
            result = 31 * result + (this.name != null ? this.name.hashCode() : 0);
            result = 31 * result + (this.projectApiKeys != null ? this.projectApiKeys.hashCode() : 0);
            result = 31 * result + (this.projectOwnerId != null ? this.projectOwnerId.hashCode() : 0);
            result = 31 * result + (this.projectSettings != null ? this.projectSettings.hashCode() : 0);
            result = 31 * result + (this.projectTeams != null ? this.projectTeams.hashCode() : 0);
            result = 31 * result + (this.withDefaultAlertsSettings != null ? this.withDefaultAlertsSettings.hashCode() : 0);
            return result;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy