Interface SubscribedAsset.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SubscribedAsset.Builder,SubscribedAsset>,SdkBuilder<SubscribedAsset.Builder,SubscribedAsset>,SdkPojo
- Enclosing class:
- SubscribedAsset
public static interface SubscribedAsset.Builder extends SdkPojo, CopyableBuilder<SubscribedAsset.Builder,SubscribedAsset>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SubscribedAsset.BuilderassetId(String assetId)The identifier of the asset for which the subscription grant is created.SubscribedAsset.BuilderassetRevision(String assetRevision)The revision of the asset for which the subscription grant is created.default SubscribedAsset.BuilderassetScope(Consumer<AssetScope.Builder> assetScope)The asset scope of the subscribed asset.SubscribedAsset.BuilderassetScope(AssetScope assetScope)The asset scope of the subscribed asset.default SubscribedAsset.BuilderfailureCause(Consumer<FailureCause.Builder> failureCause)The failure cause included in the details of the asset for which the subscription grant is created.SubscribedAsset.BuilderfailureCause(FailureCause failureCause)The failure cause included in the details of the asset for which the subscription grant is created.SubscribedAsset.BuilderfailureTimestamp(Instant failureTimestamp)The failure timestamp included in the details of the asset for which the subscription grant is created.SubscribedAsset.BuildergrantedTimestamp(Instant grantedTimestamp)The timestamp of when the subscription grant to the asset is created.SubscribedAsset.Builderstatus(String status)The status of the asset for which the subscription grant is created.SubscribedAsset.Builderstatus(SubscriptionGrantStatus status)The status of the asset for which the subscription grant is created.SubscribedAsset.BuildertargetName(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, sdkFields
-
-
-
-
Method Detail
-
assetId
SubscribedAsset.Builder assetId(String 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
SubscribedAsset.Builder assetRevision(String 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
SubscribedAsset.Builder assetScope(AssetScope 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
default SubscribedAsset.Builder assetScope(Consumer<AssetScope.Builder> assetScope)
The asset scope of the subscribed asset.
This is a convenience method that creates an instance of theAssetScope.Builderavoiding the need to create one manually viaAssetScope.builder().When the
Consumercompletes,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:
assetScope(AssetScope)
-
failureCause
SubscribedAsset.Builder failureCause(FailureCause 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
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.
This is a convenience method that creates an instance of theFailureCause.Builderavoiding the need to create one manually viaFailureCause.builder().When the
Consumercompletes,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:
failureCause(FailureCause)
-
failureTimestamp
SubscribedAsset.Builder failureTimestamp(Instant 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
SubscribedAsset.Builder grantedTimestamp(Instant 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
SubscribedAsset.Builder status(String 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:
SubscriptionGrantStatus,SubscriptionGrantStatus
-
status
SubscribedAsset.Builder status(SubscriptionGrantStatus 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:
SubscriptionGrantStatus,SubscriptionGrantStatus
-
targetName
SubscribedAsset.Builder targetName(String 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.
-
-