Interface GetBenefitAllocationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetBenefitAllocationResponse.Builder,,GetBenefitAllocationResponse> PartnerCentralBenefitsResponse.Builder,SdkBuilder<GetBenefitAllocationResponse.Builder,,GetBenefitAllocationResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetBenefitAllocationResponse
-
Method Summary
Modifier and TypeMethodDescriptionapplicableBenefitIds(String... applicableBenefitIds) A list of benefit identifiers that this allocation can be applied to.applicableBenefitIds(Collection<String> applicableBenefitIds) A list of benefit identifiers that this allocation can be applied to.The Amazon Resource Name (ARN) of the benefit allocation.benefitApplicationId(String benefitApplicationId) The identifier of the benefit application that resulted in this allocation.The identifier of the benefit that this allocation is based on.The catalog identifier that the benefit allocation belongs to.The timestamp when the benefit allocation was created.description(String description) A detailed description of the benefit allocation.The timestamp when the benefit allocation expires and is no longer usable.fulfillmentDetail(Consumer<FulfillmentDetails.Builder> fulfillmentDetail) Detailed information about how the benefit allocation is fulfilled.fulfillmentDetail(FulfillmentDetails fulfillmentDetail) Detailed information about how the benefit allocation is fulfilled.fulfillmentType(String fulfillmentType) The fulfillment type used for this benefit allocation.fulfillmentType(FulfillmentType fulfillmentType) The fulfillment type used for this benefit allocation.The unique identifier of the benefit allocation.The human-readable name of the benefit allocation.The timestamp when the benefit allocation becomes active and usable.The current status of the benefit allocation (e.g., active, expired, consumed).status(BenefitAllocationStatus status) The current status of the benefit allocation (e.g., active, expired, consumed).statusReason(String statusReason) Additional information explaining the current status of the benefit allocation.The timestamp when the benefit allocation was last updated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.partnercentralbenefits.model.PartnerCentralBenefitsResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
id
The unique identifier of the benefit allocation.
- Parameters:
id- The unique identifier of the benefit allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
catalog
The catalog identifier that the benefit allocation belongs to.
- Parameters:
catalog- The catalog identifier that the benefit allocation belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the benefit allocation.
- Parameters:
arn- The Amazon Resource Name (ARN) of the benefit allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The human-readable name of the benefit allocation.
- Parameters:
name- The human-readable name of the benefit allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A detailed description of the benefit allocation.
- Parameters:
description- A detailed description of the benefit allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current status of the benefit allocation (e.g., active, expired, consumed).
- Parameters:
status- The current status of the benefit allocation (e.g., active, expired, consumed).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the benefit allocation (e.g., active, expired, consumed).
- Parameters:
status- The current status of the benefit allocation (e.g., active, expired, consumed).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statusReason
Additional information explaining the current status of the benefit allocation.
- Parameters:
statusReason- Additional information explaining the current status of the benefit allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
benefitApplicationId
The identifier of the benefit application that resulted in this allocation.
- Parameters:
benefitApplicationId- The identifier of the benefit application that resulted in this allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
benefitId
The identifier of the benefit that this allocation is based on.
- Parameters:
benefitId- The identifier of the benefit that this allocation is based on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fulfillmentType
The fulfillment type used for this benefit allocation.
- Parameters:
fulfillmentType- The fulfillment type used for this benefit allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fulfillmentType
The fulfillment type used for this benefit allocation.
- Parameters:
fulfillmentType- The fulfillment type used for this benefit allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
applicableBenefitIds
A list of benefit identifiers that this allocation can be applied to.
- Parameters:
applicableBenefitIds- A list of benefit identifiers that this allocation can be applied to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
applicableBenefitIds
A list of benefit identifiers that this allocation can be applied to.
- Parameters:
applicableBenefitIds- A list of benefit identifiers that this allocation can be applied to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fulfillmentDetail
Detailed information about how the benefit allocation is fulfilled.
- Parameters:
fulfillmentDetail- Detailed information about how the benefit allocation is fulfilled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fulfillmentDetail
default GetBenefitAllocationResponse.Builder fulfillmentDetail(Consumer<FulfillmentDetails.Builder> fulfillmentDetail) Detailed information about how the benefit allocation is fulfilled.
This is a convenience method that creates an instance of theFulfillmentDetails.Builderavoiding the need to create one manually viaFulfillmentDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofulfillmentDetail(FulfillmentDetails).- Parameters:
fulfillmentDetail- a consumer that will call methods onFulfillmentDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
The timestamp when the benefit allocation was created.
- Parameters:
createdAt- The timestamp when the benefit allocation was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The timestamp when the benefit allocation was last updated.
- Parameters:
updatedAt- The timestamp when the benefit allocation was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startsAt
The timestamp when the benefit allocation becomes active and usable.
- Parameters:
startsAt- The timestamp when the benefit allocation becomes active and usable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiresAt
The timestamp when the benefit allocation expires and is no longer usable.
- Parameters:
expiresAt- The timestamp when the benefit allocation expires and is no longer usable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-