Package com.sun.identity.entitlement
Class ConditionDecision.Builder
- java.lang.Object
-
- com.sun.identity.entitlement.ConditionDecision.Builder
-
- Enclosing class:
- ConditionDecision
public static final class ConditionDecision.Builder extends Object
Builder to help construct decisions.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionDecision
build()
Builds the decision.ConditionDecision.Builder
setAdvice(Map<String,Set<String>> advice)
Sets the advice.ConditionDecision.Builder
setResponseAttributes(Map<String,Set<String>> responseAttributes)
Sets the response attributes.ConditionDecision.Builder
setTimeToLive(long timeToLive)
Sets the time to live.
-
-
-
Method Detail
-
setAdvice
public ConditionDecision.Builder setAdvice(Map<String,Set<String>> advice)
Sets the advice.- Parameters:
advice
- the advice- Returns:
- this builder instance
-
setResponseAttributes
public ConditionDecision.Builder setResponseAttributes(Map<String,Set<String>> responseAttributes)
Sets the response attributes.- Parameters:
responseAttributes
- the response attributes- Returns:
- this builder instance
-
setTimeToLive
public ConditionDecision.Builder setTimeToLive(long timeToLive)
Sets the time to live.- Parameters:
timeToLive
- the time to live- Returns:
- this builder instance
-
build
public ConditionDecision build()
Builds the decision.- Returns:
- the decision instance
-
-