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

com.thedesignium.cdklognotifier.DateTimeFormatOptions Maven / Gradle / Ivy

The newest version!
package com.thedesignium.cdklognotifier;

@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-07-31T07:21:45.548Z")
@software.amazon.jsii.Jsii(module = com.thedesignium.cdklognotifier.$Module.class, fqn = "@thedesignium/cdk-log-notifier.DateTimeFormatOptions")
@software.amazon.jsii.Jsii.Proxy(DateTimeFormatOptions.Jsii$Proxy.class)
public interface DateTimeFormatOptions extends software.amazon.jsii.JsiiSerializable {

    default @org.jetbrains.annotations.Nullable java.lang.String getDay() {
        return null;
    }

    default @org.jetbrains.annotations.Nullable java.lang.String getEra() {
        return null;
    }

    default @org.jetbrains.annotations.Nullable java.lang.String getFormatMatcher() {
        return null;
    }

    default @org.jetbrains.annotations.Nullable java.lang.String getHour() {
        return null;
    }

    default @org.jetbrains.annotations.Nullable java.lang.Boolean getHour12() {
        return null;
    }

    default @org.jetbrains.annotations.Nullable java.lang.String getLocaleMatcher() {
        return null;
    }

    default @org.jetbrains.annotations.Nullable java.lang.Object getLocales() {
        return null;
    }

    default @org.jetbrains.annotations.Nullable java.lang.String getMinute() {
        return null;
    }

    default @org.jetbrains.annotations.Nullable java.lang.String getMonth() {
        return null;
    }

    default @org.jetbrains.annotations.Nullable java.lang.String getSecond() {
        return null;
    }

    default @org.jetbrains.annotations.Nullable java.lang.String getTimeZone() {
        return null;
    }

    default @org.jetbrains.annotations.Nullable java.lang.String getTimeZoneName() {
        return null;
    }

    default @org.jetbrains.annotations.Nullable java.lang.String getWeekday() {
        return null;
    }

    default @org.jetbrains.annotations.Nullable java.lang.String getYear() {
        return null;
    }

    /**
     * @return a {@link Builder} of {@link DateTimeFormatOptions}
     */
    static Builder builder() {
        return new Builder();
    }
    /**
     * A builder for {@link DateTimeFormatOptions}
     */
    public static final class Builder implements software.amazon.jsii.Builder {
        java.lang.String day;
        java.lang.String era;
        java.lang.String formatMatcher;
        java.lang.String hour;
        java.lang.Boolean hour12;
        java.lang.String localeMatcher;
        java.lang.Object locales;
        java.lang.String minute;
        java.lang.String month;
        java.lang.String second;
        java.lang.String timeZone;
        java.lang.String timeZoneName;
        java.lang.String weekday;
        java.lang.String year;

        /**
         * Sets the value of {@link DateTimeFormatOptions#getDay}
         * @param day the value to be set.
         * @return {@code this}
         */
        public Builder day(java.lang.String day) {
            this.day = day;
            return this;
        }

        /**
         * Sets the value of {@link DateTimeFormatOptions#getEra}
         * @param era the value to be set.
         * @return {@code this}
         */
        public Builder era(java.lang.String era) {
            this.era = era;
            return this;
        }

        /**
         * Sets the value of {@link DateTimeFormatOptions#getFormatMatcher}
         * @param formatMatcher the value to be set.
         * @return {@code this}
         */
        public Builder formatMatcher(java.lang.String formatMatcher) {
            this.formatMatcher = formatMatcher;
            return this;
        }

        /**
         * Sets the value of {@link DateTimeFormatOptions#getHour}
         * @param hour the value to be set.
         * @return {@code this}
         */
        public Builder hour(java.lang.String hour) {
            this.hour = hour;
            return this;
        }

        /**
         * Sets the value of {@link DateTimeFormatOptions#getHour12}
         * @param hour12 the value to be set.
         * @return {@code this}
         */
        public Builder hour12(java.lang.Boolean hour12) {
            this.hour12 = hour12;
            return this;
        }

        /**
         * Sets the value of {@link DateTimeFormatOptions#getLocaleMatcher}
         * @param localeMatcher the value to be set.
         * @return {@code this}
         */
        public Builder localeMatcher(java.lang.String localeMatcher) {
            this.localeMatcher = localeMatcher;
            return this;
        }

        /**
         * Sets the value of {@link DateTimeFormatOptions#getLocales}
         * @param locales the value to be set.
         * @return {@code this}
         */
        public Builder locales(java.lang.String locales) {
            this.locales = locales;
            return this;
        }

        /**
         * Sets the value of {@link DateTimeFormatOptions#getLocales}
         * @param locales the value to be set.
         * @return {@code this}
         */
        public Builder locales(java.util.List locales) {
            this.locales = locales;
            return this;
        }

