Class Session

    • Method Detail

      • sessionId

        public final String sessionId()

        The ID of the execute command session.

        Returns:
        The ID of the execute command session.
      • streamUrl

        public final String streamUrl()

        A URL to the managed agent on the container that the SSM Session Manager client uses to send commands and receive output from the container.

        Returns:
        A URL to the managed agent on the container that the SSM Session Manager client uses to send commands and receive output from the container.
      • tokenValue

        public final String tokenValue()

        An encrypted token value containing session and caller information. It's used to authenticate the connection to the container.

        Returns:
        An encrypted token value containing session and caller information. It's used to authenticate the connection to the container.
      • serializableBuilderClass

        public static Class<? extends Session.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)