com.azure.resourcemanager.storage.models.LeaseStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-storage Show documentation
Show all versions of azure-resourcemanager-storage Show documentation
This package contains Microsoft Azure Storage Management SDK.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.storage.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/** The lease status of the container. */
public final class LeaseStatus extends ExpandableStringEnum {
/** Static value Locked for LeaseStatus. */
public static final LeaseStatus LOCKED = fromString("Locked");
/** Static value Unlocked for LeaseStatus. */
public static final LeaseStatus UNLOCKED = fromString("Unlocked");
/**
* Creates or finds a LeaseStatus from its string representation.
*
* @param name a name to look for.
* @return the corresponding LeaseStatus.
*/
@JsonCreator
public static LeaseStatus fromString(String name) {
return fromString(name, LeaseStatus.class);
}
/**
* Gets known LeaseStatus values.
*
* @return known LeaseStatus values.
*/
public static Collection values() {
return values(LeaseStatus.class);
}
}