Skip to content

EditRuleEntity

Properties

Name Type Description Notes
Applications []int32 Application ID list can be obtained from 'Get application list' interface.
Qos bool Enable qos. true:enable / false:disable
QosClass Pointer to int32 The Class value selected in the Qos Class configuration, required when qos is enable. Valid values is 0: Others, 1: Class 1, 2: Class 2, 3: Class 3. [optional]
RuleName string Rule name. It should be 1 - 128 characters
Schedule string Schedule profile ID, which can be queried by request: Get time range profile list.

Methods

NewEditRuleEntity

func NewEditRuleEntity(applications []int32, qos bool, ruleName string, schedule string, ) *EditRuleEntity

NewEditRuleEntity instantiates a new EditRuleEntity 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

NewEditRuleEntityWithDefaults

func NewEditRuleEntityWithDefaults() *EditRuleEntity

NewEditRuleEntityWithDefaults instantiates a new EditRuleEntity 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

GetApplications

func (o *EditRuleEntity) GetApplications() []int32

GetApplications returns the Applications field if non-nil, zero value otherwise.

GetApplicationsOk

func (o *EditRuleEntity) GetApplicationsOk() (*[]int32, bool)

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

SetApplications

func (o *EditRuleEntity) SetApplications(v []int32)

SetApplications sets Applications field to given value.

GetQos

func (o *EditRuleEntity) GetQos() bool

GetQos returns the Qos field if non-nil, zero value otherwise.

GetQosOk

func (o *EditRuleEntity) GetQosOk() (*bool, bool)

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

SetQos

func (o *EditRuleEntity) SetQos(v bool)

SetQos sets Qos field to given value.

GetQosClass

func (o *EditRuleEntity) GetQosClass() int32

GetQosClass returns the QosClass field if non-nil, zero value otherwise.

GetQosClassOk

func (o *EditRuleEntity) GetQosClassOk() (*int32, bool)

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

SetQosClass

func (o *EditRuleEntity) SetQosClass(v int32)

SetQosClass sets QosClass field to given value.

HasQosClass

func (o *EditRuleEntity) HasQosClass() bool

HasQosClass returns a boolean if a field has been set.

GetRuleName

func (o *EditRuleEntity) GetRuleName() string

GetRuleName returns the RuleName field if non-nil, zero value otherwise.

GetRuleNameOk

func (o *EditRuleEntity) GetRuleNameOk() (*string, bool)

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

SetRuleName

func (o *EditRuleEntity) SetRuleName(v string)

SetRuleName sets RuleName field to given value.

GetSchedule

func (o *EditRuleEntity) GetSchedule() string

GetSchedule returns the Schedule field if non-nil, zero value otherwise.

GetScheduleOk

func (o *EditRuleEntity) GetScheduleOk() (*string, bool)

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

SetSchedule

func (o *EditRuleEntity) SetSchedule(v string)

SetSchedule sets Schedule field to given value.

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