Class FlowSchemaSpec.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.flowcontrol.v1beta2.FlowSchemaSpec.Builder
-
- Enclosing class:
- FlowSchemaSpec
public static class FlowSchemaSpec.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowSchemaSpec.Builder
addToRules(PolicyRulesWithSubjects addToRules)
FlowSchemaSpec
build()
FlowSchemaSpec.Builder
clearRules()
FlowSchemaSpec.Builder
distinguisherMethod(FlowDistinguisherMethod distinguisherMethod)
FlowSchemaSpec.Builder
matchingPrecedence(java.lang.Number matchingPrecedence)
`matchingPrecedence` is used to choose among the FlowSchemas that match a given request.FlowSchemaSpec.Builder
priorityLevelConfiguration(@NonNull PriorityLevelConfigurationReference priorityLevelConfiguration)
FlowSchemaSpec.Builder
rules(java.util.Collection<? extends PolicyRulesWithSubjects> rules)
java.lang.String
toString()
-
-
-
Method Detail
-
distinguisherMethod
public FlowSchemaSpec.Builder distinguisherMethod(FlowDistinguisherMethod distinguisherMethod)
- Returns:
this
.
-
matchingPrecedence
public FlowSchemaSpec.Builder matchingPrecedence(java.lang.Number matchingPrecedence)
`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.- Returns:
this
.
-
priorityLevelConfiguration
public FlowSchemaSpec.Builder priorityLevelConfiguration(@NonNull @NonNull PriorityLevelConfigurationReference priorityLevelConfiguration)
- Returns:
this
.
-
addToRules
public FlowSchemaSpec.Builder addToRules(PolicyRulesWithSubjects addToRules)
-
rules
public FlowSchemaSpec.Builder rules(java.util.Collection<? extends PolicyRulesWithSubjects> rules)
-
clearRules
public FlowSchemaSpec.Builder clearRules()
-
build
public FlowSchemaSpec build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-