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

com.microsoft.graph.beta.generated.models.EmailSyncSchedule Maven / Gradle / Ivy

package com.microsoft.graph.beta.models;

import com.microsoft.kiota.serialization.ValuedEnum;
import java.util.Objects;

/**
 * Possible values for email sync schedule.
 */
@jakarta.annotation.Generated("com.microsoft.kiota")
public enum EmailSyncSchedule implements ValuedEnum {
    /** User Defined, default value, no intent. */
    UserDefined("userDefined"),
    /** Sync as messages arrive. */
    AsMessagesArrive("asMessagesArrive"),
    /** Sync manually. */
    Manual("manual"),
    /** Sync every fifteen minutes. */
    FifteenMinutes("fifteenMinutes"),
    /** Sync every thirty minutes. */
    ThirtyMinutes("thirtyMinutes"),
    /** Sync every sixty minutes. */
    SixtyMinutes("sixtyMinutes"),
    /** Sync based on my usage. */
    BasedOnMyUsage("basedOnMyUsage");
    public final String value;
    EmailSyncSchedule(final String value) {
        this.value = value;
    }
    @jakarta.annotation.Nonnull
    public String getValue() { return this.value; }
    @jakarta.annotation.Nullable
    public static EmailSyncSchedule forValue(@jakarta.annotation.Nonnull final String searchValue) {
        Objects.requireNonNull(searchValue);
        switch(searchValue) {
            case "userDefined": return UserDefined;
            case "asMessagesArrive": return AsMessagesArrive;
            case "manual": return Manual;
            case "fifteenMinutes": return FifteenMinutes;
            case "thirtyMinutes": return ThirtyMinutes;
            case "sixtyMinutes": return SixtyMinutes;
            case "basedOnMyUsage": return BasedOnMyUsage;
            default: return null;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy