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

org.mongodb.awscdk.resources.mongodbatlas.ScheduleView 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.058Z")
@software.amazon.jsii.Jsii(module = org.mongodb.awscdk.resources.mongodbatlas.$Module.class, fqn = "awscdk-resources-mongodbatlas.ScheduleView")
@software.amazon.jsii.Jsii.Proxy(ScheduleView.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface ScheduleView extends software.amazon.jsii.JsiiSerializable {

    /**
     * Day of the month when the scheduled archive starts.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.Number getDayOfMonth() {
        return null;
    }

    /**
     * Day of the month when the scheduled archive starts.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.Number getDayOfWeek() {
        return null;
    }

    /**
     * Hour of the day when the scheduled window to run one online archive ends.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.Number getEndHour() {
        return null;
    }

    /**
     * Minute of the hour when the scheduled window to run one online archive ends.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.Number getEndMinute() {
        return null;
    }

    /**
     * Hour of the day when the when the scheduled window to run one online archive starts.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.Number getStartHour() {
        return null;
    }

    /**
     * Minute of the hour when the scheduled window to run one online archive starts.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.Number getStartMinute() {
        return null;
    }

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

    /**
     * @return a {@link Builder} of {@link ScheduleView}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    static Builder builder() {
        return new Builder();
    }
    /**
     * A builder for {@link ScheduleView}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public static final class Builder implements software.amazon.jsii.Builder {
        java.lang.Number dayOfMonth;
        java.lang.Number dayOfWeek;
        java.lang.Number endHour;
        java.lang.Number endMinute;
        java.lang.Number startHour;
        java.lang.Number startMinute;
        org.mongodb.awscdk.resources.mongodbatlas.ScheduleViewType type;

        /**
         * Sets the value of {@link ScheduleView#getDayOfMonth}
         * @param dayOfMonth Day of the month when the scheduled archive starts.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder dayOfMonth(java.lang.Number dayOfMonth) {
            this.dayOfMonth = dayOfMonth;
            return this;
        }

        /**
         * Sets the value of {@link ScheduleView#getDayOfWeek}
         * @param dayOfWeek Day of the month when the scheduled archive starts.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder dayOfWeek(java.lang.Number dayOfWeek) {
            this.dayOfWeek = dayOfWeek;
            return this;
        }

        /**
         * Sets the value of {@link ScheduleView#getEndHour}
         * @param endHour Hour of the day when the scheduled window to run one online archive ends.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder endHour(java.lang.Number endHour) {
            this.endHour = endHour;
            return this;
        }

        /**
         * Sets the value of {@link ScheduleView#getEndMinute}
         * @param endMinute Minute of the hour when the scheduled window to run one online archive ends.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder endMinute(java.lang.Number endMinute) {
            this.endMinute = endMinute;
            return this;
        }

        /**
         * Sets the value of {@link ScheduleView#getStartHour}
         * @param startHour Hour of the day when the when the scheduled window to run one online archive starts.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder startHour(java.lang.Number startHour) {
            this.startHour = startHour;
            return this;
        }

        /**
         * Sets the value of {@link ScheduleView#getStartMinute}
         * @param startMinute Minute of the hour when the scheduled window to run one online archive starts.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder startMinute(java.lang.Number startMinute) {
            this.startMinute = startMinute;
            return this;
        }

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

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

    /**
     * An implementation for {@link ScheduleView}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @software.amazon.jsii.Internal
    final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ScheduleView {
        private final java.lang.Number dayOfMonth;
        private final java.lang.Number dayOfWeek;
        private final java.lang.Number endHour;
        private final java.lang.Number endMinute;
        private final java.lang.Number startHour;
        private final java.lang.Number startMinute;
        private final org.mongodb.awscdk.resources.mongodbatlas.ScheduleViewType type;

        /**
         * 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.dayOfMonth = software.amazon.jsii.Kernel.get(this, "dayOfMonth", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
            this.dayOfWeek = software.amazon.jsii.Kernel.get(this, "dayOfWeek", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
            this.endHour = software.amazon.jsii.Kernel.get(this, "endHour", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
            this.endMinute = software.amazon.jsii.Kernel.get(this, "endMinute", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
            this.startHour = software.amazon.jsii.Kernel.get(this, "startHour", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
            this.startMinute = software.amazon.jsii.Kernel.get(this, "startMinute", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
            this.type = software.amazon.jsii.Kernel.get(this, "type", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.ScheduleViewType.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.dayOfMonth = builder.dayOfMonth;
            this.dayOfWeek = builder.dayOfWeek;
            this.endHour = builder.endHour;
            this.endMinute = builder.endMinute;
            this.startHour = builder.startHour;
            this.startMinute = builder.startMinute;
            this.type = builder.type;
        }

        @Override
        public final java.lang.Number getDayOfMonth() {
            return this.dayOfMonth;
        }

        @Override
        public final java.lang.Number getDayOfWeek() {
            return this.dayOfWeek;
        }

        @Override
        public final java.lang.Number getEndHour() {
            return this.endHour;
        }

        @Override
        public final java.lang.Number getEndMinute() {
            return this.endMinute;
        }

        @Override
        public final java.lang.Number getStartHour() {
            return this.startHour;
        }

        @Override
        public final java.lang.Number getStartMinute() {
            return this.startMinute;
        }

        @Override
        public final org.mongodb.awscdk.resources.mongodbatlas.ScheduleViewType getType() {
            return this.type;
        }

        @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();

            if (this.getDayOfMonth() != null) {
                data.set("dayOfMonth", om.valueToTree(this.getDayOfMonth()));
            }
            if (this.getDayOfWeek() != null) {
                data.set("dayOfWeek", om.valueToTree(this.getDayOfWeek()));
            }
            if (this.getEndHour() != null) {
                data.set("endHour", om.valueToTree(this.getEndHour()));
            }
            if (this.getEndMinute() != null) {
                data.set("endMinute", om.valueToTree(this.getEndMinute()));
            }
            if (this.getStartHour() != null) {
                data.set("startHour", om.valueToTree(this.getStartHour()));
            }
            if (this.getStartMinute() != null) {
                data.set("startMinute", om.valueToTree(this.getStartMinute()));
            }
            if (this.getType() != null) {
                data.set("type", om.valueToTree(this.getType()));
            }

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

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

            if (this.dayOfMonth != null ? !this.dayOfMonth.equals(that.dayOfMonth) : that.dayOfMonth != null) return false;
            if (this.dayOfWeek != null ? !this.dayOfWeek.equals(that.dayOfWeek) : that.dayOfWeek != null) return false;
            if (this.endHour != null ? !this.endHour.equals(that.endHour) : that.endHour != null) return false;
            if (this.endMinute != null ? !this.endMinute.equals(that.endMinute) : that.endMinute != null) return false;
            if (this.startHour != null ? !this.startHour.equals(that.startHour) : that.startHour != null) return false;
            if (this.startMinute != null ? !this.startMinute.equals(that.startMinute) : that.startMinute != null) return false;
            return this.type != null ? this.type.equals(that.type) : that.type == null;
        }

        @Override
        public final int hashCode() {
            int result = this.dayOfMonth != null ? this.dayOfMonth.hashCode() : 0;
            result = 31 * result + (this.dayOfWeek != null ? this.dayOfWeek.hashCode() : 0);
            result = 31 * result + (this.endHour != null ? this.endHour.hashCode() : 0);
            result = 31 * result + (this.endMinute != null ? this.endMinute.hashCode() : 0);
            result = 31 * result + (this.startHour != null ? this.startHour.hashCode() : 0);
            result = 31 * result + (this.startMinute != null ? this.startMinute.hashCode() : 0);
            result = 31 * result + (this.type != null ? this.type.hashCode() : 0);
            return result;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy