Class ChannelSummary

    • Method Detail

      • name

        public final String name()

        The name of the channel.

        Returns:
        The name of the channel.
      • channelArn

        public final String channelArn()

        The ARN of the channel.

        Returns:
        The ARN of the channel.
      • modeAsString

        public final String modeAsString()

        The mode of the channel.

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

        Returns:
        The mode of the channel.
        See Also:
        ChannelMode
      • privacyAsString

        public final String privacyAsString()

        The privacy setting of the channel.

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

        Returns:
        The privacy setting of the channel.
        See Also:
        ChannelPrivacy
      • metadata

        public final String metadata()

        The metadata of the channel.

        Returns:
        The metadata of the channel.
      • lastMessageTimestamp

        public final Instant lastMessageTimestamp()

        The time at which the last persistent message visible to the caller in a channel was sent.

        Returns:
        The time at which the last persistent message visible to the caller in a channel was sent.
      • 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)