Class Plugin

    • Method Detail

      • pluginId

        public final String pluginId()

        The identifier of the plugin.

        Returns:
        The identifier of the plugin.
      • displayName

        public final String displayName()

        The name of the plugin.

        Returns:
        The name of the plugin.
      • typeAsString

        public final String typeAsString()

        The type of the plugin.

        If the service returns an enum value that is not available in the current SDK version, type will return PluginType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        Returns:
        The type of the plugin.
        See Also:
        PluginType
      • serverUrl

        public final String serverUrl()

        The plugin server URL used for configuration.

        Returns:
        The plugin server URL used for configuration.
      • state

        public final PluginState state()

        The current status of the plugin.

        If the service returns an enum value that is not available in the current SDK version, state will return PluginState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from stateAsString().

        Returns:
        The current status of the plugin.
        See Also:
        PluginState
      • stateAsString

        public final String stateAsString()

        The current status of the plugin.

        If the service returns an enum value that is not available in the current SDK version, state will return PluginState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from stateAsString().

        Returns:
        The current status of the plugin.
        See Also:
        PluginState
      • createdAt

        public final Instant createdAt()

        The timestamp for when the plugin was created.

        Returns:
        The timestamp for when the plugin was created.
      • updatedAt

        public final Instant updatedAt()

        The timestamp for when the plugin was last updated.

        Returns:
        The timestamp for when the plugin was last updated.
      • serializableBuilderClass

        public static Class<? extends Plugin.Builder> serializableBuilderClass()
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)