1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_scscf_capability_list.go 5.02 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
Nhss_imsUECM
Nhss UE Context Management Service for IMS. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.1.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nhss_imsUECM
import (
"encoding/json"
)
// checks if the ScscfCapabilityList type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ScscfCapabilityList{}
// ScscfCapabilityList Information about mandatory and optional S-CSCF capabilities
type ScscfCapabilityList struct {
// A list of capabilities of the S-CSCF
MandatoryCapabilityList []int32 `json:"mandatoryCapabilityList,omitempty"`
// A list of capabilities of the S-CSCF
OptionalCapabilityList []int32 `json:"optionalCapabilityList,omitempty"`
}
// NewScscfCapabilityList instantiates a new ScscfCapabilityList 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 NewScscfCapabilityList() *ScscfCapabilityList {
this := ScscfCapabilityList{}
return &this
}
// NewScscfCapabilityListWithDefaults instantiates a new ScscfCapabilityList 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 NewScscfCapabilityListWithDefaults() *ScscfCapabilityList {
this := ScscfCapabilityList{}
return &this
}
// GetMandatoryCapabilityList returns the MandatoryCapabilityList field value if set, zero value otherwise.
func (o *ScscfCapabilityList) GetMandatoryCapabilityList() []int32 {
if o == nil || IsNil(o.MandatoryCapabilityList) {
var ret []int32
return ret
}
return o.MandatoryCapabilityList
}
// GetMandatoryCapabilityListOk returns a tuple with the MandatoryCapabilityList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ScscfCapabilityList) GetMandatoryCapabilityListOk() ([]int32, bool) {
if o == nil || IsNil(o.MandatoryCapabilityList) {
return nil, false
}
return o.MandatoryCapabilityList, true
}
// HasMandatoryCapabilityList returns a boolean if a field has been set.
func (o *ScscfCapabilityList) HasMandatoryCapabilityList() bool {
if o != nil && !IsNil(o.MandatoryCapabilityList) {
return true
}
return false
}
// SetMandatoryCapabilityList gets a reference to the given []int32 and assigns it to the MandatoryCapabilityList field.
func (o *ScscfCapabilityList) SetMandatoryCapabilityList(v []int32) {
o.MandatoryCapabilityList = v
}
// GetOptionalCapabilityList returns the OptionalCapabilityList field value if set, zero value otherwise.
func (o *ScscfCapabilityList) GetOptionalCapabilityList() []int32 {
if o == nil || IsNil(o.OptionalCapabilityList) {
var ret []int32
return ret
}
return o.OptionalCapabilityList
}
// GetOptionalCapabilityListOk returns a tuple with the OptionalCapabilityList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ScscfCapabilityList) GetOptionalCapabilityListOk() ([]int32, bool) {
if o == nil || IsNil(o.OptionalCapabilityList) {
return nil, false
}
return o.OptionalCapabilityList, true
}
// HasOptionalCapabilityList returns a boolean if a field has been set.
func (o *ScscfCapabilityList) HasOptionalCapabilityList() bool {
if o != nil && !IsNil(o.OptionalCapabilityList) {
return true
}
return false
}
// SetOptionalCapabilityList gets a reference to the given []int32 and assigns it to the OptionalCapabilityList field.
func (o *ScscfCapabilityList) SetOptionalCapabilityList(v []int32) {
o.OptionalCapabilityList = v
}
func (o ScscfCapabilityList) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ScscfCapabilityList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.MandatoryCapabilityList) {
toSerialize["mandatoryCapabilityList"] = o.MandatoryCapabilityList
}
if !IsNil(o.OptionalCapabilityList) {
toSerialize["optionalCapabilityList"] = o.OptionalCapabilityList
}
return toSerialize, nil
}
type NullableScscfCapabilityList struct {
value *ScscfCapabilityList
isSet bool
}
func (v NullableScscfCapabilityList) Get() *ScscfCapabilityList {
return v.value
}
func (v *NullableScscfCapabilityList) Set(val *ScscfCapabilityList) {
v.value = val
v.isSet = true
}
func (v NullableScscfCapabilityList) IsSet() bool {
return v.isSet
}
func (v *NullableScscfCapabilityList) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableScscfCapabilityList(val *ScscfCapabilityList) *NullableScscfCapabilityList {
return &NullableScscfCapabilityList{value: val, isSet: true}
}
func (v NullableScscfCapabilityList) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableScscfCapabilityList) 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

搜索帮助