IpAllocationType.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;
/** Defines values for IpAllocationType. */
public final class IpAllocationType extends ExpandableStringEnum<IpAllocationType> {
/** Static value Undefined for IpAllocationType. */
public static final IpAllocationType UNDEFINED = fromString("Undefined");
/** Static value Hypernet for IpAllocationType. */
public static final IpAllocationType HYPERNET = fromString("Hypernet");
/**
* Creates or finds a IpAllocationType from its string representation.
*
* @param name a name to look for.
* @return the corresponding IpAllocationType.
*/
@JsonCreator
public static IpAllocationType fromString(String name) {
return fromString(name, IpAllocationType.class);
}
/** @return known IpAllocationType values. */
public static Collection<IpAllocationType> values() {
return values(IpAllocationType.class);
}
}