Record Class McpPlanPolicyResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.McpPlanPolicyResult
@Generated("copilot-sdk-codegen")
public record McpPlanPolicyResult(McpPlanPolicyDecision decision, McpPlanPolicySource source, String reason)
extends Record
Outcome of evaluating the planned server against registry and enterprise policy. Evaluation is read-only.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionMcpPlanPolicyResult(McpPlanPolicyDecision decision, McpPlanPolicySource source, String reason) Creates an instance of aMcpPlanPolicyResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondecision()Returns the value of thedecisionrecord 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.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpPlanPolicyResult
public McpPlanPolicyResult(McpPlanPolicyDecision decision, McpPlanPolicySource source, String reason) Creates an instance of aMcpPlanPolicyResultrecord class.- Parameters:
decision- the value for thedecisionrecord componentsource- the value for thesourcerecord componentreason- the value for thereasonrecord 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). -
decision
Returns the value of thedecisionrecord component.- Returns:
- the value of the
decisionrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-