Class ListAssociatedAssetsRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.iotsitewise.model.IoTSiteWiseRequest
-
- software.amazon.awssdk.services.iotsitewise.model.ListAssociatedAssetsRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<ListAssociatedAssetsRequest.Builder,ListAssociatedAssetsRequest>
@Generated("software.amazon.awssdk:codegen") public final class ListAssociatedAssetsRequest extends IoTSiteWiseRequest implements ToCopyableBuilder<ListAssociatedAssetsRequest.Builder,ListAssociatedAssetsRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceListAssociatedAssetsRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringassetId()The ID of the asset to query.static ListAssociatedAssetsRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringhierarchyId()The ID of the hierarchy by which child assets are associated to the asset.IntegermaxResults()The maximum number of results to return for each paginated request.StringnextToken()The token to be used for the next set of paginated results.List<SdkField<?>>sdkFields()static Class<? extends ListAssociatedAssetsRequest.Builder>serializableBuilderClass()ListAssociatedAssetsRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.TraversalDirectiontraversalDirection()The direction to list associated assets.StringtraversalDirectionAsString()The direction to list associated assets.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
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 chooseCHILDfortraversalDirection.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 chooseCHILDfortraversalDirection.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. ThehierarchyIdparameter is required if you chooseCHILD. -
PARENT– The list includes the asset's parent asset.
Default:
CHILDIf the service returns an enum value that is not available in the current SDK version,
traversalDirectionwill returnTraversalDirection.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtraversalDirectionAsString().- Returns:
- The direction to list associated assets. Choose one of the following options:
-
CHILD– The list includes all child assets associated to the asset. ThehierarchyIdparameter is required if you chooseCHILD. -
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. ThehierarchyIdparameter is required if you chooseCHILD. -
PARENT– The list includes the asset's parent asset.
Default:
CHILDIf the service returns an enum value that is not available in the current SDK version,
traversalDirectionwill returnTraversalDirection.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtraversalDirectionAsString().- Returns:
- The direction to list associated assets. Choose one of the following options:
-
CHILD– The list includes all child assets associated to the asset. ThehierarchyIdparameter is required if you chooseCHILD. -
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
-
toBuilder
public ListAssociatedAssetsRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ListAssociatedAssetsRequest.Builder,ListAssociatedAssetsRequest>- Specified by:
toBuilderin classIoTSiteWiseRequest
-
builder
public static ListAssociatedAssetsRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends ListAssociatedAssetsRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-