        /**
         * Sets the value of {@link DateTimeFormatOptions#getMinute}
         * @param minute the value to be set.
         * @return {@code this}
         */
        public Builder minute(java.lang.String minute) {
            this.minute = minute;
            return this;
        }

        /**
         * Sets the value of {@link DateTimeFormatOptions#getMonth}
         * @param month the value to be set.
         * @return {@code this}
         */
        public Builder month(java.lang.String month) {
            this.month = month;
            return this;
        }

        /**
         * Sets the value of {@link DateTimeFormatOptions#getSecond}
         * @param second the value to be set.
         * @return {@code this}
         */
        public Builder second(java.lang.String second) {
            this.second = second;
            return this;
        }

        /**
         * Sets the value of {@link DateTimeFormatOptions#getTimeZone}
         * @param timeZone the value to be set.
         * @return {@code this}
         */
        public Builder timeZone(java.lang.String timeZone) {
            this.timeZone = timeZone;
            return this;
        }

        /**
         * Sets the value of {@link DateTimeFormatOptions#getTimeZoneName}
         * @param timeZoneName the value to be set.
         * @return {@code this}
         */
        public Builder timeZoneName(java.lang.String timeZoneName) {
            this.timeZoneName = timeZoneName;
            return this;
        }

        /**
         * Sets the value of {@link DateTimeFormatOptions#getWeekday}
         * @param weekday the value to be set.
         * @return {@code this}
         */
        public Builder weekday(java.lang.String weekday) {
            this.weekday = weekday;
            return this;
        }

        /**
         * Sets the value of {@link DateTimeFormatOptions#getYear}
         * @param year the value to be set.
         * @return {@code this}
         */
        public Builder year(java.lang.String year) {
            this.year = year;
            return this;
        }

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

