1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_nsacf_info_snssai.go 11.89 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . update
/*
Provisioning MnS
OAS 3.0.1 definition of the Provisioning MnS © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 17.6.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_ProvMnS
import (
"encoding/json"
)
// checks if the NsacfInfoSnssai type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &NsacfInfoSnssai{}
// NsacfInfoSnssai struct for NsacfInfoSnssai
type NsacfInfoSnssai struct {
SnssaiInfo *SnssaiInfo `json:"SnssaiInfo,omitempty"`
IsSubjectToNsac *bool `json:"isSubjectToNsac,omitempty"`
MaxNumberofUEs *int32 `json:"maxNumberofUEs,omitempty"`
EACMode *string `json:"eACMode,omitempty"`
ActiveEacThreshold *int32 `json:"activeEacThreshold,omitempty"`
DeactiveEacThreshold *int32 `json:"deactiveEacThreshold,omitempty"`
NumberofUEs *int32 `json:"numberofUEs,omitempty"`
UEIdList []string `json:"uEIdList,omitempty"`
MaxNumberofPDUSessions *int32 `json:"maxNumberofPDUSessions,omitempty"`
}
// NewNsacfInfoSnssai instantiates a new NsacfInfoSnssai 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 NewNsacfInfoSnssai() *NsacfInfoSnssai {
this := NsacfInfoSnssai{}
return &this
}
// NewNsacfInfoSnssaiWithDefaults instantiates a new NsacfInfoSnssai 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 NewNsacfInfoSnssaiWithDefaults() *NsacfInfoSnssai {
this := NsacfInfoSnssai{}
return &this
}
// GetSnssaiInfo returns the SnssaiInfo field value if set, zero value otherwise.
func (o *NsacfInfoSnssai) GetSnssaiInfo() SnssaiInfo {
if o == nil || IsNil(o.SnssaiInfo) {
var ret SnssaiInfo
return ret
}
return *o.SnssaiInfo
}
// GetSnssaiInfoOk returns a tuple with the SnssaiInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NsacfInfoSnssai) GetSnssaiInfoOk() (*SnssaiInfo, bool) {
if o == nil || IsNil(o.SnssaiInfo) {
return nil, false
}
return o.SnssaiInfo, true
}
// HasSnssaiInfo returns a boolean if a field has been set.
func (o *NsacfInfoSnssai) HasSnssaiInfo() bool {
if o != nil && !IsNil(o.SnssaiInfo) {
return true
}
return false
}
// SetSnssaiInfo gets a reference to the given SnssaiInfo and assigns it to the SnssaiInfo field.
func (o *NsacfInfoSnssai) SetSnssaiInfo(v SnssaiInfo) {
o.SnssaiInfo = &v
}
// GetIsSubjectToNsac returns the IsSubjectToNsac field value if set, zero value otherwise.
func (o *NsacfInfoSnssai) GetIsSubjectToNsac() bool {
if o == nil || IsNil(o.IsSubjectToNsac) {
var ret bool
return ret
}
return *o.IsSubjectToNsac
}
// GetIsSubjectToNsacOk returns a tuple with the IsSubjectToNsac field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NsacfInfoSnssai) GetIsSubjectToNsacOk() (*bool, bool) {
if o == nil || IsNil(o.IsSubjectToNsac) {
return nil, false
}
return o.IsSubjectToNsac, true
}
// HasIsSubjectToNsac returns a boolean if a field has been set.
func (o *NsacfInfoSnssai) HasIsSubjectToNsac() bool {
if o != nil && !IsNil(o.IsSubjectToNsac) {
return true
}
return false
}
// SetIsSubjectToNsac gets a reference to the given bool and assigns it to the IsSubjectToNsac field.
func (o *NsacfInfoSnssai) SetIsSubjectToNsac(v bool) {
o.IsSubjectToNsac = &v
}
// GetMaxNumberofUEs returns the MaxNumberofUEs field value if set, zero value otherwise.
func (o *NsacfInfoSnssai) GetMaxNumberofUEs() int32 {
if o == nil || IsNil(o.MaxNumberofUEs) {
var ret int32
return ret
}
return *o.MaxNumberofUEs
}
// GetMaxNumberofUEsOk returns a tuple with the MaxNumberofUEs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NsacfInfoSnssai) GetMaxNumberofUEsOk() (*int32, bool) {
if o == nil || IsNil(o.MaxNumberofUEs) {
return nil, false
}
return o.MaxNumberofUEs, true
}
// HasMaxNumberofUEs returns a boolean if a field has been set.
func (o *NsacfInfoSnssai) HasMaxNumberofUEs() bool {
if o != nil && !IsNil(o.MaxNumberofUEs) {
return true
}
return false
}
// SetMaxNumberofUEs gets a reference to the given int32 and assigns it to the MaxNumberofUEs field.
func (o *NsacfInfoSnssai) SetMaxNumberofUEs(v int32) {
o.MaxNumberofUEs = &v
}
// GetEACMode returns the EACMode field value if set, zero value otherwise.
func (o *NsacfInfoSnssai) GetEACMode() string {
if o == nil || IsNil(o.EACMode) {
var ret string
return ret
}
return *o.EACMode
}
// GetEACModeOk returns a tuple with the EACMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NsacfInfoSnssai) GetEACModeOk() (*string, bool) {
if o == nil || IsNil(o.EACMode) {
return nil, false
}
return o.EACMode, true
}
// HasEACMode returns a boolean if a field has been set.
func (o *NsacfInfoSnssai) HasEACMode() bool {
if o != nil && !IsNil(o.EACMode) {
return true
}
return false
}
// SetEACMode gets a reference to the given string and assigns it to the EACMode field.
func (o *NsacfInfoSnssai) SetEACMode(v string) {
o.EACMode = &v
}
// GetActiveEacThreshold returns the ActiveEacThreshold field value if set, zero value otherwise.
func (o *NsacfInfoSnssai) GetActiveEacThreshold() int32 {
if o == nil || IsNil(o.ActiveEacThreshold) {
var ret int32
return ret
}
return *o.ActiveEacThreshold
}
// GetActiveEacThresholdOk returns a tuple with the ActiveEacThreshold field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NsacfInfoSnssai) GetActiveEacThresholdOk() (*int32, bool) {
if o == nil || IsNil(o.ActiveEacThreshold) {
return nil, false
}
return o.ActiveEacThreshold, true
}
// HasActiveEacThreshold returns a boolean if a field has been set.
func (o *NsacfInfoSnssai) HasActiveEacThreshold() bool {
if o != nil && !IsNil(o.ActiveEacThreshold) {
return true
}
return false
}
// SetActiveEacThreshold gets a reference to the given int32 and assigns it to the ActiveEacThreshold field.
func (o *NsacfInfoSnssai) SetActiveEacThreshold(v int32) {
o.ActiveEacThreshold = &v
}
// GetDeactiveEacThreshold returns the DeactiveEacThreshold field value if set, zero value otherwise.
func (o *NsacfInfoSnssai) GetDeactiveEacThreshold() int32 {
if o == nil || IsNil(o.DeactiveEacThreshold) {
var ret int32
return ret
}
return *o.DeactiveEacThreshold
}
// GetDeactiveEacThresholdOk returns a tuple with the DeactiveEacThreshold field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NsacfInfoSnssai) GetDeactiveEacThresholdOk() (*int32, bool) {
if o == nil || IsNil(o.DeactiveEacThreshold) {
return nil, false
}
return o.DeactiveEacThreshold, true
}
// HasDeactiveEacThreshold returns a boolean if a field has been set.
func (o *NsacfInfoSnssai) HasDeactiveEacThreshold() bool {
if o != nil && !IsNil(o.DeactiveEacThreshold) {
return true
}
return false
}
// SetDeactiveEacThreshold gets a reference to the given int32 and assigns it to the DeactiveEacThreshold field.
func (o *NsacfInfoSnssai) SetDeactiveEacThreshold(v int32) {
o.DeactiveEacThreshold = &v
}
// GetNumberofUEs returns the NumberofUEs field value if set, zero value otherwise.
func (o *NsacfInfoSnssai) GetNumberofUEs() int32 {
if o == nil || IsNil(o.NumberofUEs) {
var ret int32
return ret
}
return *o.NumberofUEs
}
// GetNumberofUEsOk returns a tuple with the NumberofUEs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NsacfInfoSnssai) GetNumberofUEsOk() (*int32, bool) {
if o == nil || IsNil(o.NumberofUEs) {
return nil, false
}
return o.NumberofUEs, true
}
// HasNumberofUEs returns a boolean if a field has been set.
func (o *NsacfInfoSnssai) HasNumberofUEs() bool {
if o != nil && !IsNil(o.NumberofUEs) {
return true
}
return false
}
// SetNumberofUEs gets a reference to the given int32 and assigns it to the NumberofUEs field.
func (o *NsacfInfoSnssai) SetNumberofUEs(v int32) {
o.NumberofUEs = &v
}
// GetUEIdList returns the UEIdList field value if set, zero value otherwise.
func (o *NsacfInfoSnssai) GetUEIdList() []string {
if o == nil || IsNil(o.UEIdList) {
var ret []string
return ret
}
return o.UEIdList
}
// GetUEIdListOk returns a tuple with the UEIdList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NsacfInfoSnssai) GetUEIdListOk() ([]string, bool) {
if o == nil || IsNil(o.UEIdList) {
return nil, false
}
return o.UEIdList, true
}
// HasUEIdList returns a boolean if a field has been set.
func (o *NsacfInfoSnssai) HasUEIdList() bool {
if o != nil && !IsNil(o.UEIdList) {
return true
}
return false
}
// SetUEIdList gets a reference to the given []string and assigns it to the UEIdList field.
func (o *NsacfInfoSnssai) SetUEIdList(v []string) {
o.UEIdList = v
}
// GetMaxNumberofPDUSessions returns the MaxNumberofPDUSessions field value if set, zero value otherwise.
func (o *NsacfInfoSnssai) GetMaxNumberofPDUSessions() int32 {
if o == nil || IsNil(o.MaxNumberofPDUSessions) {
var ret int32
return ret
}
return *o.MaxNumberofPDUSessions
}
// GetMaxNumberofPDUSessionsOk returns a tuple with the MaxNumberofPDUSessions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NsacfInfoSnssai) GetMaxNumberofPDUSessionsOk() (*int32, bool) {
if o == nil || IsNil(o.MaxNumberofPDUSessions) {
return nil, false
}
return o.MaxNumberofPDUSessions, true
}
// HasMaxNumberofPDUSessions returns a boolean if a field has been set.
func (o *NsacfInfoSnssai) HasMaxNumberofPDUSessions() bool {
if o != nil && !IsNil(o.MaxNumberofPDUSessions) {
return true
}
return false
}
// SetMaxNumberofPDUSessions gets a reference to the given int32 and assigns it to the MaxNumberofPDUSessions field.
func (o *NsacfInfoSnssai) SetMaxNumberofPDUSessions(v int32) {
o.MaxNumberofPDUSessions = &v
}
func (o NsacfInfoSnssai) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o NsacfInfoSnssai) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.SnssaiInfo) {
toSerialize["SnssaiInfo"] = o.SnssaiInfo
}
if !IsNil(o.IsSubjectToNsac) {
toSerialize["isSubjectToNsac"] = o.IsSubjectToNsac
}
if !IsNil(o.MaxNumberofUEs) {
toSerialize["maxNumberofUEs"] = o.MaxNumberofUEs
}
if !IsNil(o.EACMode) {
toSerialize["eACMode"] = o.EACMode
}
if !IsNil(o.ActiveEacThreshold) {
toSerialize["activeEacThreshold"] = o.ActiveEacThreshold
}
if !IsNil(o.DeactiveEacThreshold) {
toSerialize["deactiveEacThreshold"] = o.DeactiveEacThreshold
}
if !IsNil(o.NumberofUEs) {
toSerialize["numberofUEs"] = o.NumberofUEs
}
if !IsNil(o.UEIdList) {
toSerialize["uEIdList"] = o.UEIdList
}
if !IsNil(o.MaxNumberofPDUSessions) {
toSerialize["maxNumberofPDUSessions"] = o.MaxNumberofPDUSessions
}
return toSerialize, nil
}
type NullableNsacfInfoSnssai struct {
value *NsacfInfoSnssai
isSet bool
}
func (v NullableNsacfInfoSnssai) Get() *NsacfInfoSnssai {
return v.value
}
func (v *NullableNsacfInfoSnssai) Set(val *NsacfInfoSnssai) {
v.value = val
v.isSet = true
}
func (v NullableNsacfInfoSnssai) IsSet() bool {
return v.isSet
}
func (v *NullableNsacfInfoSnssai) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableNsacfInfoSnssai(val *NsacfInfoSnssai) *NullableNsacfInfoSnssai {
return &NullableNsacfInfoSnssai{value: val, isSet: true}
}
func (v NullableNsacfInfoSnssai) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableNsacfInfoSnssai) 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

搜索帮助