Class HoldoutPostRequest


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2026-03-05T10:45:26.516033Z[Etc/UTC]",
               comments="Generator version: 7.18.0")
    public class HoldoutPostRequest
    extends java.lang.Object
    HoldoutPostRequest
    • Field Detail

      • SERIALIZED_NAME_NAME

        public static final java.lang.String SERIALIZED_NAME_NAME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_KEY

        public static final java.lang.String SERIALIZED_NAME_KEY
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_DESCRIPTION

        public static final java.lang.String SERIALIZED_NAME_DESCRIPTION
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_RANDOMIZATIONUNIT

        public static final java.lang.String SERIALIZED_NAME_RANDOMIZATIONUNIT
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_ATTRIBUTES

        public static final java.lang.String SERIALIZED_NAME_ATTRIBUTES
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_HOLDOUTAMOUNT

        public static final java.lang.String SERIALIZED_NAME_HOLDOUTAMOUNT
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_PRIMARYMETRICKEY

        public static final java.lang.String SERIALIZED_NAME_PRIMARYMETRICKEY
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_METRICS

        public static final java.lang.String SERIALIZED_NAME_METRICS
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_PREREQUISITEFLAGKEY

        public static final java.lang.String SERIALIZED_NAME_PREREQUISITEFLAGKEY
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_MAINTAINER_ID

        public static final java.lang.String SERIALIZED_NAME_MAINTAINER_ID
        See Also:
        Constant Field Values
      • openapiFields

        public static java.util.HashSet<java.lang.String> openapiFields
      • openapiRequiredFields

        public static java.util.HashSet<java.lang.String> openapiRequiredFields
    • Constructor Detail

      • HoldoutPostRequest

        public HoldoutPostRequest()
    • Method Detail

      • getName

        @Nullable
        public java.lang.String getName()
        A human-friendly name for the holdout
        Returns:
        name
      • setName

        public void setName​(@Nullable
                            java.lang.String name)
      • getKey

        @Nullable
        public java.lang.String getKey()
        A key that identifies the holdout
        Returns:
        key
      • setKey

        public void setKey​(@Nullable
                           java.lang.String key)
      • description

        public HoldoutPostRequest description​(@Nullable
                                              java.lang.String description)
      • getDescription

        @Nullable
        public java.lang.String getDescription()
        Description of the holdout
        Returns:
        description
      • setDescription

        public void setDescription​(@Nullable
                                   java.lang.String description)
      • randomizationunit

        public HoldoutPostRequest randomizationunit​(@Nullable
                                                    java.lang.String randomizationunit)
      • getRandomizationunit

        @Nullable
        public java.lang.String getRandomizationunit()
        The chosen randomization unit for the holdout base experiment
        Returns:
        randomizationunit
      • setRandomizationunit

        public void setRandomizationunit​(@Nullable
                                         java.lang.String randomizationunit)
      • attributes

        public HoldoutPostRequest attributes​(@Nullable
                                             java.util.List<java.lang.String> attributes)
      • addAttributesItem

        public HoldoutPostRequest addAttributesItem​(java.lang.String attributesItem)
      • getAttributes

        @Nullable
        public java.util.List<java.lang.String> getAttributes()
        The attributes that the holdout iteration's results can be sliced by
        Returns:
        attributes
      • setAttributes

        public void setAttributes​(@Nullable
                                  java.util.List<java.lang.String> attributes)
      • holdoutamount

        public HoldoutPostRequest holdoutamount​(@Nullable
                                                java.lang.String holdoutamount)
      • getHoldoutamount

        @Nullable
        public java.lang.String getHoldoutamount()
        Audience allocation for the holdout
        Returns:
        holdoutamount
      • setHoldoutamount

        public void setHoldoutamount​(@Nullable
                                     java.lang.String holdoutamount)
      • primarymetrickey

        public HoldoutPostRequest primarymetrickey​(@Nullable
                                                   java.lang.String primarymetrickey)
      • getPrimarymetrickey

        @Nullable
        public java.lang.String getPrimarymetrickey()
        The key of the primary metric for this holdout
        Returns:
        primarymetrickey
      • setPrimarymetrickey

        public void setPrimarymetrickey​(@Nullable
                                        java.lang.String primarymetrickey)
      • getMetrics

        @Nullable
        public java.util.List<MetricInput> getMetrics()
        Details on the metrics for this experiment
        Returns:
        metrics
      • setMetrics

        public void setMetrics​(@Nullable
                               java.util.List<MetricInput> metrics)
      • prerequisiteflagkey

        public HoldoutPostRequest prerequisiteflagkey​(@Nullable
                                                      java.lang.String prerequisiteflagkey)
      • getPrerequisiteflagkey

        @Nullable
        public java.lang.String getPrerequisiteflagkey()
        The key of the flag that the holdout is dependent on
        Returns:
        prerequisiteflagkey
      • setPrerequisiteflagkey

        public void setPrerequisiteflagkey​(@Nullable
                                           java.lang.String prerequisiteflagkey)
      • maintainerId

        public HoldoutPostRequest maintainerId​(@Nullable
                                               java.lang.String maintainerId)
      • getMaintainerId

        @Nullable
        public java.lang.String getMaintainerId()
        Maintainer id
        Returns:
        maintainerId
      • setMaintainerId

        public void setMaintainerId​(@Nullable
                                    java.lang.String maintainerId)
      • putAdditionalProperty

        public HoldoutPostRequest putAdditionalProperty​(java.lang.String key,
                                                        java.lang.Object value)
        Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
        Parameters:
        key - name of the property
        value - value of the property
        Returns:
        the HoldoutPostRequest instance itself
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
        Return the additional (undeclared) property.
        Returns:
        a map of objects
      • getAdditionalProperty

        public java.lang.Object getAdditionalProperty​(java.lang.String key)
        Return the additional (undeclared) property with the specified name.
        Parameters:
        key - name of the property
        Returns:
        an object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws java.io.IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        java.io.IOException - if the JSON Element is invalid with respect to HoldoutPostRequest
      • fromJson

        public static HoldoutPostRequest fromJson​(java.lang.String jsonString)
                                           throws java.io.IOException
        Create an instance of HoldoutPostRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of HoldoutPostRequest
        Throws:
        java.io.IOException - if the JSON string is invalid with respect to HoldoutPostRequest
      • toJson

        public java.lang.String toJson()
        Convert an instance of HoldoutPostRequest to an JSON string
        Returns:
        JSON string