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