Record Class EnvironmentCapabilities
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.EnvironmentCapabilities
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record EnvironmentCapabilities(String ahpVersion, List<String> features, Long maxSessions, Long currentSessions)
extends Record
Hosting capabilities and session capacity advertised by an environment.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theahpVersionrecord component.Returns the value of thecurrentSessionsrecord component.final booleanIndicates whether some other object is "equal to" this one.features()Returns the value of thefeaturesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themaxSessionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EnvironmentCapabilities
public EnvironmentCapabilities(String ahpVersion, List<String> features, Long maxSessions, Long currentSessions) Creates an instance of aEnvironmentCapabilitiesrecord class.- Parameters:
ahpVersion- the value for theahpVersionrecord componentfeatures- the value for thefeaturesrecord componentmaxSessions- the value for themaxSessionsrecord componentcurrentSessions- the value for thecurrentSessionsrecord 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). -
ahpVersion
Returns the value of theahpVersionrecord component.- Returns:
- the value of the
ahpVersionrecord component
-
features
-
maxSessions
Returns the value of themaxSessionsrecord component.- Returns:
- the value of the
maxSessionsrecord component
-
currentSessions
Returns the value of thecurrentSessionsrecord component.- Returns:
- the value of the
currentSessionsrecord component
-