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.containerservice; import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; import com.microsoft.rest.ExpandableStringEnum;
Defines values for NetworkPolicy.
/** * Defines values for NetworkPolicy. */
public final class NetworkPolicy extends ExpandableStringEnum<NetworkPolicy> {
Static value calico for NetworkPolicy.
/** Static value calico for NetworkPolicy. */
public static final NetworkPolicy CALICO = fromString("calico");
Static value azure for NetworkPolicy.
/** Static value azure for NetworkPolicy. */
public static final NetworkPolicy AZURE = fromString("azure");
Creates or finds a NetworkPolicy from its string representation.
Params:
  • name – a name to look for
Returns:the corresponding NetworkPolicy
/** * Creates or finds a NetworkPolicy from its string representation. * @param name a name to look for * @return the corresponding NetworkPolicy */
@JsonCreator public static NetworkPolicy fromString(String name) { return fromString(name, NetworkPolicy.class); }
Returns:known NetworkPolicy values
/** * @return known NetworkPolicy values */
public static Collection<NetworkPolicy> values() { return values(NetworkPolicy.class); } }