com.azure.resourcemanager.storage.models.LeaseState 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;
/** Lease state of the container. */
public final class LeaseState extends ExpandableStringEnum {
/** Static value Available for LeaseState. */
public static final LeaseState AVAILABLE = fromString("Available");
/** Static value Leased for LeaseState. */
public static final LeaseState LEASED = fromString("Leased");
/** Static value Expired for LeaseState. */
public static final LeaseState EXPIRED = fromString("Expired");
/** Static value Breaking for LeaseState. */
public static final LeaseState BREAKING = fromString("Breaking");
/** Static value Broken for LeaseState. */
public static final LeaseState BROKEN = fromString("Broken");
/**
* Creates or finds a LeaseState from its string representation.
*
* @param name a name to look for.
* @return the corresponding LeaseState.
*/
@JsonCreator
public static LeaseState fromString(String name) {
return fromString(name, LeaseState.class);
}
/**
* Gets known LeaseState values.
*
* @return known LeaseState values.
*/
public static Collection values() {
return values(LeaseState.class);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy