Record Class GitHubEnvironment
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.GitHubEnvironment
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record GitHubEnvironment(String id, String name, EnvironmentKind kind, String status, EnvironmentCapabilities capabilities, String ownerId, String ownerType, String orgId, Map<String,String> labels, String lastHeartbeatAt)
extends Record
Safe discovery information. Host-side relay bootstrap credentials are never included.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionGitHubEnvironment(String id, String name, EnvironmentKind kind, String status, EnvironmentCapabilities capabilities, String ownerId, String ownerType, String orgId, Map<String, String> labels, String lastHeartbeatAt) Creates an instance of aGitHubEnvironmentrecord 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.id()Returns the value of theidrecord component.kind()Returns the value of thekindrecord component.labels()Returns the value of thelabelsrecord component.Returns the value of thelastHeartbeatAtrecord component.name()Returns the value of thenamerecord component.orgId()Returns the value of theorgIdrecord component.ownerId()Returns the value of theownerIdrecord component.Returns the value of theownerTyperecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GitHubEnvironment
public GitHubEnvironment(String id, String name, EnvironmentKind kind, String status, EnvironmentCapabilities capabilities, String ownerId, String ownerType, String orgId, Map<String, String> labels, String lastHeartbeatAt) Creates an instance of aGitHubEnvironmentrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentkind- the value for thekindrecord componentstatus- the value for thestatusrecord componentcapabilities- the value for thecapabilitiesrecord componentownerId- the value for theownerIdrecord componentownerType- the value for theownerTyperecord componentorgId- the value for theorgIdrecord componentlabels- the value for thelabelsrecord componentlastHeartbeatAt- the value for thelastHeartbeatAtrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
ownerId
Returns the value of theownerIdrecord component.- Returns:
- the value of the
ownerIdrecord component
-
ownerType
Returns the value of theownerTyperecord component.- Returns:
- the value of the
ownerTyperecord component
-
orgId
Returns the value of theorgIdrecord component.- Returns:
- the value of the
orgIdrecord component
-
labels
-
lastHeartbeatAt
Returns the value of thelastHeartbeatAtrecord component.- Returns:
- the value of the
lastHeartbeatAtrecord component
-