Interface CancelSubscriptionResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CancelSubscriptionResponse.Builder,CancelSubscriptionResponse>,DataZoneResponse.Builder,SdkBuilder<CancelSubscriptionResponse.Builder,CancelSubscriptionResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CancelSubscriptionResponse
public static interface CancelSubscriptionResponse.Builder extends DataZoneResponse.Builder, SdkPojo, CopyableBuilder<CancelSubscriptionResponse.Builder,CancelSubscriptionResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CancelSubscriptionResponse.BuildercreatedAt(Instant createdAt)The timestamp that specifies when the request to cancel the subscription was created.CancelSubscriptionResponse.BuildercreatedBy(String createdBy)Specifies the Amazon DataZone user who is cancelling the subscription.CancelSubscriptionResponse.BuilderdomainId(String domainId)The unique identifier of the Amazon DataZone domain where the subscription is being cancelled.CancelSubscriptionResponse.Builderid(String id)The identifier of the subscription.CancelSubscriptionResponse.BuilderretainPermissions(Boolean retainPermissions)Specifies whether the permissions to the asset are retained after the subscription is cancelled.CancelSubscriptionResponse.Builderstatus(String status)The status of the request to cancel the subscription.CancelSubscriptionResponse.Builderstatus(SubscriptionStatus status)The status of the request to cancel the subscription.default CancelSubscriptionResponse.BuildersubscribedListing(Consumer<SubscribedListing.Builder> subscribedListing)The asset to which a subscription is being cancelled.CancelSubscriptionResponse.BuildersubscribedListing(SubscribedListing subscribedListing)The asset to which a subscription is being cancelled.default CancelSubscriptionResponse.BuildersubscribedPrincipal(Consumer<SubscribedPrincipal.Builder> subscribedPrincipal)The Amazon DataZone user who is made a subscriber to the specified asset by the subscription that is being cancelled.CancelSubscriptionResponse.BuildersubscribedPrincipal(SubscribedPrincipal subscribedPrincipal)The Amazon DataZone user who is made a subscriber to the specified asset by the subscription that is being cancelled.CancelSubscriptionResponse.BuildersubscriptionRequestId(String subscriptionRequestId)The unique ID of the subscripton request for the subscription that is being cancelled.CancelSubscriptionResponse.BuilderupdatedAt(Instant updatedAt)The timestamp that specifies when the subscription was cancelled.CancelSubscriptionResponse.BuilderupdatedBy(String updatedBy)The Amazon DataZone user that cancelled the subscription.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.datazone.model.DataZoneResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
createdAt
CancelSubscriptionResponse.Builder createdAt(Instant createdAt)
The timestamp that specifies when the request to cancel the subscription was created.
- Parameters:
createdAt- The timestamp that specifies when the request to cancel the subscription was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
CancelSubscriptionResponse.Builder createdBy(String createdBy)
Specifies the Amazon DataZone user who is cancelling the subscription.
- Parameters:
createdBy- Specifies the Amazon DataZone user who is cancelling the subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
domainId
CancelSubscriptionResponse.Builder domainId(String domainId)
The unique identifier of the Amazon DataZone domain where the subscription is being cancelled.
- Parameters:
domainId- The unique identifier of the Amazon DataZone domain where the subscription is being cancelled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
CancelSubscriptionResponse.Builder id(String id)
The identifier of the subscription.
- Parameters:
id- The identifier of the subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retainPermissions
CancelSubscriptionResponse.Builder retainPermissions(Boolean retainPermissions)
Specifies whether the permissions to the asset are retained after the subscription is cancelled.
- Parameters:
retainPermissions- Specifies whether the permissions to the asset are retained after the subscription is cancelled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
CancelSubscriptionResponse.Builder status(String status)
The status of the request to cancel the subscription.
- Parameters:
status- The status of the request to cancel the subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SubscriptionStatus,SubscriptionStatus
-
status
CancelSubscriptionResponse.Builder status(SubscriptionStatus status)
The status of the request to cancel the subscription.
- Parameters:
status- The status of the request to cancel the subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SubscriptionStatus,SubscriptionStatus
-
subscribedListing
CancelSubscriptionResponse.Builder subscribedListing(SubscribedListing subscribedListing)
The asset to which a subscription is being cancelled.
- Parameters:
subscribedListing- The asset to which a subscription is being cancelled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscribedListing
default CancelSubscriptionResponse.Builder subscribedListing(Consumer<SubscribedListing.Builder> subscribedListing)
The asset to which a subscription is being cancelled.
This is a convenience method that creates an instance of theSubscribedListing.Builderavoiding the need to create one manually viaSubscribedListing.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosubscribedListing(SubscribedListing).- Parameters:
subscribedListing- a consumer that will call methods onSubscribedListing.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
subscribedListing(SubscribedListing)
-
subscribedPrincipal
CancelSubscriptionResponse.Builder subscribedPrincipal(SubscribedPrincipal subscribedPrincipal)
The Amazon DataZone user who is made a subscriber to the specified asset by the subscription that is being cancelled.
- Parameters:
subscribedPrincipal- The Amazon DataZone user who is made a subscriber to the specified asset by the subscription that is being cancelled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscribedPrincipal
default CancelSubscriptionResponse.Builder subscribedPrincipal(Consumer<SubscribedPrincipal.Builder> subscribedPrincipal)
The Amazon DataZone user who is made a subscriber to the specified asset by the subscription that is being cancelled.
This is a convenience method that creates an instance of theSubscribedPrincipal.Builderavoiding the need to create one manually viaSubscribedPrincipal.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosubscribedPrincipal(SubscribedPrincipal).- Parameters:
subscribedPrincipal- a consumer that will call methods onSubscribedPrincipal.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
subscribedPrincipal(SubscribedPrincipal)
-
subscriptionRequestId
CancelSubscriptionResponse.Builder subscriptionRequestId(String subscriptionRequestId)
The unique ID of the subscripton request for the subscription that is being cancelled.
- Parameters:
subscriptionRequestId- The unique ID of the subscripton request for the subscription that is being cancelled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
CancelSubscriptionResponse.Builder updatedAt(Instant updatedAt)
The timestamp that specifies when the subscription was cancelled.
- Parameters:
updatedAt- The timestamp that specifies when the subscription was cancelled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedBy
CancelSubscriptionResponse.Builder updatedBy(String updatedBy)
The Amazon DataZone user that cancelled the subscription.
- Parameters:
updatedBy- The Amazon DataZone user that cancelled the subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-