Class WorkspaceConnectionStatus

    • Method Detail

      • workspaceId

        public final String workspaceId()

        The identifier of the WorkSpace.

        Returns:
        The identifier of the WorkSpace.
      • connectionState

        public final ConnectionState connectionState()

        The connection state of the WorkSpace. The connection state is unknown if the WorkSpace is stopped.

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

        Returns:
        The connection state of the WorkSpace. The connection state is unknown if the WorkSpace is stopped.
        See Also:
        ConnectionState
      • connectionStateAsString

        public final String connectionStateAsString()

        The connection state of the WorkSpace. The connection state is unknown if the WorkSpace is stopped.

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

        Returns:
        The connection state of the WorkSpace. The connection state is unknown if the WorkSpace is stopped.
        See Also:
        ConnectionState
      • connectionStateCheckTimestamp

        public final Instant connectionStateCheckTimestamp()

        The timestamp of the connection status check.

        Returns:
        The timestamp of the connection status check.
      • lastKnownUserConnectionTimestamp

        public final Instant lastKnownUserConnectionTimestamp()

        The timestamp of the last known user connection.

        Returns:
        The timestamp of the last known user connection.
      • 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)