// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.securityinsights.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** The polling frequency for the TAXII server. */
public final class PollingFrequency extends ExpandableStringEnum<PollingFrequency> {
    /** Static value OnceAMinute for PollingFrequency. */
    public static final PollingFrequency ONCE_AMINUTE = fromString("OnceAMinute");

    /** Static value OnceAnHour for PollingFrequency. */
    public static final PollingFrequency ONCE_AN_HOUR = fromString("OnceAnHour");

    /** Static value OnceADay for PollingFrequency. */
    public static final PollingFrequency ONCE_ADAY = fromString("OnceADay");

    /**
     * Creates or finds a PollingFrequency from its string representation.
     *
     * @param name a name to look for.
     * @return the corresponding PollingFrequency.
     */
    @JsonCreator
    public static PollingFrequency fromString(String name) {
        return fromString(name, PollingFrequency.class);
    }

    /**
     * Gets known PollingFrequency values.
     *
     * @return known PollingFrequency values.
     */
    public static Collection<PollingFrequency> values() {
        return values(PollingFrequency.class);
    }
}
