1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_snssai_info.go 4.29 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 SnssaiInfo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SnssaiInfo{}
// SnssaiInfo struct for SnssaiInfo
type SnssaiInfo struct {
PlmnInfo *PlmnInfo `json:"plmnInfo,omitempty"`
AdministrativeState *AdministrativeState `json:"administrativeState,omitempty"`
}
// NewSnssaiInfo instantiates a new SnssaiInfo 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 NewSnssaiInfo() *SnssaiInfo {
this := SnssaiInfo{}
return &this
}
// NewSnssaiInfoWithDefaults instantiates a new SnssaiInfo 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 NewSnssaiInfoWithDefaults() *SnssaiInfo {
this := SnssaiInfo{}
return &this
}
// GetPlmnInfo returns the PlmnInfo field value if set, zero value otherwise.
func (o *SnssaiInfo) GetPlmnInfo() PlmnInfo {
if o == nil || IsNil(o.PlmnInfo) {
var ret PlmnInfo
return ret
}
return *o.PlmnInfo
}
// GetPlmnInfoOk returns a tuple with the PlmnInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SnssaiInfo) GetPlmnInfoOk() (*PlmnInfo, bool) {
if o == nil || IsNil(o.PlmnInfo) {
return nil, false
}
return o.PlmnInfo, true
}
// HasPlmnInfo returns a boolean if a field has been set.
func (o *SnssaiInfo) HasPlmnInfo() bool {
if o != nil && !IsNil(o.PlmnInfo) {
return true
}
return false
}
// SetPlmnInfo gets a reference to the given PlmnInfo and assigns it to the PlmnInfo field.
func (o *SnssaiInfo) SetPlmnInfo(v PlmnInfo) {
o.PlmnInfo = &v
}
// GetAdministrativeState returns the AdministrativeState field value if set, zero value otherwise.
func (o *SnssaiInfo) GetAdministrativeState() AdministrativeState {
if o == nil || IsNil(o.AdministrativeState) {
var ret AdministrativeState
return ret
}
return *o.AdministrativeState
}
// GetAdministrativeStateOk returns a tuple with the AdministrativeState field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SnssaiInfo) GetAdministrativeStateOk() (*AdministrativeState, bool) {
if o == nil || IsNil(o.AdministrativeState) {
return nil, false
}
return o.AdministrativeState, true
}
// HasAdministrativeState returns a boolean if a field has been set.
func (o *SnssaiInfo) HasAdministrativeState() bool {
if o != nil && !IsNil(o.AdministrativeState) {
return true
}
return false
}
// SetAdministrativeState gets a reference to the given AdministrativeState and assigns it to the AdministrativeState field.
func (o *SnssaiInfo) SetAdministrativeState(v AdministrativeState) {
o.AdministrativeState = &v
}
func (o SnssaiInfo) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SnssaiInfo) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.PlmnInfo) {
toSerialize["plmnInfo"] = o.PlmnInfo
}
if !IsNil(o.AdministrativeState) {
toSerialize["administrativeState"] = o.AdministrativeState
}
return toSerialize, nil
}
type NullableSnssaiInfo struct {
value *SnssaiInfo
isSet bool
}
func (v NullableSnssaiInfo) Get() *SnssaiInfo {
return v.value
}
func (v *NullableSnssaiInfo) Set(val *SnssaiInfo) {
v.value = val
v.isSet = true
}
func (v NullableSnssaiInfo) IsSet() bool {
return v.isSet
}
func (v *NullableSnssaiInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSnssaiInfo(val *SnssaiInfo) *NullableSnssaiInfo {
return &NullableSnssaiInfo{value: val, isSet: true}
}
func (v NullableSnssaiInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSnssaiInfo) 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

搜索帮助