1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_ngeir_function_single_all_of_attributes.go 8.77 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . 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 NgeirFunctionSingleAllOfAttributes type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &NgeirFunctionSingleAllOfAttributes{}
// NgeirFunctionSingleAllOfAttributes struct for NgeirFunctionSingleAllOfAttributes
type NgeirFunctionSingleAllOfAttributes struct {
ManagedFunctionAttr
PlmnIdList []PlmnId `json:"plmnIdList,omitempty"`
SBIFqdn *string `json:"sBIFqdn,omitempty"`
SnssaiList []Snssai `json:"snssaiList,omitempty"`
ManagedNFProfile *ManagedNFProfile `json:"managedNFProfile,omitempty"`
CommModelList []CommModel `json:"commModelList,omitempty"`
}
// NewNgeirFunctionSingleAllOfAttributes instantiates a new NgeirFunctionSingleAllOfAttributes 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 NewNgeirFunctionSingleAllOfAttributes() *NgeirFunctionSingleAllOfAttributes {
this := NgeirFunctionSingleAllOfAttributes{}
return &this
}
// NewNgeirFunctionSingleAllOfAttributesWithDefaults instantiates a new NgeirFunctionSingleAllOfAttributes 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 NewNgeirFunctionSingleAllOfAttributesWithDefaults() *NgeirFunctionSingleAllOfAttributes {
this := NgeirFunctionSingleAllOfAttributes{}
return &this
}
// GetPlmnIdList returns the PlmnIdList field value if set, zero value otherwise.
func (o *NgeirFunctionSingleAllOfAttributes) GetPlmnIdList() []PlmnId {
if o == nil || IsNil(o.PlmnIdList) {
var ret []PlmnId
return ret
}
return o.PlmnIdList
}
// GetPlmnIdListOk returns a tuple with the PlmnIdList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NgeirFunctionSingleAllOfAttributes) GetPlmnIdListOk() ([]PlmnId, bool) {
if o == nil || IsNil(o.PlmnIdList) {
return nil, false
}
return o.PlmnIdList, true
}
// HasPlmnIdList returns a boolean if a field has been set.
func (o *NgeirFunctionSingleAllOfAttributes) HasPlmnIdList() bool {
if o != nil && !IsNil(o.PlmnIdList) {
return true
}
return false
}
// SetPlmnIdList gets a reference to the given []PlmnId and assigns it to the PlmnIdList field.
func (o *NgeirFunctionSingleAllOfAttributes) SetPlmnIdList(v []PlmnId) {
o.PlmnIdList = v
}
// GetSBIFqdn returns the SBIFqdn field value if set, zero value otherwise.
func (o *NgeirFunctionSingleAllOfAttributes) GetSBIFqdn() string {
if o == nil || IsNil(o.SBIFqdn) {
var ret string
return ret
}
return *o.SBIFqdn
}
// GetSBIFqdnOk returns a tuple with the SBIFqdn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NgeirFunctionSingleAllOfAttributes) GetSBIFqdnOk() (*string, bool) {
if o == nil || IsNil(o.SBIFqdn) {
return nil, false
}
return o.SBIFqdn, true
}
// HasSBIFqdn returns a boolean if a field has been set.
func (o *NgeirFunctionSingleAllOfAttributes) HasSBIFqdn() bool {
if o != nil && !IsNil(o.SBIFqdn) {
return true
}
return false
}
// SetSBIFqdn gets a reference to the given string and assigns it to the SBIFqdn field.
func (o *NgeirFunctionSingleAllOfAttributes) SetSBIFqdn(v string) {
o.SBIFqdn = &v
}
// GetSnssaiList returns the SnssaiList field value if set, zero value otherwise.
func (o *NgeirFunctionSingleAllOfAttributes) GetSnssaiList() []Snssai {
if o == nil || IsNil(o.SnssaiList) {
var ret []Snssai
return ret
}
return o.SnssaiList
}
// GetSnssaiListOk returns a tuple with the SnssaiList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NgeirFunctionSingleAllOfAttributes) GetSnssaiListOk() ([]Snssai, bool) {
if o == nil || IsNil(o.SnssaiList) {
return nil, false
}
return o.SnssaiList, true
}
// HasSnssaiList returns a boolean if a field has been set.
func (o *NgeirFunctionSingleAllOfAttributes) HasSnssaiList() bool {
if o != nil && !IsNil(o.SnssaiList) {
return true
}
return false
}
// SetSnssaiList gets a reference to the given []Snssai and assigns it to the SnssaiList field.
func (o *NgeirFunctionSingleAllOfAttributes) SetSnssaiList(v []Snssai) {
o.SnssaiList = v
}
// GetManagedNFProfile returns the ManagedNFProfile field value if set, zero value otherwise.
func (o *NgeirFunctionSingleAllOfAttributes) GetManagedNFProfile() ManagedNFProfile {
if o == nil || IsNil(o.ManagedNFProfile) {
var ret ManagedNFProfile
return ret
}
return *o.ManagedNFProfile
}
// GetManagedNFProfileOk returns a tuple with the ManagedNFProfile field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NgeirFunctionSingleAllOfAttributes) GetManagedNFProfileOk() (*ManagedNFProfile, bool) {
if o == nil || IsNil(o.ManagedNFProfile) {
return nil, false
}
return o.ManagedNFProfile, true
}
// HasManagedNFProfile returns a boolean if a field has been set.
func (o *NgeirFunctionSingleAllOfAttributes) HasManagedNFProfile() bool {
if o != nil && !IsNil(o.ManagedNFProfile) {
return true
}
return false
}
// SetManagedNFProfile gets a reference to the given ManagedNFProfile and assigns it to the ManagedNFProfile field.
func (o *NgeirFunctionSingleAllOfAttributes) SetManagedNFProfile(v ManagedNFProfile) {
o.ManagedNFProfile = &v
}
// GetCommModelList returns the CommModelList field value if set, zero value otherwise.
func (o *NgeirFunctionSingleAllOfAttributes) GetCommModelList() []CommModel {
if o == nil || IsNil(o.CommModelList) {
var ret []CommModel
return ret
}
return o.CommModelList
}
// GetCommModelListOk returns a tuple with the CommModelList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NgeirFunctionSingleAllOfAttributes) GetCommModelListOk() ([]CommModel, bool) {
if o == nil || IsNil(o.CommModelList) {
return nil, false
}
return o.CommModelList, true
}
// HasCommModelList returns a boolean if a field has been set.
func (o *NgeirFunctionSingleAllOfAttributes) HasCommModelList() bool {
if o != nil && !IsNil(o.CommModelList) {
return true
}
return false
}
// SetCommModelList gets a reference to the given []CommModel and assigns it to the CommModelList field.
func (o *NgeirFunctionSingleAllOfAttributes) SetCommModelList(v []CommModel) {
o.CommModelList = v
}
func (o NgeirFunctionSingleAllOfAttributes) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o NgeirFunctionSingleAllOfAttributes) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
serializedManagedFunctionAttr, errManagedFunctionAttr := json.Marshal(o.ManagedFunctionAttr)
if errManagedFunctionAttr != nil {
return map[string]interface{}{}, errManagedFunctionAttr
}
errManagedFunctionAttr = json.Unmarshal([]byte(serializedManagedFunctionAttr), &toSerialize)
if errManagedFunctionAttr != nil {
return map[string]interface{}{}, errManagedFunctionAttr
}
if !IsNil(o.PlmnIdList) {
toSerialize["plmnIdList"] = o.PlmnIdList
}
if !IsNil(o.SBIFqdn) {
toSerialize["sBIFqdn"] = o.SBIFqdn
}
if !IsNil(o.SnssaiList) {
toSerialize["snssaiList"] = o.SnssaiList
}
if !IsNil(o.ManagedNFProfile) {
toSerialize["managedNFProfile"] = o.ManagedNFProfile
}
if !IsNil(o.CommModelList) {
toSerialize["commModelList"] = o.CommModelList
}
return toSerialize, nil
}
type NullableNgeirFunctionSingleAllOfAttributes struct {
value *NgeirFunctionSingleAllOfAttributes
isSet bool
}
func (v NullableNgeirFunctionSingleAllOfAttributes) Get() *NgeirFunctionSingleAllOfAttributes {
return v.value
}
func (v *NullableNgeirFunctionSingleAllOfAttributes) Set(val *NgeirFunctionSingleAllOfAttributes) {
v.value = val
v.isSet = true
}
func (v NullableNgeirFunctionSingleAllOfAttributes) IsSet() bool {
return v.isSet
}
func (v *NullableNgeirFunctionSingleAllOfAttributes) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableNgeirFunctionSingleAllOfAttributes(val *NgeirFunctionSingleAllOfAttributes) *NullableNgeirFunctionSingleAllOfAttributes {
return &NullableNgeirFunctionSingleAllOfAttributes{value: val, isSet: true}
}
func (v NullableNgeirFunctionSingleAllOfAttributes) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableNgeirFunctionSingleAllOfAttributes) 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

搜索帮助