com.azure.storage.blob.implementation.models.InternalBlobLegalHoldResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-storage-blob Show documentation
Show all versions of azure-storage-blob Show documentation
This module contains client library for Microsoft Azure Blob Storage.
// 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;
}
}