Interface SubscribedAsset.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SubscribedAsset.Builder,
,SubscribedAsset> SdkBuilder<SubscribedAsset.Builder,
,SubscribedAsset> SdkPojo
- Enclosing class:
SubscribedAsset
-
Method Summary
Modifier and TypeMethodDescriptionThe identifier of the asset for which the subscription grant is created.assetRevision
(String assetRevision) The revision of the asset for which the subscription grant is created.default SubscribedAsset.Builder
assetScope
(Consumer<AssetScope.Builder> assetScope) The asset scope of the subscribed asset.assetScope
(AssetScope assetScope) The asset scope of the subscribed asset.default SubscribedAsset.Builder
failureCause
(Consumer<FailureCause.Builder> failureCause) The failure cause included in the details of the asset for which the subscription grant is created.failureCause
(FailureCause failureCause) The failure cause included in the details of the asset for which the subscription grant is created.failureTimestamp
(Instant failureTimestamp) The failure timestamp included in the details of the asset for which the subscription grant is created.grantedTimestamp
(Instant grantedTimestamp) The timestamp of when the subscription grant to the asset is created.The status of the asset for which the subscription grant is created.status
(SubscriptionGrantStatus status) The status of the asset for which the subscription grant is created.targetName
(String targetName) The target name of the asset for which the subscription grant is created.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, sdkFieldNameToField, sdkFields
-
Method Details
-
assetId
The identifier of the asset for which the subscription grant is created.
- Parameters:
assetId
- The identifier of the asset for which the subscription grant is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetRevision
The revision of the asset for which the subscription grant is created.
- Parameters:
assetRevision
- The revision of the asset for which the subscription grant is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetScope
The asset scope of the subscribed asset.
- Parameters:
assetScope
- The asset scope of the subscribed asset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assetScope
The asset scope of the subscribed asset.
This is a convenience method that creates an instance of theAssetScope.Builder
avoiding the need to create one manually viaAssetScope.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toassetScope(AssetScope)
.- Parameters:
assetScope
- a consumer that will call methods onAssetScope.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failureCause
The failure cause included in the details of the asset for which the subscription grant is created.
- Parameters:
failureCause
- The failure cause included in the details of the asset for which the subscription grant is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureCause
The failure cause included in the details of the asset for which the subscription grant is created.
This is a convenience method that creates an instance of theFailureCause.Builder
avoiding the need to create one manually viaFailureCause.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofailureCause(FailureCause)
.- Parameters:
failureCause
- a consumer that will call methods onFailureCause.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failureTimestamp
The failure timestamp included in the details of the asset for which the subscription grant is created.
- Parameters:
failureTimestamp
- The failure timestamp included in the details of the asset for which the subscription grant is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantedTimestamp
The timestamp of when the subscription grant to the asset is created.
- Parameters:
grantedTimestamp
- The timestamp of when the subscription grant to the asset is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the asset for which the subscription grant is created.
- Parameters:
status
- The status of the asset for which the subscription grant is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the asset for which the subscription grant is created.
- Parameters:
status
- The status of the asset for which the subscription grant is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetName
The target name of the asset for which the subscription grant is created.
- Parameters:
targetName
- The target name of the asset for which the subscription grant is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-