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