1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_ue_camping_rep.go 11.25 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
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"
)
// checks if the UeCampingRep type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &UeCampingRep{}
// UeCampingRep Contains the current applicable values corresponding to the policy control request triggers.
type UeCampingRep struct {
AccessType *AccessType `json:"accessType,omitempty"`
RatType *RatType `json:"ratType,omitempty"`
ServNfId *ServingNfIdentity `json:"servNfId,omitempty"`
ServingNetwork *PlmnIdNid `json:"servingNetwork,omitempty"`
UserLocationInfo *UserLocation `json:"userLocationInfo,omitempty"`
// String with format \"time-numoffset\" optionally appended by \"daylightSavingTime\", where - \"time-numoffset\" shall represent the time zone adjusted for daylight saving time and be encoded as time-numoffset as defined in clause 5.6 of IETF RFC 3339; - \"daylightSavingTime\" shall represent the adjustment that has been made and shall be encoded as \"+1\" or \"+2\" for a +1 or +2 hours adjustment. The example is for 8 hours behind UTC, +1 hour adjustment for Daylight Saving Time.
UeTimeZone *string `json:"ueTimeZone,omitempty"`
NetLocAccSupp *NetLocAccessSupport `json:"netLocAccSupp,omitempty"`
SatBackhaulCategory *SatelliteBackhaulCategory `json:"satBackhaulCategory,omitempty"`
}
// NewUeCampingRep instantiates a new UeCampingRep 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 NewUeCampingRep() *UeCampingRep {
this := UeCampingRep{}
return &this
}
// NewUeCampingRepWithDefaults instantiates a new UeCampingRep 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 NewUeCampingRepWithDefaults() *UeCampingRep {
this := UeCampingRep{}
return &this
}
// GetAccessType returns the AccessType field value if set, zero value otherwise.
func (o *UeCampingRep) GetAccessType() AccessType {
if o == nil || IsNil(o.AccessType) {
var ret AccessType
return ret
}
return *o.AccessType
}
// GetAccessTypeOk returns a tuple with the AccessType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UeCampingRep) GetAccessTypeOk() (*AccessType, bool) {
if o == nil || IsNil(o.AccessType) {
return nil, false
}
return o.AccessType, true
}
// HasAccessType returns a boolean if a field has been set.
func (o *UeCampingRep) HasAccessType() bool {
if o != nil && !IsNil(o.AccessType) {
return true
}
return false
}
// SetAccessType gets a reference to the given AccessType and assigns it to the AccessType field.
func (o *UeCampingRep) SetAccessType(v AccessType) {
o.AccessType = &v
}
// GetRatType returns the RatType field value if set, zero value otherwise.
func (o *UeCampingRep) GetRatType() RatType {
if o == nil || IsNil(o.RatType) {
var ret RatType
return ret
}
return *o.RatType
}
// GetRatTypeOk returns a tuple with the RatType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UeCampingRep) GetRatTypeOk() (*RatType, bool) {
if o == nil || IsNil(o.RatType) {
return nil, false
}
return o.RatType, true
}
// HasRatType returns a boolean if a field has been set.
func (o *UeCampingRep) HasRatType() bool {
if o != nil && !IsNil(o.RatType) {
return true
}
return false
}
// SetRatType gets a reference to the given RatType and assigns it to the RatType field.
func (o *UeCampingRep) SetRatType(v RatType) {
o.RatType = &v
}
// GetServNfId returns the ServNfId field value if set, zero value otherwise.
func (o *UeCampingRep) GetServNfId() ServingNfIdentity {
if o == nil || IsNil(o.ServNfId) {
var ret ServingNfIdentity
return ret
}
return *o.ServNfId
}
// GetServNfIdOk returns a tuple with the ServNfId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UeCampingRep) GetServNfIdOk() (*ServingNfIdentity, bool) {
if o == nil || IsNil(o.ServNfId) {
return nil, false
}
return o.ServNfId, true
}
// HasServNfId returns a boolean if a field has been set.
func (o *UeCampingRep) HasServNfId() bool {
if o != nil && !IsNil(o.ServNfId) {
return true
}
return false
}
// SetServNfId gets a reference to the given ServingNfIdentity and assigns it to the ServNfId field.
func (o *UeCampingRep) SetServNfId(v ServingNfIdentity) {
o.ServNfId = &v
}
// GetServingNetwork returns the ServingNetwork field value if set, zero value otherwise.
func (o *UeCampingRep) GetServingNetwork() PlmnIdNid {
if o == nil || IsNil(o.ServingNetwork) {
var ret PlmnIdNid
return ret
}
return *o.ServingNetwork
}
// GetServingNetworkOk returns a tuple with the ServingNetwork field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UeCampingRep) GetServingNetworkOk() (*PlmnIdNid, bool) {
if o == nil || IsNil(o.ServingNetwork) {
return nil, false
}
return o.ServingNetwork, true
}
// HasServingNetwork returns a boolean if a field has been set.
func (o *UeCampingRep) HasServingNetwork() bool {
if o != nil && !IsNil(o.ServingNetwork) {
return true
}
return false
}
// SetServingNetwork gets a reference to the given PlmnIdNid and assigns it to the ServingNetwork field.
func (o *UeCampingRep) SetServingNetwork(v PlmnIdNid) {
o.ServingNetwork = &v
}
// GetUserLocationInfo returns the UserLocationInfo field value if set, zero value otherwise.
func (o *UeCampingRep) GetUserLocationInfo() UserLocation {
if o == nil || IsNil(o.UserLocationInfo) {
var ret UserLocation
return ret
}
return *o.UserLocationInfo
}
// GetUserLocationInfoOk returns a tuple with the UserLocationInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UeCampingRep) GetUserLocationInfoOk() (*UserLocation, bool) {
if o == nil || IsNil(o.UserLocationInfo) {
return nil, false
}
return o.UserLocationInfo, true
}
// HasUserLocationInfo returns a boolean if a field has been set.
func (o *UeCampingRep) HasUserLocationInfo() bool {
if o != nil && !IsNil(o.UserLocationInfo) {
return true
}
return false
}
// SetUserLocationInfo gets a reference to the given UserLocation and assigns it to the UserLocationInfo field.
func (o *UeCampingRep) SetUserLocationInfo(v UserLocation) {
o.UserLocationInfo = &v
}
// GetUeTimeZone returns the UeTimeZone field value if set, zero value otherwise.
func (o *UeCampingRep) GetUeTimeZone() string {
if o == nil || IsNil(o.UeTimeZone) {
var ret string
return ret
}
return *o.UeTimeZone
}
// GetUeTimeZoneOk returns a tuple with the UeTimeZone field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UeCampingRep) GetUeTimeZoneOk() (*string, bool) {
if o == nil || IsNil(o.UeTimeZone) {
return nil, false
}
return o.UeTimeZone, true
}
// HasUeTimeZone returns a boolean if a field has been set.
func (o *UeCampingRep) HasUeTimeZone() bool {
if o != nil && !IsNil(o.UeTimeZone) {
return true
}
return false
}
// SetUeTimeZone gets a reference to the given string and assigns it to the UeTimeZone field.
func (o *UeCampingRep) SetUeTimeZone(v string) {
o.UeTimeZone = &v
}
// GetNetLocAccSupp returns the NetLocAccSupp field value if set, zero value otherwise.
func (o *UeCampingRep) GetNetLocAccSupp() NetLocAccessSupport {
if o == nil || IsNil(o.NetLocAccSupp) {
var ret NetLocAccessSupport
return ret
}
return *o.NetLocAccSupp
}
// GetNetLocAccSuppOk returns a tuple with the NetLocAccSupp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UeCampingRep) GetNetLocAccSuppOk() (*NetLocAccessSupport, bool) {
if o == nil || IsNil(o.NetLocAccSupp) {
return nil, false
}
return o.NetLocAccSupp, true
}
// HasNetLocAccSupp returns a boolean if a field has been set.
func (o *UeCampingRep) HasNetLocAccSupp() bool {
if o != nil && !IsNil(o.NetLocAccSupp) {
return true
}
return false
}
// SetNetLocAccSupp gets a reference to the given NetLocAccessSupport and assigns it to the NetLocAccSupp field.
func (o *UeCampingRep) SetNetLocAccSupp(v NetLocAccessSupport) {
o.NetLocAccSupp = &v
}
// GetSatBackhaulCategory returns the SatBackhaulCategory field value if set, zero value otherwise.
func (o *UeCampingRep) GetSatBackhaulCategory() SatelliteBackhaulCategory {
if o == nil || IsNil(o.SatBackhaulCategory) {
var ret SatelliteBackhaulCategory
return ret
}
return *o.SatBackhaulCategory
}
// GetSatBackhaulCategoryOk returns a tuple with the SatBackhaulCategory field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UeCampingRep) GetSatBackhaulCategoryOk() (*SatelliteBackhaulCategory, bool) {
if o == nil || IsNil(o.SatBackhaulCategory) {
return nil, false
}
return o.SatBackhaulCategory, true
}
// HasSatBackhaulCategory returns a boolean if a field has been set.
func (o *UeCampingRep) HasSatBackhaulCategory() bool {
if o != nil && !IsNil(o.SatBackhaulCategory) {
return true
}
return false
}
// SetSatBackhaulCategory gets a reference to the given SatelliteBackhaulCategory and assigns it to the SatBackhaulCategory field.
func (o *UeCampingRep) SetSatBackhaulCategory(v SatelliteBackhaulCategory) {
o.SatBackhaulCategory = &v
}
func (o UeCampingRep) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o UeCampingRep) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AccessType) {
toSerialize["accessType"] = o.AccessType
}
if !IsNil(o.RatType) {
toSerialize["ratType"] = o.RatType
}
if !IsNil(o.ServNfId) {
toSerialize["servNfId"] = o.ServNfId
}
if !IsNil(o.ServingNetwork) {
toSerialize["servingNetwork"] = o.ServingNetwork
}
if !IsNil(o.UserLocationInfo) {
toSerialize["userLocationInfo"] = o.UserLocationInfo
}
if !IsNil(o.UeTimeZone) {
toSerialize["ueTimeZone"] = o.UeTimeZone
}
if !IsNil(o.NetLocAccSupp) {
toSerialize["netLocAccSupp"] = o.NetLocAccSupp
}
if !IsNil(o.SatBackhaulCategory) {
toSerialize["satBackhaulCategory"] = o.SatBackhaulCategory
}
return toSerialize, nil
}
type NullableUeCampingRep struct {
value *UeCampingRep
isSet bool
}
func (v NullableUeCampingRep) Get() *UeCampingRep {
return v.value
}
func (v *NullableUeCampingRep) Set(val *UeCampingRep) {
v.value = val
v.isSet = true
}
func (v NullableUeCampingRep) IsSet() bool {
return v.isSet
}
func (v *NullableUeCampingRep) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUeCampingRep(val *UeCampingRep) *NullableUeCampingRep {
return &NullableUeCampingRep{value: val, isSet: true}
}
func (v NullableUeCampingRep) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableUeCampingRep) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
Go
1
https://gitee.com/konglinglong/openapi.git
git@gitee.com:konglinglong/openapi.git
konglinglong
openapi
openapi
e403a3c726a4

搜索帮助