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 ActionType.
/**
* Defines values for ActionType.
*/
public final class ActionType extends ExpandableStringEnum<ActionType> {
Static value Allow for ActionType. /** Static value Allow for ActionType. */
public static final ActionType ALLOW = fromString("Allow");
Static value Block for ActionType. /** Static value Block for ActionType. */
public static final ActionType BLOCK = fromString("Block");
Static value Log for ActionType. /** Static value Log for ActionType. */
public static final ActionType LOG = fromString("Log");
Static value Redirect for ActionType. /** Static value Redirect for ActionType. */
public static final ActionType REDIRECT = fromString("Redirect");
Creates or finds a ActionType from its string representation.
Params: - name – a name to look for
Returns: the corresponding ActionType
/**
* Creates or finds a ActionType from its string representation.
* @param name a name to look for
* @return the corresponding ActionType
*/
@JsonCreator
public static ActionType fromString(String name) {
return fromString(name, ActionType.class);
}
Returns: known ActionType values
/**
* @return known ActionType values
*/
public static Collection<ActionType> values() {
return values(ActionType.class);
}
}