Skip to content

Latest commit

 

History

History
128 lines (71 loc) · 4.21 KB

TargetingRuleModel.md

File metadata and controls

128 lines (71 loc) · 4.21 KB

TargetingRuleModel

Properties

Name Type Description Notes
Conditions Pointer to []ConditionModel The list of conditions that are combined with logical AND operators. It can be one of the following: - User condition - Segment condition - Prerequisite flag condition [optional]
PercentageOptions Pointer to []PercentageOptionModel The percentage options from where the evaluation process will choose a value based on the flag's percentage evaluation attribute. [optional]
Value Pointer to ValueModel [optional]

Methods

NewTargetingRuleModel

func NewTargetingRuleModel() *TargetingRuleModel

NewTargetingRuleModel instantiates a new TargetingRuleModel object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewTargetingRuleModelWithDefaults

func NewTargetingRuleModelWithDefaults() *TargetingRuleModel

NewTargetingRuleModelWithDefaults instantiates a new TargetingRuleModel object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetConditions

func (o *TargetingRuleModel) GetConditions() []ConditionModel

GetConditions returns the Conditions field if non-nil, zero value otherwise.

GetConditionsOk

func (o *TargetingRuleModel) GetConditionsOk() (*[]ConditionModel, bool)

GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetConditions

func (o *TargetingRuleModel) SetConditions(v []ConditionModel)

SetConditions sets Conditions field to given value.

HasConditions

func (o *TargetingRuleModel) HasConditions() bool

HasConditions returns a boolean if a field has been set.

SetConditionsNil

func (o *TargetingRuleModel) SetConditionsNil(b bool)

SetConditionsNil sets the value for Conditions to be an explicit nil

UnsetConditions

func (o *TargetingRuleModel) UnsetConditions()

UnsetConditions ensures that no value is present for Conditions, not even an explicit nil

GetPercentageOptions

func (o *TargetingRuleModel) GetPercentageOptions() []PercentageOptionModel

GetPercentageOptions returns the PercentageOptions field if non-nil, zero value otherwise.

GetPercentageOptionsOk

func (o *TargetingRuleModel) GetPercentageOptionsOk() (*[]PercentageOptionModel, bool)

GetPercentageOptionsOk returns a tuple with the PercentageOptions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPercentageOptions

func (o *TargetingRuleModel) SetPercentageOptions(v []PercentageOptionModel)

SetPercentageOptions sets PercentageOptions field to given value.

HasPercentageOptions

func (o *TargetingRuleModel) HasPercentageOptions() bool

HasPercentageOptions returns a boolean if a field has been set.

SetPercentageOptionsNil

func (o *TargetingRuleModel) SetPercentageOptionsNil(b bool)

SetPercentageOptionsNil sets the value for PercentageOptions to be an explicit nil

UnsetPercentageOptions

func (o *TargetingRuleModel) UnsetPercentageOptions()

UnsetPercentageOptions ensures that no value is present for PercentageOptions, not even an explicit nil

GetValue

func (o *TargetingRuleModel) GetValue() ValueModel

GetValue returns the Value field if non-nil, zero value otherwise.

GetValueOk

func (o *TargetingRuleModel) GetValueOk() (*ValueModel, bool)

GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetValue

func (o *TargetingRuleModel) SetValue(v ValueModel)

SetValue sets Value field to given value.

HasValue

func (o *TargetingRuleModel) HasValue() bool

HasValue returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]