Record Class SandboxConfig

java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SandboxConfig

@CopilotExperimental @Generated("copilot-sdk-codegen") public record SandboxConfig(Boolean enabled, SandboxConfigUserPolicy userPolicy, Boolean addCurrentWorkingDirectory, Boolean sandboxMcpServers, Boolean sandboxLspServers, Boolean allowBypass, Boolean managedMcpRoutingLocked, Boolean managedLspRoutingLocked, SandboxConfigAuth auth, Boolean allowDevToolAccess) extends Record
Resolved sandbox configuration.
Since:
1.0.0
  • Constructor Details

    • SandboxConfig

      public SandboxConfig(Boolean enabled, SandboxConfigUserPolicy userPolicy, Boolean addCurrentWorkingDirectory, Boolean sandboxMcpServers, Boolean sandboxLspServers, Boolean allowBypass, Boolean managedMcpRoutingLocked, Boolean managedLspRoutingLocked, SandboxConfigAuth auth, Boolean allowDevToolAccess)
      Creates an instance of a SandboxConfig record class.
      Parameters:
      enabled - the value for the enabled record component
      userPolicy - the value for the userPolicy record component
      addCurrentWorkingDirectory - the value for the addCurrentWorkingDirectory record component
      sandboxMcpServers - the value for the sandboxMcpServers record component
      sandboxLspServers - the value for the sandboxLspServers record component
      allowBypass - the value for the allowBypass record component
      managedMcpRoutingLocked - the value for the managedMcpRoutingLocked record component
      managedLspRoutingLocked - the value for the managedLspRoutingLocked record component
      auth - the value for the auth record component
      allowDevToolAccess - the value for the allowDevToolAccess record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • enabled

      public Boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • userPolicy

      public SandboxConfigUserPolicy userPolicy()
      Returns the value of the userPolicy record component.
      Returns:
      the value of the userPolicy record component
    • addCurrentWorkingDirectory

      public Boolean addCurrentWorkingDirectory()
      Returns the value of the addCurrentWorkingDirectory record component.
      Returns:
      the value of the addCurrentWorkingDirectory record component
    • sandboxMcpServers

      public Boolean sandboxMcpServers()
      Returns the value of the sandboxMcpServers record component.
      Returns:
      the value of the sandboxMcpServers record component
    • sandboxLspServers

      public Boolean sandboxLspServers()
      Returns the value of the sandboxLspServers record component.
      Returns:
      the value of the sandboxLspServers record component
    • allowBypass

      public Boolean allowBypass()
      Returns the value of the allowBypass record component.
      Returns:
      the value of the allowBypass record component
    • managedMcpRoutingLocked

      public Boolean managedMcpRoutingLocked()
      Returns the value of the managedMcpRoutingLocked record component.
      Returns:
      the value of the managedMcpRoutingLocked record component
    • managedLspRoutingLocked

      public Boolean managedLspRoutingLocked()
      Returns the value of the managedLspRoutingLocked record component.
      Returns:
      the value of the managedLspRoutingLocked record component
    • auth

      public SandboxConfigAuth auth()
      Returns the value of the auth record component.
      Returns:
      the value of the auth record component
    • allowDevToolAccess

      public Boolean allowDevToolAccess()
      Returns the value of the allowDevToolAccess record component.
      Returns:
      the value of the allowDevToolAccess record component