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