Enum Class RemediationAction

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

@Generated("copilot-sdk-codegen") public enum RemediationAction extends Enum<RemediationAction>
What the user must do to recover from a failure, named as an action rather than as one client's affordance. The runtime cannot know which affordance a client offers — a slash command, a settings pane, a link — so the accompanying message stays host-agnostic and each client renders its own copy from this value. Absent when the runtime knows of no action the user can take.
Since:
1.0.0
  • Enum Constant Details

    • SIGN_IN

      public static final RemediationAction SIGN_IN
      The sign_in variant.
    • SWITCH_ACCOUNT

      public static final RemediationAction SWITCH_ACCOUNT
      The switch_account variant.
    • SHOW_ACCOUNT

      public static final RemediationAction SHOW_ACCOUNT
      The show_account variant.
    • REVIEW_SANDBOX_POLICY

      public static final RemediationAction REVIEW_SANDBOX_POLICY
      The review_sandbox_policy variant.
    • ALLOW_SANDBOX_OUTBOUND

      public static final RemediationAction ALLOW_SANDBOX_OUTBOUND
      The allow_sandbox_outbound variant.
  • Method Details

    • values

      public static RemediationAction[] 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 RemediationAction 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 RemediationAction fromValue(String value)