1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_traffic_control_data.go 25.44 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2年前 . update
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820
/*
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)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/konglinglong/openapi.git
git@gitee.com:konglinglong/openapi.git
konglinglong
openapi
openapi
e403a3c726a4

搜索帮助