    /**
     * An implementation for {@link DateTimeFormatOptions}
     */
    @software.amazon.jsii.Internal
    final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DateTimeFormatOptions {
        private final java.lang.String day;
        private final java.lang.String era;
        private final java.lang.String formatMatcher;
        private final java.lang.String hour;
        private final java.lang.Boolean hour12;
        private final java.lang.String localeMatcher;
        private final java.lang.Object locales;
        private final java.lang.String minute;
        private final java.lang.String month;
        private final java.lang.String second;
        private final java.lang.String timeZone;
        private final java.lang.String timeZoneName;
        private final java.lang.String weekday;
        private final java.lang.String year;

        /**
         * 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.day = software.amazon.jsii.Kernel.get(this, "day", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.era = software.amazon.jsii.Kernel.get(this, "era", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.formatMatcher = software.amazon.jsii.Kernel.get(this, "formatMatcher", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.hour = software.amazon.jsii.Kernel.get(this, "hour", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.hour12 = software.amazon.jsii.Kernel.get(this, "hour12", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
            this.localeMatcher = software.amazon.jsii.Kernel.get(this, "localeMatcher", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.locales = software.amazon.jsii.Kernel.get(this, "locales", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
            this.minute = software.amazon.jsii.Kernel.get(this, "minute", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.month = software.amazon.jsii.Kernel.get(this, "month", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.second = software.amazon.jsii.Kernel.get(this, "second", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.timeZone = software.amazon.jsii.Kernel.get(this, "timeZone", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.timeZoneName = software.amazon.jsii.Kernel.get(this, "timeZoneName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.weekday = software.amazon.jsii.Kernel.get(this, "weekday", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.year = software.amazon.jsii.Kernel.get(this, "year", 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.day = builder.day;
            this.era = builder.era;
            this.formatMatcher = builder.formatMatcher;
            this.hour = builder.hour;
            this.hour12 = builder.hour12;
            this.localeMatcher = builder.localeMatcher;
            this.locales = builder.locales;
            this.minute = builder.minute;
            this.month = builder.month;
            this.second = builder.second;
            this.timeZone = builder.timeZone;
            this.timeZoneName = builder.timeZoneName;
            this.weekday = builder.weekday;
            this.year = builder.year;
        }

        @Override
        public final java.lang.String getDay() {
            return this.day;
        }

        @Override
        public final java.lang.String getEra() {
            return this.era;
        }

        @Override
        public final java.lang.String getFormatMatcher() {
            return this.formatMatcher;
        }

        @Override
        public final java.lang.String getHour() {
            return this.hour;
        }

        @Override
        public final java.lang.Boolean getHour12() {
            return this.hour12;
        }

        @Override
        public final java.lang.String getLocaleMatcher() {
            return this.localeMatcher;
        }

        @Override
        public final java.lang.Object getLocales() {
            return this.locales;
        }

        @Override
        public final java.lang.String getMinute() {
            return this.minute;
        }

        @Override
        public final java.lang.String getMonth() {
            return this.month;
        }

        @Override
        public final java.lang.String getSecond() {
            return this.second;
        }

        @Override
        public final java.lang.String getTimeZone() {
            return this.timeZone;
        }

        @Override
        public final java.lang.String getTimeZoneName() {
            return this.timeZoneName;
        }

        @Override
        public final java.lang.String getWeekday() {
            return this.weekday;
        }

        @Override
        public final java.lang.String getYear() {
            return this.year;
        }

        @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.getDay() != null) {
                data.set("day", om.valueToTree(this.getDay()));
            }
            if (this.getEra() != null) {
                data.set("era", om.valueToTree(this.getEra()));
            }
            if (this.getFormatMatcher() != null) {
                data.set("formatMatcher", om.valueToTree(this.getFormatMatcher()));
            }
            if (this.getHour() != null) {
                data.set("hour", om.valueToTree(this.getHour()));
            }
            if (this.getHour12() != null) {
                data.set("hour12", om.valueToTree(this.getHour12()));
            }
            if (this.getLocaleMatcher() != null) {
                data.set("localeMatcher", om.valueToTree(this.getLocaleMatcher()));
            }
            if (this.getLocales() != null) {
                data.set("locales", om.valueToTree(this.getLocales()));
            }
            if (this.getMinute() != null) {
                data.set("minute", om.valueToTree(this.getMinute()));
            }
            if (this.getMonth() != null) {
                data.set("month", om.valueToTree(this.getMonth()));
            }
            if (this.getSecond() != null) {
                data.set("second", om.valueToTree(this.getSecond()));
            }
            if (this.getTimeZone() != null) {
                data.set("timeZone", om.valueToTree(this.getTimeZone()));
            }
            if (this.getTimeZoneName() != null) {
                data.set("timeZoneName", om.valueToTree(this.getTimeZoneName()));
            }
            if (this.getWeekday() != null) {
                data.set("weekday", om.valueToTree(this.getWeekday()));
            }
            if (this.getYear() != null) {
                data.set("year", om.valueToTree(this.getYear()));
            }

            final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
            struct.set("fqn", om.valueToTree("@thedesignium/cdk-log-notifier.DateTimeFormatOptions"));
            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;

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

            if (this.day != null ? !this.day.equals(that.day) : that.day != null) return false;
            if (this.era != null ? !this.era.equals(that.era) : that.era != null) return false;
            if (this.formatMatcher != null ? !this.formatMatcher.equals(that.formatMatcher) : that.formatMatcher != null) return false;
            if (this.hour != null ? !this.hour.equals(that.hour) : that.hour != null) return false;
            if (this.hour12 != null ? !this.hour12.equals(that.hour12) : that.hour12 != null) return false;
            if (this.localeMatcher != null ? !this.localeMatcher.equals(that.localeMatcher) : that.localeMatcher != null) return false;
            if (this.locales != null ? !this.locales.equals(that.locales) : that.locales != null) return false;
            if (this.minute != null ? !this.minute.equals(that.minute) : that.minute != null) return false;
            if (this.month != null ? !this.month.equals(that.month) : that.month != null) return false;
            if (this.second != null ? !this.second.equals(that.second) : that.second != null) return false;
            if (this.timeZone != null ? !this.timeZone.equals(that.timeZone) : that.timeZone != null) return false;
            if (this.timeZoneName != null ? !this.timeZoneName.equals(that.timeZoneName) : that.timeZoneName != null) return false;
            if (this.weekday != null ? !this.weekday.equals(that.weekday) : that.weekday != null) return false;
            return this.year != null ? this.year.equals(that.year) : that.year == null;
        }

        @Override
        public final int hashCode() {
            int result = this.day != null ? this.day.hashCode() : 0;
            result = 31 * result + (this.era != null ? this.era.hashCode() : 0);
            result = 31 * result + (this.formatMatcher != null ? this.formatMatcher.hashCode() : 0);
            result = 31 * result + (this.hour != null ? this.hour.hashCode() : 0);
            result = 31 * result + (this.hour12 != null ? this.hour12.hashCode() : 0);
            result = 31 * result + (this.localeMatcher != null ? this.localeMatcher.hashCode() : 0);
            result = 31 * result + (this.locales != null ? this.locales.hashCode() : 0);
            result = 31 * result + (this.minute != null ? this.minute.hashCode() : 0);
            result = 31 * result + (this.month != null ? this.month.hashCode() : 0);
            result = 31 * result + (this.second != null ? this.second.hashCode() : 0);
            result = 31 * result + (this.timeZone != null ? this.timeZone.hashCode() : 0);
            result = 31 * result + (this.timeZoneName != null ? this.timeZoneName.hashCode() : 0);
            result = 31 * result + (this.weekday != null ? this.weekday.hashCode() : 0);
            result = 31 * result + (this.year != null ? this.year.hashCode() : 0);
            return result;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy