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.cdn;
import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;
Defines values for RedirectType.
/**
* Defines values for RedirectType.
*/
public final class RedirectType extends ExpandableStringEnum<RedirectType> {
Static value Moved for RedirectType. /** Static value Moved for RedirectType. */
public static final RedirectType MOVED = fromString("Moved");
Static value Found for RedirectType. /** Static value Found for RedirectType. */
public static final RedirectType FOUND = fromString("Found");
Static value TemporaryRedirect for RedirectType. /** Static value TemporaryRedirect for RedirectType. */
public static final RedirectType TEMPORARY_REDIRECT = fromString("TemporaryRedirect");
Static value PermanentRedirect for RedirectType. /** Static value PermanentRedirect for RedirectType. */
public static final RedirectType PERMANENT_REDIRECT = fromString("PermanentRedirect");
Creates or finds a RedirectType from its string representation.
Params: - name – a name to look for
Returns: the corresponding RedirectType
/**
* Creates or finds a RedirectType from its string representation.
* @param name a name to look for
* @return the corresponding RedirectType
*/
@JsonCreator
public static RedirectType fromString(String name) {
return fromString(name, RedirectType.class);
}
Returns: known RedirectType values
/**
* @return known RedirectType values
*/
public static Collection<RedirectType> values() {
return values(RedirectType.class);
}
}