Class ListAssociatedAssetsRequest

    • Method Detail

      • assetId

        public final String assetId()

        The ID of the asset to query. This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.

        Returns:
        The ID of the asset to query. This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
      • hierarchyId

        public final String hierarchyId()

        The ID of the hierarchy by which child assets are associated to the asset. (This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.) To find a hierarchy ID, use the DescribeAsset or DescribeAssetModel operations. This parameter is required if you choose CHILD for traversalDirection.

        For more information, see Asset hierarchies in the IoT SiteWise User Guide.

        Returns:
        The ID of the hierarchy by which child assets are associated to the asset. (This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.) To find a hierarchy ID, use the DescribeAsset or DescribeAssetModel operations. This parameter is required if you choose CHILD for traversalDirection.

        For more information, see Asset hierarchies in the IoT SiteWise User Guide.

      • traversalDirection

        public final TraversalDirection traversalDirection()

        The direction to list associated assets. Choose one of the following options:

        • CHILD – The list includes all child assets associated to the asset. The hierarchyId parameter is required if you choose CHILD.

        • PARENT – The list includes the asset's parent asset.

        Default: CHILD

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

        Returns:
        The direction to list associated assets. Choose one of the following options:

        • CHILD – The list includes all child assets associated to the asset. The hierarchyId parameter is required if you choose CHILD.

        • PARENT – The list includes the asset's parent asset.

        Default: CHILD

        See Also:
        TraversalDirection
      • traversalDirectionAsString

        public final String traversalDirectionAsString()

        The direction to list associated assets. Choose one of the following options:

        • CHILD – The list includes all child assets associated to the asset. The hierarchyId parameter is required if you choose CHILD.

        • PARENT – The list includes the asset's parent asset.

        Default: CHILD

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

        Returns:
        The direction to list associated assets. Choose one of the following options:

        • CHILD – The list includes all child assets associated to the asset. The hierarchyId parameter is required if you choose CHILD.

        • PARENT – The list includes the asset's parent asset.

        Default: CHILD

        See Also:
        TraversalDirection
      • nextToken

        public final String nextToken()

        The token to be used for the next set of paginated results.

        Returns:
        The token to be used for the next set of paginated results.
      • maxResults

        public final Integer maxResults()

        The maximum number of results to return for each paginated request.

        Default: 50

        Returns:
        The maximum number of results to return for each paginated request.

        Default: 50

      • 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