Interface CreateSubscriptionGrantResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateSubscriptionGrantResponse.Builder,CreateSubscriptionGrantResponse>,DataZoneResponse.Builder,SdkBuilder<CreateSubscriptionGrantResponse.Builder,CreateSubscriptionGrantResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CreateSubscriptionGrantResponse
public static interface CreateSubscriptionGrantResponse.Builder extends DataZoneResponse.Builder, SdkPojo, CopyableBuilder<CreateSubscriptionGrantResponse.Builder,CreateSubscriptionGrantResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description CreateSubscriptionGrantResponse.Builderassets(Collection<SubscribedAsset> assets)The assets for which the subscription grant is created.CreateSubscriptionGrantResponse.Builderassets(Consumer<SubscribedAsset.Builder>... assets)The assets for which the subscription grant is created.CreateSubscriptionGrantResponse.Builderassets(SubscribedAsset... assets)The assets for which the subscription grant is created.CreateSubscriptionGrantResponse.BuildercreatedAt(Instant createdAt)A timestamp of when the subscription grant is created.CreateSubscriptionGrantResponse.BuildercreatedBy(String createdBy)The Amazon DataZone user who created the subscription grant.CreateSubscriptionGrantResponse.BuilderdomainId(String domainId)The ID of the Amazon DataZone domain in which the subscription grant is created.default CreateSubscriptionGrantResponse.BuildergrantedEntity(Consumer<GrantedEntity.Builder> grantedEntity)The entity to which the subscription is granted.CreateSubscriptionGrantResponse.BuildergrantedEntity(GrantedEntity grantedEntity)The entity to which the subscription is granted.CreateSubscriptionGrantResponse.Builderid(String id)The ID of the subscription grant.CreateSubscriptionGrantResponse.Builderstatus(String status)The status of the subscription grant.CreateSubscriptionGrantResponse.Builderstatus(SubscriptionGrantOverallStatus status)The status of the subscription grant.CreateSubscriptionGrantResponse.BuildersubscriptionId(String subscriptionId)Deprecated.Multiple subscriptions can exist for a single grantCreateSubscriptionGrantResponse.BuildersubscriptionTargetId(String subscriptionTargetId)The ID of the subscription target for which the subscription grant is created.CreateSubscriptionGrantResponse.BuilderupdatedAt(Instant updatedAt)A timestamp of when the subscription grant was updated.CreateSubscriptionGrantResponse.BuilderupdatedBy(String updatedBy)The Amazon DataZone user who updated the subscription grant.-
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
-
assets
CreateSubscriptionGrantResponse.Builder assets(Collection<SubscribedAsset> assets)
The assets for which the subscription grant is created.
- Parameters:
assets- The assets for which the subscription grant is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assets
CreateSubscriptionGrantResponse.Builder assets(SubscribedAsset... assets)
The assets for which the subscription grant is created.
- Parameters:
assets- The assets for which the subscription grant is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assets
CreateSubscriptionGrantResponse.Builder assets(Consumer<SubscribedAsset.Builder>... assets)
The assets for which the subscription grant is created.
This is a convenience method that creates an instance of theSubscribedAsset.Builderavoiding the need to create one manually viaSubscribedAsset.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#assets(List.) - Parameters:
assets- a consumer that will call methods onSubscribedAsset.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#assets(java.util.Collection)
-
createdAt
CreateSubscriptionGrantResponse.Builder createdAt(Instant createdAt)
A timestamp of when the subscription grant is created.
- Parameters:
createdAt- A timestamp of when the subscription grant is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
CreateSubscriptionGrantResponse.Builder createdBy(String createdBy)
The Amazon DataZone user who created the subscription grant.
- Parameters:
createdBy- The Amazon DataZone user who created the subscription grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
domainId
CreateSubscriptionGrantResponse.Builder domainId(String domainId)
The ID of the Amazon DataZone domain in which the subscription grant is created.
- Parameters:
domainId- The ID of the Amazon DataZone domain in which the subscription grant is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantedEntity
CreateSubscriptionGrantResponse.Builder grantedEntity(GrantedEntity grantedEntity)
The entity to which the subscription is granted.
- Parameters:
grantedEntity- The entity to which the subscription is granted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantedEntity
default CreateSubscriptionGrantResponse.Builder grantedEntity(Consumer<GrantedEntity.Builder> grantedEntity)
The entity to which the subscription is granted.
This is a convenience method that creates an instance of theGrantedEntity.Builderavoiding the need to create one manually viaGrantedEntity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tograntedEntity(GrantedEntity).- Parameters:
grantedEntity- a consumer that will call methods onGrantedEntity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
grantedEntity(GrantedEntity)
-
id
CreateSubscriptionGrantResponse.Builder id(String id)
The ID of the subscription grant.
- Parameters:
id- The ID of the subscription grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
CreateSubscriptionGrantResponse.Builder status(String status)
The status of the subscription grant.
- Parameters:
status- The status of the subscription grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SubscriptionGrantOverallStatus,SubscriptionGrantOverallStatus
-
status
CreateSubscriptionGrantResponse.Builder status(SubscriptionGrantOverallStatus status)
The status of the subscription grant.
- Parameters:
status- The status of the subscription grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SubscriptionGrantOverallStatus,SubscriptionGrantOverallStatus
-
subscriptionId
@Deprecated CreateSubscriptionGrantResponse.Builder subscriptionId(String subscriptionId)
Deprecated.Multiple subscriptions can exist for a single grantThe identifier of the subscription grant.
- Parameters:
subscriptionId- The identifier of the subscription grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscriptionTargetId
CreateSubscriptionGrantResponse.Builder subscriptionTargetId(String subscriptionTargetId)
The ID of the subscription target for which the subscription grant is created.
- Parameters:
subscriptionTargetId- The ID of the subscription target for which the subscription grant is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
CreateSubscriptionGrantResponse.Builder updatedAt(Instant updatedAt)
A timestamp of when the subscription grant was updated.
- Parameters:
updatedAt- A timestamp of when the subscription grant was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedBy
CreateSubscriptionGrantResponse.Builder updatedBy(String updatedBy)
The Amazon DataZone user who updated the subscription grant.
- Parameters:
updatedBy- The Amazon DataZone user who updated the subscription grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-