Class Rule.Builder
- java.lang.Object
-
- com.ibm.cloud.watsonxdata.watsonx_data.v1.model.Rule.Builder
-
- Enclosing class:
- Rule
public static class Rule.Builder extends java.lang.Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(java.util.List<java.lang.String> actions, RuleGrantee grantee)
Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.Builder
actions(java.util.List<java.lang.String> actions)
Set the actions.Rule.Builder
addActions(java.lang.String actions)
Adds an actions to actions.Rule
build()
Builds a Rule.Rule.Builder
effect(java.lang.String effect)
Set the effect.Rule.Builder
grantee(RuleGrantee grantee)
Set the grantee.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(java.util.List<java.lang.String> actions, RuleGrantee grantee)
Instantiates a new builder with required properties.- Parameters:
actions
- the actionsgrantee
- the grantee
-
-
Method Detail
-
build
public Rule build()
Builds a Rule.- Returns:
- the new Rule instance
-
addActions
public Rule.Builder addActions(java.lang.String actions)
Adds an actions to actions.- Parameters:
actions
- the new actions- Returns:
- the Rule builder
-
actions
public Rule.Builder actions(java.util.List<java.lang.String> actions)
Set the actions. Existing actions will be replaced.- Parameters:
actions
- the actions- Returns:
- the Rule builder
-
effect
public Rule.Builder effect(java.lang.String effect)
Set the effect.- Parameters:
effect
- the effect- Returns:
- the Rule builder
-
grantee
public Rule.Builder grantee(RuleGrantee grantee)
Set the grantee.- Parameters:
grantee
- the grantee- Returns:
- the Rule builder
-
-