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

com.azure.storage.blob.implementation.models.InternalBlobLegalHoldResult 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.models;

import com.azure.storage.blob.models.BlobLegalHoldResult;

/**
 * The blob legal hold result.
 */
public class InternalBlobLegalHoldResult implements BlobLegalHoldResult {

    private final boolean hasLegalHold;

    /**
     * Creates a new BlobLegalHoldResult
     * @param hasLegalHold whether or not a legal hold is enabled on the blob.
     */
    public InternalBlobLegalHoldResult(boolean hasLegalHold) {
        this.hasLegalHold = hasLegalHold;
    }

    /**
     * @return whether or not a legal hold is enabled on the blob.
     */
    public boolean hasLegalHold() {
        return hasLegalHold;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy