com.azure.resourcemanager.network.models.SecurityRuleProtocol 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
The newest version!
// 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 java.util.Collection;
/**
* Network protocol this rule applies to.
*/
public final class SecurityRuleProtocol extends ExpandableStringEnum {
/**
* Static value Tcp for SecurityRuleProtocol.
*/
public static final SecurityRuleProtocol TCP = fromString("Tcp");
/**
* Static value Udp for SecurityRuleProtocol.
*/
public static final SecurityRuleProtocol UDP = fromString("Udp");
/**
* Static value Icmp for SecurityRuleProtocol.
*/
public static final SecurityRuleProtocol ICMP = fromString("Icmp");
/**
* Static value Esp for SecurityRuleProtocol.
*/
public static final SecurityRuleProtocol ESP = fromString("Esp");
/**
* Static value * for SecurityRuleProtocol.
*/
public static final SecurityRuleProtocol ASTERISK = fromString("*");
/**
* Static value Ah for SecurityRuleProtocol.
*/
public static final SecurityRuleProtocol AH = fromString("Ah");
/**
* Creates a new instance of SecurityRuleProtocol value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public SecurityRuleProtocol() {
}
/**
* Creates or finds a SecurityRuleProtocol from its string representation.
*
* @param name a name to look for.
* @return the corresponding SecurityRuleProtocol.
*/
public static SecurityRuleProtocol fromString(String name) {
return fromString(name, SecurityRuleProtocol.class);
}
/**
* Gets known SecurityRuleProtocol values.
*
* @return known SecurityRuleProtocol values.
*/
public static Collection values() {
return values(SecurityRuleProtocol.class);
}
}