Enum Class McpServerCardMediaType

java.lang.Object
java.lang.Enum<McpServerCardMediaType>
com.github.copilot.generated.rpc.McpServerCardMediaType
All Implemented Interfaces:
Serializable, Comparable<McpServerCardMediaType>, Constable

@Generated("copilot-sdk-codegen") public enum McpServerCardMediaType extends Enum<McpServerCardMediaType>
JSON MCP card media type accepted for install planning
Since:
1.0.0
  • Enum Constant Details

    • APPLICATION_MCP_SERVER_CARD_JSON

      public static final McpServerCardMediaType APPLICATION_MCP_SERVER_CARD_JSON
      The application/mcp-server-card+json variant.
    • APPLICATION_MCP_SERVER_JSON

      public static final McpServerCardMediaType APPLICATION_MCP_SERVER_JSON
      The application/mcp-server+json variant.
  • Method Details

    • values

      public static McpServerCardMediaType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static McpServerCardMediaType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
    • fromValue

      public static McpServerCardMediaType fromValue(String value)