Package ai.shipeasy.admin.model
Class ListGatesResponseDataInnerStackInnerOneOf1
java.lang.Object
ai.shipeasy.admin.model.ListGatesResponseDataInnerStackInnerOneOf1
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ListGatesResponseDataInnerStackInnerOneOf1
extends Object
Percentage-rollout sub-gate. Hashes `bucketBy` (default `userID`) with `salt` and returns `true` for `rolloutPct/10000` fraction of callers (or the ramp's effective % when `ramp` is set).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumDiscriminator. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of ListGatesResponseDataInnerStackInnerOneOf1 given an JSON stringfromTemplate(String fromTemplate) Attribute used to hash the caller into a bucket.Source template id, or `null`.getId()Client-supplied stable id for the stack entry.If `true`, dashboard hides edit controls.getName()Human label shown in the dashboard.getRamp()Get rampBucket size in basis points (0–10000 = 0%–100%).getSalt()Per-entry hash salt.getType()Discriminator.inthashCode()rolloutPct(Integer rolloutPct) voidsetBucketBy(String bucketBy) voidsetFromTemplate(String fromTemplate) voidvoidvoidvoidvoidsetRolloutPct(Integer rolloutPct) voidvoidtoJson()Convert an instance of ListGatesResponseDataInnerStackInnerOneOf1 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_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
-
ListGatesResponseDataInnerStackInnerOneOf1
public ListGatesResponseDataInnerStackInnerOneOf1()
-
-
Method Details
-
id
-
getId
Client-supplied stable id for the stack entry.- Returns:
- id
-
setId
-
type
public ListGatesResponseDataInnerStackInnerOneOf1 type(@Nonnull ListGatesResponseDataInnerStackInnerOneOf1.TypeEnum type) -
getType
Discriminator. `rollout` = percentage-bucket sub-gate.- Returns:
- type
-
setType
-
name
-
getName
Human label shown in the dashboard.- Returns:
- name
-
setName
-
fromTemplate
-
getFromTemplate
Source template id, or `null`.- Returns:
- fromTemplate
-
setFromTemplate
-
rolloutPct
-
getRolloutPct
Bucket size in basis points (0–10000 = 0%–100%). `5000` = 50%, `100` = 1%, allows sub-1% precision. minimum: 0 maximum: 10000- Returns:
- rolloutPct
-
setRolloutPct
-
bucketBy
-
getBucketBy
Attribute used to hash the caller into a bucket. Defaults to `user.userID`. Use e.g. `accountID` to bucket whole accounts together.- Returns:
- bucketBy
-
setBucketBy
-
salt
-
getSalt
Per-entry hash salt. Defaults to the gate's salt. Set explicitly to keep two rollouts independent or correlated across gates.- Returns:
- salt
-
setSalt
-
ramp
public ListGatesResponseDataInnerStackInnerOneOf1 ramp(@Nullable ListGatesResponseDataInnerStackInnerOneOfRamp ramp) -
getRamp
Get ramp- Returns:
- ramp
-
setRamp
-
locked
-
getLocked
If `true`, dashboard hides edit controls.- 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 ListGatesResponseDataInnerStackInnerOneOf1
-
fromJson
public static ListGatesResponseDataInnerStackInnerOneOf1 fromJson(String jsonString) throws IOException Create an instance of ListGatesResponseDataInnerStackInnerOneOf1 given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ListGatesResponseDataInnerStackInnerOneOf1
- Throws:
IOException- if the JSON string is invalid with respect to ListGatesResponseDataInnerStackInnerOneOf1
-
toJson
Convert an instance of ListGatesResponseDataInnerStackInnerOneOf1 to an JSON string- Returns:
- JSON string
-