Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */
package com.microsoft.azure.management.trafficmanager; import com.microsoft.azure.management.apigeneration.LangDefinition;
Possible endpoint types supported in a Traffic manager profile.
/** * Possible endpoint types supported in a Traffic manager profile. */
@LangDefinition public enum EndpointType {
Enum value Microsoft.Network/trafficManagerProfiles/azureEndpoints.
/** * Enum value Microsoft.Network/trafficManagerProfiles/azureEndpoints. */
AZURE("Microsoft.Network/trafficManagerProfiles/azureEndpoints"),
Enum value Microsoft.Network/trafficManagerProfiles/externalEndpoints.
/** * Enum value Microsoft.Network/trafficManagerProfiles/externalEndpoints. */
EXTERNAL("Microsoft.Network/trafficManagerProfiles/externalEndpoints"),
Enum value Microsoft.Network/trafficManagerProfiles/nestedEndpoints.
/** * Enum value Microsoft.Network/trafficManagerProfiles/nestedEndpoints. */
NESTED_PROFILE("Microsoft.Network/trafficManagerProfiles/nestedEndpoints"); private String value; EndpointType(String value) { this.value = value; }
Parses a string value to a TrafficRoutingMethod instance.
Params:
  • value – the string value to parse.
Returns:the parsed TrafficRoutingMethod object, or null if unable to parse.
/** * Parses a string value to a TrafficRoutingMethod instance. * * @param value the string value to parse. * @return the parsed TrafficRoutingMethod object, or null if unable to parse. */
public static EndpointType fromValue(String value) { EndpointType[] items = EndpointType.values(); for (EndpointType item : items) { if (item.toString().equalsIgnoreCase(value)) { return item; } } return null; } @Override public String toString() { return this.value; }
Returns:the local name of the endpoint type
/** * @return the local name of the endpoint type */
public String localName() { if (this.value != null) { return this.value.substring(this.value.lastIndexOf('/') + 1); } return null; } }