Record Class SandboxGetHostSupportResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SandboxGetHostSupportResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SandboxGetHostSupportResult(Boolean supported, String reason, List<SandboxHostCapability> capabilities)
extends Record
Whether the host running this runtime can run the command sandbox. The runtime checks `supported` once per process. A capability answer can change while the process runs, for example after the user installs a missing package.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSandboxGetHostSupportResult(Boolean supported, String reason, List<SandboxHostCapability> capabilities) Creates an instance of aSandboxGetHostSupportResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapabilitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.Returns the value of thesupportedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SandboxGetHostSupportResult
public SandboxGetHostSupportResult(Boolean supported, String reason, List<SandboxHostCapability> capabilities) Creates an instance of aSandboxGetHostSupportResultrecord class.- Parameters:
supported- the value for thesupportedrecord componentreason- the value for thereasonrecord componentcapabilities- the value for thecapabilitiesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
supported
Returns the value of thesupportedrecord component.- Returns:
- the value of the
supportedrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-