Class NotebookMetadata

    • Method Detail

      • notebookId

        public final String notebookId()

        The notebook ID.

        Returns:
        The notebook ID.
      • name

        public final String name()

        The name of the notebook.

        Returns:
        The name of the notebook.
      • workGroup

        public final String workGroup()

        The name of the Spark enabled workgroup to which the notebook belongs.

        Returns:
        The name of the Spark enabled workgroup to which the notebook belongs.
      • creationTime

        public final Instant creationTime()

        The time when the notebook was created.

        Returns:
        The time when the notebook was created.
      • type

        public final NotebookType type()

        The type of notebook. Currently, the only valid type is IPYNB.

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

        Returns:
        The type of notebook. Currently, the only valid type is IPYNB.
        See Also:
        NotebookType
      • typeAsString

        public final String typeAsString()

        The type of notebook. Currently, the only valid type is IPYNB.

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

        Returns:
        The type of notebook. Currently, the only valid type is IPYNB.
        See Also:
        NotebookType
      • lastModifiedTime

        public final Instant lastModifiedTime()

        The time when the notebook was last modified.

        Returns:
        The time when the notebook was last modified.
      • 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)