com.azure.resourcemanager.network.models.FirewallPolicyRuleNetworkProtocol Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-network Show documentation
Show all versions of azure-resourcemanager-network Show documentation
This package contains Microsoft Azure Network Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// 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;
/**
* The Network protocol of a Rule.
*/
public final class FirewallPolicyRuleNetworkProtocol extends ExpandableStringEnum {
/**
* Static value TCP for FirewallPolicyRuleNetworkProtocol.
*/
public static final FirewallPolicyRuleNetworkProtocol TCP = fromString("TCP");
/**
* Static value UDP for FirewallPolicyRuleNetworkProtocol.
*/
public static final FirewallPolicyRuleNetworkProtocol UDP = fromString("UDP");
/**
* Static value Any for FirewallPolicyRuleNetworkProtocol.
*/
public static final FirewallPolicyRuleNetworkProtocol ANY = fromString("Any");
/**
* Static value ICMP for FirewallPolicyRuleNetworkProtocol.
*/
public static final FirewallPolicyRuleNetworkProtocol ICMP = fromString("ICMP");
/**
* Creates a new instance of FirewallPolicyRuleNetworkProtocol value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public FirewallPolicyRuleNetworkProtocol() {
}
/**
* Creates or finds a FirewallPolicyRuleNetworkProtocol from its string representation.
*
* @param name a name to look for.
* @return the corresponding FirewallPolicyRuleNetworkProtocol.
*/
@JsonCreator
public static FirewallPolicyRuleNetworkProtocol fromString(String name) {
return fromString(name, FirewallPolicyRuleNetworkProtocol.class);
}
/**
* Gets known FirewallPolicyRuleNetworkProtocol values.
*
* @return known FirewallPolicyRuleNetworkProtocol values.
*/
public static Collection values() {
return values(FirewallPolicyRuleNetworkProtocol.class);
}
}