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

com.azure.storage.blob.implementation.util.BlobRequestConditionProperty 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.

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

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

public enum BlobRequestConditionProperty {
    LEASE_ID("LeaseId"),
    TAGS_CONDITIONS("TagsConditions"),
    IF_MODIFIED_SINCE("IfModifiedSince"),
    IF_UNMODIFIED_SINCE("IfUnmodifiedSince"),
    IF_MATCH("IfMatch"),
    IF_NONE_MATCH("IfNoneMatch");

    /** The actual serialized value for a BlobRequestConditionProperty instance. */
    private final String value;

    BlobRequestConditionProperty(String value) {
        this.value = value;
    }

    /**
     * Parses a serialized value to a BlobRequestConditionProperty instance.
     *
     * @param value the serialized value to parse.
     * @return the parsed BlobRequestConditionProperty object, or null if unable to parse.
     */
    @JsonCreator
    public static BlobRequestConditionProperty fromString(String value) {
        BlobRequestConditionProperty[] items = BlobRequestConditionProperty.values();
        for (BlobRequestConditionProperty item : items) {
            if (item.toString().equalsIgnoreCase(value)) {
                return item;
            }
        }
        return null;
    }

    @JsonValue
    @Override
    public String toString() {
        return this.value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy