Name | Type | Description | Notes |
---|---|---|---|
Name | string | The treatment name | |
Baseline | bool | Whether this treatment is the baseline to compare other treatments against | |
AllocationPercent | string | The percentage of traffic allocated to this treatment during the iteration | |
Parameters | []TreatmentParameterInput | Details on the flag and variation to use for this treatment |
func NewTreatmentInput(name string, baseline bool, allocationPercent string, parameters []TreatmentParameterInput, ) *TreatmentInput
NewTreatmentInput instantiates a new TreatmentInput 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
func NewTreatmentInputWithDefaults() *TreatmentInput
NewTreatmentInputWithDefaults instantiates a new TreatmentInput 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
func (o *TreatmentInput) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *TreatmentInput) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TreatmentInput) SetName(v string)
SetName sets Name field to given value.
func (o *TreatmentInput) GetBaseline() bool
GetBaseline returns the Baseline field if non-nil, zero value otherwise.
func (o *TreatmentInput) GetBaselineOk() (*bool, bool)
GetBaselineOk returns a tuple with the Baseline field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TreatmentInput) SetBaseline(v bool)
SetBaseline sets Baseline field to given value.
func (o *TreatmentInput) GetAllocationPercent() string
GetAllocationPercent returns the AllocationPercent field if non-nil, zero value otherwise.
func (o *TreatmentInput) GetAllocationPercentOk() (*string, bool)
GetAllocationPercentOk returns a tuple with the AllocationPercent field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TreatmentInput) SetAllocationPercent(v string)
SetAllocationPercent sets AllocationPercent field to given value.
func (o *TreatmentInput) GetParameters() []TreatmentParameterInput
GetParameters returns the Parameters field if non-nil, zero value otherwise.
func (o *TreatmentInput) GetParametersOk() (*[]TreatmentParameterInput, bool)
GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *TreatmentInput) SetParameters(v []TreatmentParameterInput)
SetParameters sets Parameters field to given value.