Record Class Plugin
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.Plugin
@Generated("copilot-sdk-codegen")
public record Plugin(String name, String marketplace, String version, Boolean enabled, String directSourceId, String installedFrom, String source, Boolean managed, Boolean managedDesiredEnabled, Boolean installed)
extends Record
Session plugin metadata, with name, marketplace, optional version, and enabled state.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectSourceIdrecord 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.Returns the value of theinstalledrecord component.Returns the value of theinstalledFromrecord component.managed()Returns the value of themanagedrecord component.Returns the value of themanagedDesiredEnabledrecord component.Returns the value of themarketplacerecord component.name()Returns the value of thenamerecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
Plugin
public Plugin(String name, String marketplace, String version, Boolean enabled, String directSourceId, String installedFrom, String source, Boolean managed, Boolean managedDesiredEnabled, Boolean installed) Creates an instance of aPluginrecord class.- Parameters:
name- the value for thenamerecord componentmarketplace- the value for themarketplacerecord componentversion- the value for theversionrecord componentenabled- the value for theenabledrecord componentdirectSourceId- the value for thedirectSourceIdrecord componentinstalledFrom- the value for theinstalledFromrecord componentsource- the value for thesourcerecord componentmanaged- the value for themanagedrecord componentmanagedDesiredEnabled- the value for themanagedDesiredEnabledrecord componentinstalled- the value for theinstalledrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
marketplace
Returns the value of themarketplacerecord component.- Returns:
- the value of the
marketplacerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
directSourceId
Returns the value of thedirectSourceIdrecord component.- Returns:
- the value of the
directSourceIdrecord component
-
installedFrom
Returns the value of theinstalledFromrecord component.- Returns:
- the value of the
installedFromrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
managed
Returns the value of themanagedrecord component.- Returns:
- the value of the
managedrecord component
-
managedDesiredEnabled
Returns the value of themanagedDesiredEnabledrecord component.- Returns:
- the value of the
managedDesiredEnabledrecord component
-
installed
Returns the value of theinstalledrecord component.- Returns:
- the value of the
installedrecord component
-