Interface AssetRelationshipSummary.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AssetRelationshipSummary.Builder,
,AssetRelationshipSummary> SdkBuilder<AssetRelationshipSummary.Builder,
,AssetRelationshipSummary> SdkPojo
- Enclosing class:
AssetRelationshipSummary
-
Method Summary
Modifier and TypeMethodDescriptiondefault AssetRelationshipSummary.Builder
hierarchyInfo
(Consumer<AssetHierarchyInfo.Builder> hierarchyInfo) The assets that are related through an asset hierarchy.hierarchyInfo
(AssetHierarchyInfo hierarchyInfo) The assets that are related through an asset hierarchy.relationshipType
(String relationshipType) The relationship type of the assets in this relationship.relationshipType
(AssetRelationshipType relationshipType) The relationship type of the assets in this relationship.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
hierarchyInfo
The assets that are related through an asset hierarchy.
This object is present if the
relationshipType
isHIERARCHY
.- Parameters:
hierarchyInfo
- The assets that are related through an asset hierarchy.This object is present if the
relationshipType
isHIERARCHY
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hierarchyInfo
default AssetRelationshipSummary.Builder hierarchyInfo(Consumer<AssetHierarchyInfo.Builder> hierarchyInfo) The assets that are related through an asset hierarchy.
This object is present if the
This is a convenience method that creates an instance of therelationshipType
isHIERARCHY
.AssetHierarchyInfo.Builder
avoiding the need to create one manually viaAssetHierarchyInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohierarchyInfo(AssetHierarchyInfo)
.- Parameters:
hierarchyInfo
- a consumer that will call methods onAssetHierarchyInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
relationshipType
The relationship type of the assets in this relationship. This value is one of the following:
-
HIERARCHY
– The assets are related through an asset hierarchy. If you specify this relationship type, this asset relationship includes thehierarchyInfo
object.
- Parameters:
relationshipType
- The relationship type of the assets in this relationship. This value is one of the following:-
HIERARCHY
– The assets are related through an asset hierarchy. If you specify this relationship type, this asset relationship includes thehierarchyInfo
object.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
relationshipType
The relationship type of the assets in this relationship. This value is one of the following:
-
HIERARCHY
– The assets are related through an asset hierarchy. If you specify this relationship type, this asset relationship includes thehierarchyInfo
object.
- Parameters:
relationshipType
- The relationship type of the assets in this relationship. This value is one of the following:-
HIERARCHY
– The assets are related through an asset hierarchy. If you specify this relationship type, this asset relationship includes thehierarchyInfo
object.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-