Class BooleanDefaults


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

      • SERIALIZED_NAME_TRUE_DISPLAY_NAME

        public static final java.lang.String SERIALIZED_NAME_TRUE_DISPLAY_NAME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_FALSE_DISPLAY_NAME

        public static final java.lang.String SERIALIZED_NAME_FALSE_DISPLAY_NAME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_TRUE_DESCRIPTION

        public static final java.lang.String SERIALIZED_NAME_TRUE_DESCRIPTION
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_FALSE_DESCRIPTION

        public static final java.lang.String SERIALIZED_NAME_FALSE_DESCRIPTION
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_ON_VARIATION

        public static final java.lang.String SERIALIZED_NAME_ON_VARIATION
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_OFF_VARIATION

        public static final java.lang.String SERIALIZED_NAME_OFF_VARIATION
        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

      • BooleanDefaults

        public BooleanDefaults()
    • Method Detail

      • trueDisplayName

        public BooleanDefaults trueDisplayName​(@Nullable
                                               java.lang.String trueDisplayName)
      • getTrueDisplayName

        @Nullable
        public java.lang.String getTrueDisplayName()
        The display name for the true variation, displayed in the LaunchDarkly user interface
        Returns:
        trueDisplayName
      • setTrueDisplayName

        public void setTrueDisplayName​(@Nullable
                                       java.lang.String trueDisplayName)
      • falseDisplayName

        public BooleanDefaults falseDisplayName​(@Nullable
                                                java.lang.String falseDisplayName)
      • getFalseDisplayName

        @Nullable
        public java.lang.String getFalseDisplayName()
        The display name for the false variation, displayed in the LaunchDarkly user interface
        Returns:
        falseDisplayName
      • setFalseDisplayName

        public void setFalseDisplayName​(@Nullable
                                        java.lang.String falseDisplayName)
      • trueDescription

        public BooleanDefaults trueDescription​(@Nullable
                                               java.lang.String trueDescription)
      • getTrueDescription

        @Nullable
        public java.lang.String getTrueDescription()
        The description for the true variation
        Returns:
        trueDescription
      • setTrueDescription

        public void setTrueDescription​(@Nullable
                                       java.lang.String trueDescription)
      • falseDescription

        public BooleanDefaults falseDescription​(@Nullable
                                                java.lang.String falseDescription)
      • getFalseDescription

        @Nullable
        public java.lang.String getFalseDescription()
        The description for the false variation
        Returns:
        falseDescription
      • setFalseDescription

        public void setFalseDescription​(@Nullable
                                        java.lang.String falseDescription)
      • onVariation

        public BooleanDefaults onVariation​(@Nullable
                                           java.lang.Integer onVariation)
      • getOnVariation

        @Nullable
        public java.lang.Integer getOnVariation()
        The variation index of the flag variation to use for the default targeting behavior when a flag's targeting is on and the target did not match any rules
        Returns:
        onVariation
      • setOnVariation

        public void setOnVariation​(@Nullable
                                   java.lang.Integer onVariation)
      • offVariation

        public BooleanDefaults offVariation​(@Nullable
                                            java.lang.Integer offVariation)
      • getOffVariation

        @Nullable
        public java.lang.Integer getOffVariation()
        The variation index of the flag variation to use for the default targeting behavior when a flag's targeting is off
        Returns:
        offVariation
      • setOffVariation

        public void setOffVariation​(@Nullable
                                    java.lang.Integer offVariation)
      • putAdditionalProperty

        public BooleanDefaults 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 BooleanDefaults 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 BooleanDefaults
      • fromJson

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

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