Package ai.shipeasy.admin.model
Class ListGatesResponseDataInnerStackInnerOneOf
java.lang.Object
ai.shipeasy.admin.model.ListGatesResponseDataInnerStackInnerOneOf
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ListGatesResponseDataInnerStackInnerOneOf
extends Object
Rule-based sub-gate. When the rules match and the caller falls in the per-condition rollout bucket, evaluation short-circuits and the gate returns `true`; otherwise it falls through to the next entry.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumCombinator across `rules`.static enumDiscriminator. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRulesItem(ListGatesResponseDataInnerRulesInner rulesItem) booleanCreate an instance of ListGatesResponseDataInnerStackInnerOneOf given an JSON stringfromTemplate(String fromTemplate) Attribute used to hash the caller into the per-condition bucket.Id of the project template this entry was seeded from, or `null` if hand-authored.getId()Client-supplied stable id for the stack entry (used for React keys, audit diffs, and as the default per-condition rollout salt).If `true`, dashboard hides edit controls (e.g.getName()Human label shown in the dashboard.getPass()Combinator across `rules`.getRamp()Get rampPer-condition rollout in basis points.getRules()Predicates evaluated under `pass`.getSalt()Per-condition hash salt.getType()Discriminator.inthashCode()rolloutPct(Integer rolloutPct) voidsetBucketBy(String bucketBy) voidsetFromTemplate(String fromTemplate) voidvoidvoidvoidvoidvoidsetRolloutPct(Integer rolloutPct) voidvoidvoidtoJson()Convert an instance of ListGatesResponseDataInnerStackInnerOneOf to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_FROM_TEMPLATE
- See Also:
-
SERIALIZED_NAME_PASS
- See Also:
-
SERIALIZED_NAME_RULES
- See Also:
-
SERIALIZED_NAME_ROLLOUT_PCT
- See Also:
-
SERIALIZED_NAME_BUCKET_BY
- See Also:
-
SERIALIZED_NAME_SALT
- See Also:
-
SERIALIZED_NAME_RAMP
- See Also:
-
SERIALIZED_NAME_LOCKED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ListGatesResponseDataInnerStackInnerOneOf
public ListGatesResponseDataInnerStackInnerOneOf()
-
-
Method Details
-
id
-
getId
Client-supplied stable id for the stack entry (used for React keys, audit diffs, and as the default per-condition rollout salt).- Returns:
- id
-
setId
-
type
public ListGatesResponseDataInnerStackInnerOneOf type(@Nonnull ListGatesResponseDataInnerStackInnerOneOf.TypeEnum type) -
getType
Discriminator. `condition` = rule-based predicate sub-gate.- Returns:
- type
-
setType
-
name
-
getName
Human label shown in the dashboard.- Returns:
- name
-
setName
-
fromTemplate
-
getFromTemplate
Id of the project template this entry was seeded from, or `null` if hand-authored.- Returns:
- fromTemplate
-
setFromTemplate
-
pass
public ListGatesResponseDataInnerStackInnerOneOf pass(@Nullable ListGatesResponseDataInnerStackInnerOneOf.PassEnum pass) -
getPass
Combinator across `rules`. `all` = AND (default), `any` = OR.- Returns:
- pass
-
setPass
-
rules
public ListGatesResponseDataInnerStackInnerOneOf rules(@Nullable List<ListGatesResponseDataInnerRulesInner> rules) -
addRulesItem
public ListGatesResponseDataInnerStackInnerOneOf addRulesItem(ListGatesResponseDataInnerRulesInner rulesItem) -
getRules
Predicates evaluated under `pass`. Empty array = match nothing.- Returns:
- rules
-
setRules
-
rolloutPct
-
getRolloutPct
Per-condition rollout in basis points. After the rules match, the caller is bucketed at this %; in-bucket → gate `true`, otherwise fall through to the next entry. Absent ⇒ 10000 (100%, every matching caller passes). minimum: 0 maximum: 10000- Returns:
- rolloutPct
-
setRolloutPct
-
bucketBy
-
getBucketBy
Attribute used to hash the caller into the per-condition bucket. Default `userID`.- Returns:
- bucketBy
-
setBucketBy
-
salt
-
getSalt
Per-condition hash salt. Defaults to the entry `id`, then the gate salt.- Returns:
- salt
-
setSalt
-
ramp
public ListGatesResponseDataInnerStackInnerOneOf ramp(@Nullable ListGatesResponseDataInnerStackInnerOneOfRamp ramp) -
getRamp
Get ramp- Returns:
- ramp
-
setRamp
-
locked
-
getLocked
If `true`, dashboard hides edit controls (e.g. the trailing public-floor entry).- Returns:
- locked
-
setLocked
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ListGatesResponseDataInnerStackInnerOneOf
-
fromJson
public static ListGatesResponseDataInnerStackInnerOneOf fromJson(String jsonString) throws IOException Create an instance of ListGatesResponseDataInnerStackInnerOneOf given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ListGatesResponseDataInnerStackInnerOneOf
- Throws:
IOException- if the JSON string is invalid with respect to ListGatesResponseDataInnerStackInnerOneOf
-
toJson
Convert an instance of ListGatesResponseDataInnerStackInnerOneOf to an JSON string- Returns:
- JSON string
-