1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_wireline_area.go 6.21 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
Npcf_AMPolicyControl
Access and Mobility Policy Control Service. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Npcf_AMPolicyControl
import (
"encoding/json"
)
// checks if the WirelineArea type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &WirelineArea{}
// WirelineArea One and only one of the \"globLineIds\", \"hfcNIds\", \"areaCodeB\" and \"areaCodeC\" attributes shall be included in a WirelineArea data structure
type WirelineArea struct {
GlobalLineIds []string `json:"globalLineIds,omitempty"`
HfcNIds []string `json:"hfcNIds,omitempty"`
// Values are operator specific.
AreaCodeB *string `json:"areaCodeB,omitempty"`
// Values are operator specific.
AreaCodeC *string `json:"areaCodeC,omitempty"`
}
// NewWirelineArea instantiates a new WirelineArea 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 NewWirelineArea() *WirelineArea {
this := WirelineArea{}
return &this
}
// NewWirelineAreaWithDefaults instantiates a new WirelineArea 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 NewWirelineAreaWithDefaults() *WirelineArea {
this := WirelineArea{}
return &this
}
// GetGlobalLineIds returns the GlobalLineIds field value if set, zero value otherwise.
func (o *WirelineArea) GetGlobalLineIds() []string {
if o == nil || IsNil(o.GlobalLineIds) {
var ret []string
return ret
}
return o.GlobalLineIds
}
// GetGlobalLineIdsOk returns a tuple with the GlobalLineIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *WirelineArea) GetGlobalLineIdsOk() ([]string, bool) {
if o == nil || IsNil(o.GlobalLineIds) {
return nil, false
}
return o.GlobalLineIds, true
}
// HasGlobalLineIds returns a boolean if a field has been set.
func (o *WirelineArea) HasGlobalLineIds() bool {
if o != nil && !IsNil(o.GlobalLineIds) {
return true
}
return false
}
// SetGlobalLineIds gets a reference to the given []string and assigns it to the GlobalLineIds field.
func (o *WirelineArea) SetGlobalLineIds(v []string) {
o.GlobalLineIds = v
}
// GetHfcNIds returns the HfcNIds field value if set, zero value otherwise.
func (o *WirelineArea) GetHfcNIds() []string {
if o == nil || IsNil(o.HfcNIds) {
var ret []string
return ret
}
return o.HfcNIds
}
// GetHfcNIdsOk returns a tuple with the HfcNIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *WirelineArea) GetHfcNIdsOk() ([]string, bool) {
if o == nil || IsNil(o.HfcNIds) {
return nil, false
}
return o.HfcNIds, true
}
// HasHfcNIds returns a boolean if a field has been set.
func (o *WirelineArea) HasHfcNIds() bool {
if o != nil && !IsNil(o.HfcNIds) {
return true
}
return false
}
// SetHfcNIds gets a reference to the given []string and assigns it to the HfcNIds field.
func (o *WirelineArea) SetHfcNIds(v []string) {
o.HfcNIds = v
}
// GetAreaCodeB returns the AreaCodeB field value if set, zero value otherwise.
func (o *WirelineArea) GetAreaCodeB() string {
if o == nil || IsNil(o.AreaCodeB) {
var ret string
return ret
}
return *o.AreaCodeB
}
// GetAreaCodeBOk returns a tuple with the AreaCodeB field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *WirelineArea) GetAreaCodeBOk() (*string, bool) {
if o == nil || IsNil(o.AreaCodeB) {
return nil, false
}
return o.AreaCodeB, true
}
// HasAreaCodeB returns a boolean if a field has been set.
func (o *WirelineArea) HasAreaCodeB() bool {
if o != nil && !IsNil(o.AreaCodeB) {
return true
}
return false
}
// SetAreaCodeB gets a reference to the given string and assigns it to the AreaCodeB field.
func (o *WirelineArea) SetAreaCodeB(v string) {
o.AreaCodeB = &v
}
// GetAreaCodeC returns the AreaCodeC field value if set, zero value otherwise.
func (o *WirelineArea) GetAreaCodeC() string {
if o == nil || IsNil(o.AreaCodeC) {
var ret string
return ret
}
return *o.AreaCodeC
}
// GetAreaCodeCOk returns a tuple with the AreaCodeC field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *WirelineArea) GetAreaCodeCOk() (*string, bool) {
if o == nil || IsNil(o.AreaCodeC) {
return nil, false
}
return o.AreaCodeC, true
}
// HasAreaCodeC returns a boolean if a field has been set.
func (o *WirelineArea) HasAreaCodeC() bool {
if o != nil && !IsNil(o.AreaCodeC) {
return true
}
return false
}
// SetAreaCodeC gets a reference to the given string and assigns it to the AreaCodeC field.
func (o *WirelineArea) SetAreaCodeC(v string) {
o.AreaCodeC = &v
}
func (o WirelineArea) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o WirelineArea) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.GlobalLineIds) {
toSerialize["globalLineIds"] = o.GlobalLineIds
}
if !IsNil(o.HfcNIds) {
toSerialize["hfcNIds"] = o.HfcNIds
}
if !IsNil(o.AreaCodeB) {
toSerialize["areaCodeB"] = o.AreaCodeB
}
if !IsNil(o.AreaCodeC) {
toSerialize["areaCodeC"] = o.AreaCodeC
}
return toSerialize, nil
}
type NullableWirelineArea struct {
value *WirelineArea
isSet bool
}
func (v NullableWirelineArea) Get() *WirelineArea {
return v.value
}
func (v *NullableWirelineArea) Set(val *WirelineArea) {
v.value = val
v.isSet = true
}
func (v NullableWirelineArea) IsSet() bool {
return v.isSet
}
func (v *NullableWirelineArea) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableWirelineArea(val *WirelineArea) *NullableWirelineArea {
return &NullableWirelineArea{value: val, isSet: true}
}
func (v NullableWirelineArea) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableWirelineArea) 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

搜索帮助