java.lang.Object
com.azure.core.util.ExpandableStringEnum<AppProtocol>
com.azure.resourcemanager.appcontainers.models.AppProtocol
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class AppProtocol extends com.azure.core.util.ExpandableStringEnum<AppProtocol>
Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http.
  • Field Details

    • HTTP

      public static final AppProtocol HTTP
      Static value http for AppProtocol.
    • GRPC

      public static final AppProtocol GRPC
      Static value grpc for AppProtocol.
  • Constructor Details

    • AppProtocol

      @Deprecated public AppProtocol()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of AppProtocol value.
  • Method Details

    • fromString

      public static AppProtocol fromString(String name)
      Creates or finds a AppProtocol from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding AppProtocol.
    • values

      public static Collection<AppProtocol> values()
      Gets known AppProtocol values.
      Returns:
      known AppProtocol values.