Record Class SandboxConfig
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SandboxConfig
@Generated("copilot-sdk-codegen")
public record SandboxConfig(Boolean enabled, SandboxConfigUserPolicy userPolicy, Map<String,Object> config, Boolean addCurrentWorkingDirectory)
extends Record
Resolved sandbox configuration.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSandboxConfig(Boolean enabled, SandboxConfigUserPolicy userPolicy, Map<String, Object> config, Boolean addCurrentWorkingDirectory) Creates an instance of aSandboxConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddCurrentWorkingDirectoryrecord component.config()Returns the value of theconfigrecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theuserPolicyrecord component.
-
Constructor Details
-
SandboxConfig
public SandboxConfig(Boolean enabled, SandboxConfigUserPolicy userPolicy, Map<String, Object> config, Boolean addCurrentWorkingDirectory) Creates an instance of aSandboxConfigrecord class.- Parameters:
enabled- the value for theenabledrecord componentuserPolicy- the value for theuserPolicyrecord componentconfig- the value for theconfigrecord componentaddCurrentWorkingDirectory- the value for theaddCurrentWorkingDirectoryrecord 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). -
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
userPolicy
Returns the value of theuserPolicyrecord component.- Returns:
- the value of the
userPolicyrecord component
-
config
-
addCurrentWorkingDirectory
Returns the value of theaddCurrentWorkingDirectoryrecord component.- Returns:
- the value of the
addCurrentWorkingDirectoryrecord component
-