Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.network;
import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;
Defines values for TransportProtocol.
/**
* Defines values for TransportProtocol.
*/
public final class TransportProtocol extends ExpandableStringEnum<TransportProtocol> {
Static value Udp for TransportProtocol. /** Static value Udp for TransportProtocol. */
public static final TransportProtocol UDP = fromString("Udp");
Static value Tcp for TransportProtocol. /** Static value Tcp for TransportProtocol. */
public static final TransportProtocol TCP = fromString("Tcp");
Static value All for TransportProtocol. /** Static value All for TransportProtocol. */
public static final TransportProtocol ALL = fromString("All");
Creates or finds a TransportProtocol from its string representation.
Params: - name – a name to look for
Returns: the corresponding TransportProtocol
/**
* Creates or finds a TransportProtocol from its string representation.
* @param name a name to look for
* @return the corresponding TransportProtocol
*/
@JsonCreator
public static TransportProtocol fromString(String name) {
return fromString(name, TransportProtocol.class);
}
Returns: known TransportProtocol values
/**
* @return known TransportProtocol values
*/
public static Collection<TransportProtocol> values() {
return values(TransportProtocol.class);
}
}