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

com.azure.storage.blob.implementation.models.BlobExpiryOptions Maven / Gradle / Ivy

There is a newer version: 12.29.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.storage.blob.implementation.models;

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

/** Defines values for BlobExpiryOptions. */
public final class BlobExpiryOptions extends ExpandableStringEnum {
    /** Static value NeverExpire for BlobExpiryOptions. */
    public static final BlobExpiryOptions NEVER_EXPIRE = fromString("NeverExpire");

    /** Static value RelativeToCreation for BlobExpiryOptions. */
    public static final BlobExpiryOptions RELATIVE_TO_CREATION = fromString("RelativeToCreation");

    /** Static value RelativeToNow for BlobExpiryOptions. */
    public static final BlobExpiryOptions RELATIVE_TO_NOW = fromString("RelativeToNow");

    /** Static value Absolute for BlobExpiryOptions. */
    public static final BlobExpiryOptions ABSOLUTE = fromString("Absolute");

    /**
     * Creates a new instance of BlobExpiryOptions value.
     *
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public BlobExpiryOptions() {}

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy