代码拉取完成,页面将自动刷新
/*
Npcf_SMPolicyControl API
Session Management Policy Control Service © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.4
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Npcf_SMPolicyControl
import (
"encoding/json"
"fmt"
)
// checks if the TrafficControlData type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TrafficControlData{}
// TrafficControlData Contains parameters determining how flows associated with a PCC Rule are treated (e.g. blocked, redirected, etc).
type TrafficControlData struct {
// Univocally identifies the traffic control policy data within a PDU session.
TcId string `json:"tcId"`
FlowStatus *FlowStatus `json:"flowStatus,omitempty"`
RedirectInfo *RedirectInformation `json:"redirectInfo,omitempty"`
AddRedirectInfo []RedirectInformation `json:"addRedirectInfo,omitempty"`
// Indicates whether applicat'on's start or stop notification is to be muted.
MuteNotif *bool `json:"muteNotif,omitempty"`
// Reference to a pre-configured traffic steering policy for downlink traffic at the SMF.
TrafficSteeringPolIdDl NullableString `json:"trafficSteeringPolIdDl,omitempty"`
// Reference to a pre-configured traffic steering policy for uplink traffic at the SMF.
TrafficSteeringPolIdUl NullableString `json:"trafficSteeringPolIdUl,omitempty"`
// A list of location which the traffic shall be routed to for the AF request
RouteToLocs []RouteToLocation `json:"routeToLocs,omitempty"`
// Unsigned Integer, i.e. only value 0 and integers above 0 are permissible with the OpenAPI 'nullable: true' property.
MaxAllowedUpLat NullableInt32 `json:"maxAllowedUpLat,omitempty"`
// Contains EAS IP replacement information.
EasIpReplaceInfos []EasIpReplacementInfo `json:"easIpReplaceInfos,omitempty"`
TraffCorreInd *bool `json:"traffCorreInd,omitempty"`
// Indicates whether simultaneous connectivity should be temporarily maintained for the source and target PSA.
SimConnInd *bool `json:"simConnInd,omitempty"`
// indicating a time in seconds.
SimConnTerm *int32 `json:"simConnTerm,omitempty"`
UpPathChgEvent NullableUpPathChgEvent `json:"upPathChgEvent,omitempty"`
SteerFun *SteeringFunctionality `json:"steerFun,omitempty"`
SteerModeDl *SteeringMode `json:"steerModeDl,omitempty"`
SteerModeUl *SteeringMode `json:"steerModeUl,omitempty"`
MulAccCtrl *MulticastAccessControl `json:"mulAccCtrl,omitempty"`
}
type _TrafficControlData TrafficControlData
// NewTrafficControlData instantiates a new TrafficControlData 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 NewTrafficControlData(tcId string) *TrafficControlData {
this := TrafficControlData{}
this.TcId = tcId
return &this
}
// NewTrafficControlDataWithDefaults instantiates a new TrafficControlData 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 NewTrafficControlDataWithDefaults() *TrafficControlData {
this := TrafficControlData{}
return &this
}
// GetTcId returns the TcId field value
func (o *TrafficControlData) GetTcId() string {
if o == nil {
var ret string
return ret
}
return o.TcId
}
// GetTcIdOk returns a tuple with the TcId field value
// and a boolean to check if the value has been set.
func (o *TrafficControlData) GetTcIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.TcId, true
}
// SetTcId sets field value
func (o *TrafficControlData) SetTcId(v string) {
o.TcId = v
}
// GetFlowStatus returns the FlowStatus field value if set, zero value otherwise.
func (o *TrafficControlData) GetFlowStatus() FlowStatus {
if o == nil || IsNil(o.FlowStatus) {
var ret FlowStatus
return ret
}
return *o.FlowStatus
}
// GetFlowStatusOk returns a tuple with the FlowStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficControlData) GetFlowStatusOk() (*FlowStatus, bool) {
if o == nil || IsNil(o.FlowStatus) {
return nil, false
}
return o.FlowStatus, true
}
// HasFlowStatus returns a boolean if a field has been set.
func (o *TrafficControlData) HasFlowStatus() bool {
if o != nil && !IsNil(o.FlowStatus) {
return true
}
return false
}
// SetFlowStatus gets a reference to the given FlowStatus and assigns it to the FlowStatus field.
func (o *TrafficControlData) SetFlowStatus(v FlowStatus) {
o.FlowStatus = &v
}
// GetRedirectInfo returns the RedirectInfo field value if set, zero value otherwise.
func (o *TrafficControlData) GetRedirectInfo() RedirectInformation {
if o == nil || IsNil(o.RedirectInfo) {
var ret RedirectInformation
return ret
}
return *o.RedirectInfo
}
// GetRedirectInfoOk returns a tuple with the RedirectInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficControlData) GetRedirectInfoOk() (*RedirectInformation, bool) {
if o == nil || IsNil(o.RedirectInfo) {
return nil, false
}
return o.RedirectInfo, true
}
// HasRedirectInfo returns a boolean if a field has been set.
func (o *TrafficControlData) HasRedirectInfo() bool {
if o != nil && !IsNil(o.RedirectInfo) {
return true
}
return false
}
// SetRedirectInfo gets a reference to the given RedirectInformation and assigns it to the RedirectInfo field.
func (o *TrafficControlData) SetRedirectInfo(v RedirectInformation) {
o.RedirectInfo = &v
}
// GetAddRedirectInfo returns the AddRedirectInfo field value if set, zero value otherwise.
func (o *TrafficControlData) GetAddRedirectInfo() []RedirectInformation {
if o == nil || IsNil(o.AddRedirectInfo) {
var ret []RedirectInformation
return ret
}
return o.AddRedirectInfo
}
// GetAddRedirectInfoOk returns a tuple with the AddRedirectInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficControlData) GetAddRedirectInfoOk() ([]RedirectInformation, bool) {
if o == nil || IsNil(o.AddRedirectInfo) {
return nil, false
}
return o.AddRedirectInfo, true
}
// HasAddRedirectInfo returns a boolean if a field has been set.
func (o *TrafficControlData) HasAddRedirectInfo() bool {
if o != nil && !IsNil(o.AddRedirectInfo) {
return true
}
return false
}
// SetAddRedirectInfo gets a reference to the given []RedirectInformation and assigns it to the AddRedirectInfo field.
func (o *TrafficControlData) SetAddRedirectInfo(v []RedirectInformation) {
o.AddRedirectInfo = v
}
// GetMuteNotif returns the MuteNotif field value if set, zero value otherwise.
func (o *TrafficControlData) GetMuteNotif() bool {
if o == nil || IsNil(o.MuteNotif) {
var ret bool
return ret
}
return *o.MuteNotif
}
// GetMuteNotifOk returns a tuple with the MuteNotif field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficControlData) GetMuteNotifOk() (*bool, bool) {
if o == nil || IsNil(o.MuteNotif) {
return nil, false
}
return o.MuteNotif, true
}
// HasMuteNotif returns a boolean if a field has been set.
func (o *TrafficControlData) HasMuteNotif() bool {
if o != nil && !IsNil(o.MuteNotif) {
return true
}
return false
}
// SetMuteNotif gets a reference to the given bool and assigns it to the MuteNotif field.
func (o *TrafficControlData) SetMuteNotif(v bool) {
o.MuteNotif = &v
}
// GetTrafficSteeringPolIdDl returns the TrafficSteeringPolIdDl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *TrafficControlData) GetTrafficSteeringPolIdDl() string {
if o == nil || IsNil(o.TrafficSteeringPolIdDl.Get()) {
var ret string
return ret
}
return *o.TrafficSteeringPolIdDl.Get()
}
// GetTrafficSteeringPolIdDlOk returns a tuple with the TrafficSteeringPolIdDl field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *TrafficControlData) GetTrafficSteeringPolIdDlOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.TrafficSteeringPolIdDl.Get(), o.TrafficSteeringPolIdDl.IsSet()
}
// HasTrafficSteeringPolIdDl returns a boolean if a field has been set.
func (o *TrafficControlData) HasTrafficSteeringPolIdDl() bool {
if o != nil && o.TrafficSteeringPolIdDl.IsSet() {
return true
}
return false
}
// SetTrafficSteeringPolIdDl gets a reference to the given NullableString and assigns it to the TrafficSteeringPolIdDl field.
func (o *TrafficControlData) SetTrafficSteeringPolIdDl(v string) {
o.TrafficSteeringPolIdDl.Set(&v)
}
// SetTrafficSteeringPolIdDlNil sets the value for TrafficSteeringPolIdDl to be an explicit nil
func (o *TrafficControlData) SetTrafficSteeringPolIdDlNil() {
o.TrafficSteeringPolIdDl.Set(nil)
}
// UnsetTrafficSteeringPolIdDl ensures that no value is present for TrafficSteeringPolIdDl, not even an explicit nil
func (o *TrafficControlData) UnsetTrafficSteeringPolIdDl() {
o.TrafficSteeringPolIdDl.Unset()
}
// GetTrafficSteeringPolIdUl returns the TrafficSteeringPolIdUl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *TrafficControlData) GetTrafficSteeringPolIdUl() string {
if o == nil || IsNil(o.TrafficSteeringPolIdUl.Get()) {
var ret string
return ret
}
return *o.TrafficSteeringPolIdUl.Get()
}
// GetTrafficSteeringPolIdUlOk returns a tuple with the TrafficSteeringPolIdUl field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *TrafficControlData) GetTrafficSteeringPolIdUlOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.TrafficSteeringPolIdUl.Get(), o.TrafficSteeringPolIdUl.IsSet()
}
// HasTrafficSteeringPolIdUl returns a boolean if a field has been set.
func (o *TrafficControlData) HasTrafficSteeringPolIdUl() bool {
if o != nil && o.TrafficSteeringPolIdUl.IsSet() {
return true
}
return false
}
// SetTrafficSteeringPolIdUl gets a reference to the given NullableString and assigns it to the TrafficSteeringPolIdUl field.
func (o *TrafficControlData) SetTrafficSteeringPolIdUl(v string) {
o.TrafficSteeringPolIdUl.Set(&v)
}
// SetTrafficSteeringPolIdUlNil sets the value for TrafficSteeringPolIdUl to be an explicit nil
func (o *TrafficControlData) SetTrafficSteeringPolIdUlNil() {
o.TrafficSteeringPolIdUl.Set(nil)
}
// UnsetTrafficSteeringPolIdUl ensures that no value is present for TrafficSteeringPolIdUl, not even an explicit nil
func (o *TrafficControlData) UnsetTrafficSteeringPolIdUl() {
o.TrafficSteeringPolIdUl.Unset()
}
// GetRouteToLocs returns the RouteToLocs field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *TrafficControlData) GetRouteToLocs() []RouteToLocation {
if o == nil {
var ret []RouteToLocation
return ret
}
return o.RouteToLocs
}
// GetRouteToLocsOk returns a tuple with the RouteToLocs field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *TrafficControlData) GetRouteToLocsOk() ([]RouteToLocation, bool) {
if o == nil || IsNil(o.RouteToLocs) {
return nil, false
}
return o.RouteToLocs, true
}
// HasRouteToLocs returns a boolean if a field has been set.
func (o *TrafficControlData) HasRouteToLocs() bool {
if o != nil && IsNil(o.RouteToLocs) {
return true
}
return false
}
// SetRouteToLocs gets a reference to the given []RouteToLocation and assigns it to the RouteToLocs field.
func (o *TrafficControlData) SetRouteToLocs(v []RouteToLocation) {
o.RouteToLocs = v
}
// GetMaxAllowedUpLat returns the MaxAllowedUpLat field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *TrafficControlData) GetMaxAllowedUpLat() int32 {
if o == nil || IsNil(o.MaxAllowedUpLat.Get()) {
var ret int32
return ret
}
return *o.MaxAllowedUpLat.Get()
}
// GetMaxAllowedUpLatOk returns a tuple with the MaxAllowedUpLat field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *TrafficControlData) GetMaxAllowedUpLatOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.MaxAllowedUpLat.Get(), o.MaxAllowedUpLat.IsSet()
}
// HasMaxAllowedUpLat returns a boolean if a field has been set.
func (o *TrafficControlData) HasMaxAllowedUpLat() bool {
if o != nil && o.MaxAllowedUpLat.IsSet() {
return true
}
return false
}
// SetMaxAllowedUpLat gets a reference to the given NullableInt32 and assigns it to the MaxAllowedUpLat field.
func (o *TrafficControlData) SetMaxAllowedUpLat(v int32) {
o.MaxAllowedUpLat.Set(&v)
}
// SetMaxAllowedUpLatNil sets the value for MaxAllowedUpLat to be an explicit nil
func (o *TrafficControlData) SetMaxAllowedUpLatNil() {
o.MaxAllowedUpLat.Set(nil)
}
// UnsetMaxAllowedUpLat ensures that no value is present for MaxAllowedUpLat, not even an explicit nil
func (o *TrafficControlData) UnsetMaxAllowedUpLat() {
o.MaxAllowedUpLat.Unset()
}
// GetEasIpReplaceInfos returns the EasIpReplaceInfos field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *TrafficControlData) GetEasIpReplaceInfos() []EasIpReplacementInfo {
if o == nil {
var ret []EasIpReplacementInfo
return ret
}
return o.EasIpReplaceInfos
}
// GetEasIpReplaceInfosOk returns a tuple with the EasIpReplaceInfos field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *TrafficControlData) GetEasIpReplaceInfosOk() ([]EasIpReplacementInfo, bool) {
if o == nil || IsNil(o.EasIpReplaceInfos) {
return nil, false
}
return o.EasIpReplaceInfos, true
}
// HasEasIpReplaceInfos returns a boolean if a field has been set.
func (o *TrafficControlData) HasEasIpReplaceInfos() bool {
if o != nil && IsNil(o.EasIpReplaceInfos) {
return true
}
return false
}
// SetEasIpReplaceInfos gets a reference to the given []EasIpReplacementInfo and assigns it to the EasIpReplaceInfos field.
func (o *TrafficControlData) SetEasIpReplaceInfos(v []EasIpReplacementInfo) {
o.EasIpReplaceInfos = v
}
// GetTraffCorreInd returns the TraffCorreInd field value if set, zero value otherwise.
func (o *TrafficControlData) GetTraffCorreInd() bool {
if o == nil || IsNil(o.TraffCorreInd) {
var ret bool
return ret
}
return *o.TraffCorreInd
}
// GetTraffCorreIndOk returns a tuple with the TraffCorreInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficControlData) GetTraffCorreIndOk() (*bool, bool) {
if o == nil || IsNil(o.TraffCorreInd) {
return nil, false
}
return o.TraffCorreInd, true
}
// HasTraffCorreInd returns a boolean if a field has been set.
func (o *TrafficControlData) HasTraffCorreInd() bool {
if o != nil && !IsNil(o.TraffCorreInd) {
return true
}
return false
}
// SetTraffCorreInd gets a reference to the given bool and assigns it to the TraffCorreInd field.
func (o *TrafficControlData) SetTraffCorreInd(v bool) {
o.TraffCorreInd = &v
}
// GetSimConnInd returns the SimConnInd field value if set, zero value otherwise.
func (o *TrafficControlData) GetSimConnInd() bool {
if o == nil || IsNil(o.SimConnInd) {
var ret bool
return ret
}
return *o.SimConnInd
}
// GetSimConnIndOk returns a tuple with the SimConnInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficControlData) GetSimConnIndOk() (*bool, bool) {
if o == nil || IsNil(o.SimConnInd) {
return nil, false
}
return o.SimConnInd, true
}
// HasSimConnInd returns a boolean if a field has been set.
func (o *TrafficControlData) HasSimConnInd() bool {
if o != nil && !IsNil(o.SimConnInd) {
return true
}
return false
}
// SetSimConnInd gets a reference to the given bool and assigns it to the SimConnInd field.
func (o *TrafficControlData) SetSimConnInd(v bool) {
o.SimConnInd = &v
}
// GetSimConnTerm returns the SimConnTerm field value if set, zero value otherwise.
func (o *TrafficControlData) GetSimConnTerm() int32 {
if o == nil || IsNil(o.SimConnTerm) {
var ret int32
return ret
}
return *o.SimConnTerm
}
// GetSimConnTermOk returns a tuple with the SimConnTerm field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficControlData) GetSimConnTermOk() (*int32, bool) {
if o == nil || IsNil(o.SimConnTerm) {
return nil, false
}
return o.SimConnTerm, true
}
// HasSimConnTerm returns a boolean if a field has been set.
func (o *TrafficControlData) HasSimConnTerm() bool {
if o != nil && !IsNil(o.SimConnTerm) {
return true
}
return false
}
// SetSimConnTerm gets a reference to the given int32 and assigns it to the SimConnTerm field.
func (o *TrafficControlData) SetSimConnTerm(v int32) {
o.SimConnTerm = &v
}
// GetUpPathChgEvent returns the UpPathChgEvent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *TrafficControlData) GetUpPathChgEvent() UpPathChgEvent {
if o == nil || IsNil(o.UpPathChgEvent.Get()) {
var ret UpPathChgEvent
return ret
}
return *o.UpPathChgEvent.Get()
}
// GetUpPathChgEventOk returns a tuple with the UpPathChgEvent field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *TrafficControlData) GetUpPathChgEventOk() (*UpPathChgEvent, bool) {
if o == nil {
return nil, false
}
return o.UpPathChgEvent.Get(), o.UpPathChgEvent.IsSet()
}
// HasUpPathChgEvent returns a boolean if a field has been set.
func (o *TrafficControlData) HasUpPathChgEvent() bool {
if o != nil && o.UpPathChgEvent.IsSet() {
return true
}
return false
}
// SetUpPathChgEvent gets a reference to the given NullableUpPathChgEvent and assigns it to the UpPathChgEvent field.
func (o *TrafficControlData) SetUpPathChgEvent(v UpPathChgEvent) {
o.UpPathChgEvent.Set(&v)
}
// SetUpPathChgEventNil sets the value for UpPathChgEvent to be an explicit nil
func (o *TrafficControlData) SetUpPathChgEventNil() {
o.UpPathChgEvent.Set(nil)
}
// UnsetUpPathChgEvent ensures that no value is present for UpPathChgEvent, not even an explicit nil
func (o *TrafficControlData) UnsetUpPathChgEvent() {
o.UpPathChgEvent.Unset()
}
// GetSteerFun returns the SteerFun field value if set, zero value otherwise.
func (o *TrafficControlData) GetSteerFun() SteeringFunctionality {
if o == nil || IsNil(o.SteerFun) {
var ret SteeringFunctionality
return ret
}
return *o.SteerFun
}
// GetSteerFunOk returns a tuple with the SteerFun field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficControlData) GetSteerFunOk() (*SteeringFunctionality, bool) {
if o == nil || IsNil(o.SteerFun) {
return nil, false
}
return o.SteerFun, true
}
// HasSteerFun returns a boolean if a field has been set.
func (o *TrafficControlData) HasSteerFun() bool {
if o != nil && !IsNil(o.SteerFun) {
return true
}
return false
}
// SetSteerFun gets a reference to the given SteeringFunctionality and assigns it to the SteerFun field.
func (o *TrafficControlData) SetSteerFun(v SteeringFunctionality) {
o.SteerFun = &v
}
// GetSteerModeDl returns the SteerModeDl field value if set, zero value otherwise.
func (o *TrafficControlData) GetSteerModeDl() SteeringMode {
if o == nil || IsNil(o.SteerModeDl) {
var ret SteeringMode
return ret
}
return *o.SteerModeDl
}
// GetSteerModeDlOk returns a tuple with the SteerModeDl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficControlData) GetSteerModeDlOk() (*SteeringMode, bool) {
if o == nil || IsNil(o.SteerModeDl) {
return nil, false
}
return o.SteerModeDl, true
}
// HasSteerModeDl returns a boolean if a field has been set.
func (o *TrafficControlData) HasSteerModeDl() bool {
if o != nil && !IsNil(o.SteerModeDl) {
return true
}
return false
}
// SetSteerModeDl gets a reference to the given SteeringMode and assigns it to the SteerModeDl field.
func (o *TrafficControlData) SetSteerModeDl(v SteeringMode) {
o.SteerModeDl = &v
}
// GetSteerModeUl returns the SteerModeUl field value if set, zero value otherwise.
func (o *TrafficControlData) GetSteerModeUl() SteeringMode {
if o == nil || IsNil(o.SteerModeUl) {
var ret SteeringMode
return ret
}
return *o.SteerModeUl
}
// GetSteerModeUlOk returns a tuple with the SteerModeUl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficControlData) GetSteerModeUlOk() (*SteeringMode, bool) {
if o == nil || IsNil(o.SteerModeUl) {
return nil, false
}
return o.SteerModeUl, true
}
// HasSteerModeUl returns a boolean if a field has been set.
func (o *TrafficControlData) HasSteerModeUl() bool {
if o != nil && !IsNil(o.SteerModeUl) {
return true
}
return false
}
// SetSteerModeUl gets a reference to the given SteeringMode and assigns it to the SteerModeUl field.
func (o *TrafficControlData) SetSteerModeUl(v SteeringMode) {
o.SteerModeUl = &v
}
// GetMulAccCtrl returns the MulAccCtrl field value if set, zero value otherwise.
func (o *TrafficControlData) GetMulAccCtrl() MulticastAccessControl {
if o == nil || IsNil(o.MulAccCtrl) {
var ret MulticastAccessControl
return ret
}
return *o.MulAccCtrl
}
// GetMulAccCtrlOk returns a tuple with the MulAccCtrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrafficControlData) GetMulAccCtrlOk() (*MulticastAccessControl, bool) {
if o == nil || IsNil(o.MulAccCtrl) {
return nil, false
}
return o.MulAccCtrl, true
}
// HasMulAccCtrl returns a boolean if a field has been set.
func (o *TrafficControlData) HasMulAccCtrl() bool {
if o != nil && !IsNil(o.MulAccCtrl) {
return true
}
return false
}
// SetMulAccCtrl gets a reference to the given MulticastAccessControl and assigns it to the MulAccCtrl field.
func (o *TrafficControlData) SetMulAccCtrl(v MulticastAccessControl) {
o.MulAccCtrl = &v
}
func (o TrafficControlData) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o TrafficControlData) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["tcId"] = o.TcId
if !IsNil(o.FlowStatus) {
toSerialize["flowStatus"] = o.FlowStatus
}
if !IsNil(o.RedirectInfo) {
toSerialize["redirectInfo"] = o.RedirectInfo
}
if !IsNil(o.AddRedirectInfo) {
toSerialize["addRedirectInfo"] = o.AddRedirectInfo
}
if !IsNil(o.MuteNotif) {
toSerialize["muteNotif"] = o.MuteNotif
}
if o.TrafficSteeringPolIdDl.IsSet() {
toSerialize["trafficSteeringPolIdDl"] = o.TrafficSteeringPolIdDl.Get()
}
if o.TrafficSteeringPolIdUl.IsSet() {
toSerialize["trafficSteeringPolIdUl"] = o.TrafficSteeringPolIdUl.Get()
}
if o.RouteToLocs != nil {
toSerialize["routeToLocs"] = o.RouteToLocs
}
if o.MaxAllowedUpLat.IsSet() {
toSerialize["maxAllowedUpLat"] = o.MaxAllowedUpLat.Get()
}
if o.EasIpReplaceInfos != nil {
toSerialize["easIpReplaceInfos"] = o.EasIpReplaceInfos
}
if !IsNil(o.TraffCorreInd) {
toSerialize["traffCorreInd"] = o.TraffCorreInd
}
if !IsNil(o.SimConnInd) {
toSerialize["simConnInd"] = o.SimConnInd
}
if !IsNil(o.SimConnTerm) {
toSerialize["simConnTerm"] = o.SimConnTerm
}
if o.UpPathChgEvent.IsSet() {
toSerialize["upPathChgEvent"] = o.UpPathChgEvent.Get()
}
if !IsNil(o.SteerFun) {
toSerialize["steerFun"] = o.SteerFun
}
if !IsNil(o.SteerModeDl) {
toSerialize["steerModeDl"] = o.SteerModeDl
}
if !IsNil(o.SteerModeUl) {
toSerialize["steerModeUl"] = o.SteerModeUl
}
if !IsNil(o.MulAccCtrl) {
toSerialize["mulAccCtrl"] = o.MulAccCtrl
}
return toSerialize, nil
}
func (o *TrafficControlData) UnmarshalJSON(bytes []byte) (err error) {
// This validates that all required properties are included in the JSON object
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"tcId",
}
allProperties := make(map[string]interface{})
err = json.Unmarshal(bytes, &allProperties)
if err != nil {
return err
}
for _, requiredProperty := range requiredProperties {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
varTrafficControlData := _TrafficControlData{}
err = json.Unmarshal(bytes, &varTrafficControlData)
if err != nil {
return err
}
*o = TrafficControlData(varTrafficControlData)
return err
}
type NullableTrafficControlData struct {
value *TrafficControlData
isSet bool
}
func (v NullableTrafficControlData) Get() *TrafficControlData {
return v.value
}
func (v *NullableTrafficControlData) Set(val *TrafficControlData) {
v.value = val
v.isSet = true
}
func (v NullableTrafficControlData) IsSet() bool {
return v.isSet
}
func (v *NullableTrafficControlData) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTrafficControlData(val *TrafficControlData) *NullableTrafficControlData {
return &NullableTrafficControlData{value: val, isSet: true}
}
func (v NullableTrafficControlData) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTrafficControlData) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。