Record Class SessionProvidersGetStatusResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionProvidersGetStatusResult
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionProvidersGetStatusResult(ModelProviderOperationOutcome outcome, ModelProviderInstance instance, String status, String version)
extends Record
Current health information for a provider instance.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionProvidersGetStatusResult(ModelProviderOperationOutcome outcome, ModelProviderInstance instance, String status, String version) Creates an instance of aSessionProvidersGetStatusResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.instance()Returns the value of theinstancerecord component.outcome()Returns the value of theoutcomerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
SessionProvidersGetStatusResult
public SessionProvidersGetStatusResult(ModelProviderOperationOutcome outcome, ModelProviderInstance instance, String status, String version) Creates an instance of aSessionProvidersGetStatusResultrecord class.- Parameters:
outcome- the value for theoutcomerecord componentinstance- the value for theinstancerecord componentstatus- the value for thestatusrecord componentversion- the value for theversionrecord 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). -
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
instance
Returns the value of theinstancerecord component.- Returns:
- the value of the
instancerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-