Interface GetEntitlementDecisionResponse.Builder
- All Superinterfaces:
AppMonetizationResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<GetEntitlementDecisionResponse.Builder,,GetEntitlementDecisionResponse> SdkBuilder<GetEntitlementDecisionResponse.Builder,,GetEntitlementDecisionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetEntitlementDecisionResponse
@Mutable
@NotThreadSafe
public static interface GetEntitlementDecisionResponse.Builder
extends AppMonetizationResponse.Builder, SdkPojo, CopyableBuilder<GetEntitlementDecisionResponse.Builder,GetEntitlementDecisionResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe decision indicating whether the user may perform the action.decision(EntitlementDecision decision) The decision indicating whether the user may perform the action.metrics(Collection<EntitlementMetricStatus> metrics) The per-metric quota status relevant to the decision.metrics(Consumer<EntitlementMetricStatus.Builder>... metrics) The per-metric quota status relevant to the decision.metrics(EntitlementMetricStatus... metrics) The per-metric quota status relevant to the decision.The ID of the plan the decision was evaluated against, when the user has a subscription.reason(Consumer<EntitlementReason.Builder> reason) The reason behind the decision.reason(EntitlementReason reason) The reason behind the decision.Methods inherited from interface software.amazon.awssdk.services.appmonetization.model.AppMonetizationResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods 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
-
decision
The decision indicating whether the user may perform the action.
- Parameters:
decision- The decision indicating whether the user may perform the action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
decision
The decision indicating whether the user may perform the action.
- Parameters:
decision- The decision indicating whether the user may perform the action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reason
The reason behind the decision.
- Parameters:
reason- The reason behind the decision.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reason
The reason behind the decision.
This is a convenience method that creates an instance of theEntitlementReason.Builderavoiding the need to create one manually viaEntitlementReason.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreason(EntitlementReason).- Parameters:
reason- a consumer that will call methods onEntitlementReason.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
planId
The ID of the plan the decision was evaluated against, when the user has a subscription.
- Parameters:
planId- The ID of the plan the decision was evaluated against, when the user has a subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
The per-metric quota status relevant to the decision.
- Parameters:
metrics- The per-metric quota status relevant to the decision.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
The per-metric quota status relevant to the decision.
- Parameters:
metrics- The per-metric quota status relevant to the decision.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
GetEntitlementDecisionResponse.Builder metrics(Consumer<EntitlementMetricStatus.Builder>... metrics) The per-metric quota status relevant to the decision.
This is a convenience method that creates an instance of theEntitlementMetricStatus.Builderavoiding the need to create one manually viaEntitlementMetricStatus.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometrics(List<EntitlementMetricStatus>).- Parameters:
metrics- a consumer that will call methods onEntitlementMetricStatus.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-