Class SubscribedAsset

    • Method Detail

      • assetId

        public final String assetId()

        The identifier of the asset for which the subscription grant is created.

        Returns:
        The identifier of the asset for which the subscription grant is created.
      • assetRevision

        public final String assetRevision()

        The revision of the asset for which the subscription grant is created.

        Returns:
        The revision of the asset for which the subscription grant is created.
      • assetScope

        public final AssetScope assetScope()

        The asset scope of the subscribed asset.

        Returns:
        The asset scope of the subscribed asset.
      • failureCause

        public final FailureCause failureCause()

        The failure cause included in the details of the asset for which the subscription grant is created.

        Returns:
        The failure cause included in the details of the asset for which the subscription grant is created.
      • failureTimestamp

        public final Instant failureTimestamp()

        The failure timestamp included in the details of the asset for which the subscription grant is created.

        Returns:
        The failure timestamp included in the details of the asset for which the subscription grant is created.
      • grantedTimestamp

        public final Instant grantedTimestamp()

        The timestamp of when the subscription grant to the asset is created.

        Returns:
        The timestamp of when the subscription grant to the asset is created.
      • statusAsString

        public final String statusAsString()

        The status of the asset for which the subscription grant is created.

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

        Returns:
        The status of the asset for which the subscription grant is created.
        See Also:
        SubscriptionGrantStatus
      • targetName

        public final String targetName()

        The target name of the asset for which the subscription grant is created.

        Returns:
        The target name of the asset for which the subscription grant is created.
      • 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)