Package ai.shipeasy.admin.model
Class ListGatesResponseDataInnerRulesInner
java.lang.Object
ai.shipeasy.admin.model.ListGatesResponseDataInnerRulesInner
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ListGatesResponseDataInnerRulesInner
extends Object
Single targeting predicate. A gate's `rules` array is evaluated with AND semantics; use the gatekeeper `stack` for OR / fall-through logic.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumComparison operator. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of ListGatesResponseDataInnerRulesInner given an JSON stringgetAttr()Attribute key on the evaluation context (e.g.getOp()Comparison operator.getValue()Get valueinthashCode()voidvoidvoidtoJson()Convert an instance of ListGatesResponseDataInnerRulesInner 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_ATTR
- See Also:
-
SERIALIZED_NAME_OP
- See Also:
-
SERIALIZED_NAME_VALUE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ListGatesResponseDataInnerRulesInner
public ListGatesResponseDataInnerRulesInner()
-
-
Method Details
-
attr
-
getAttr
Attribute key on the evaluation context (e.g. `country`, `plan`, `email`). Matched case-sensitively against `Shipeasy.checkGate(user, name)` input.- Returns:
- attr
-
setAttr
-
op
public ListGatesResponseDataInnerRulesInner op(@Nonnull ListGatesResponseDataInnerRulesInner.OpEnum op) -
getOp
Comparison operator. Equality: `eq`/`neq`. Set membership: `in`/`not_in` (value is an array). Numeric order: `gt`/`gte`/`lt`/`lte`. Semver order: `semver_gt`/`semver_gte`/`semver_lt`/`semver_lte` (value is a dotted version like `4.2.0`). String: `contains` (substring), `regex` (JS-flavour pattern, value is the pattern string). Cross-resource references (evaluated only on the worker hot path, where both KV blobs load): `gate_pass` (`value` is another gate's name — true when that gate passes for the same caller); `exp_in` (`attr` is a running experiment's name, `value` is a group name, `\"$holdout\"`, or `\"$any\"` — true when the caller is in that variant / the universe holdout / any variant).- Returns:
- op
-
setOp
-
value
-
getValue
Get value- Returns:
- value
-
setValue
-
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 ListGatesResponseDataInnerRulesInner
-
fromJson
Create an instance of ListGatesResponseDataInnerRulesInner given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ListGatesResponseDataInnerRulesInner
- Throws:
IOException- if the JSON string is invalid with respect to ListGatesResponseDataInnerRulesInner
-
toJson
Convert an instance of ListGatesResponseDataInnerRulesInner to an JSON string- Returns:
- JSON string
-