1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_gnb_du_function_single.go 18.58 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
/*
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"
"fmt"
)
// checks if the GnbDuFunctionSingle type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GnbDuFunctionSingle{}
// GnbDuFunctionSingle struct for GnbDuFunctionSingle
type GnbDuFunctionSingle struct {
Top
PerfMetricJob []PerfMetricJobSingle `json:"PerfMetricJob,omitempty"`
ThresholdMonitor []ThresholdMonitorSingle `json:"ThresholdMonitor,omitempty"`
ManagedNFService []ManagedNFServiceSingle `json:"ManagedNFService,omitempty"`
TraceJob []TraceJobSingle `json:"TraceJob,omitempty"`
Attributes *GnbDuFunctionSingleAllOfAttributes `json:"attributes,omitempty"`
RRMPolicyRatio []RRMPolicyRatioSingle `json:"RRMPolicyRatio,omitempty"`
NrCellDu []NrCellDuSingle `json:"NrCellDu,omitempty"`
BwpMultiple []BwpSingle `json:"Bwp-Multiple,omitempty"`
NrSectorCarrierMultiple []NrSectorCarrierSingle `json:"NrSectorCarrier-Multiple,omitempty"`
EPF1C *EPF1CSingle `json:"EP_F1C,omitempty"`
EPF1U []EPF1USingle `json:"EP_F1U,omitempty"`
DRACHOptimizationFunction *DRACHOptimizationFunctionSingle `json:"DRACHOptimizationFunction,omitempty"`
OperatorDU []OperatorDuSingle `json:"OperatorDU,omitempty"`
}
type _GnbDuFunctionSingle GnbDuFunctionSingle
// NewGnbDuFunctionSingle instantiates a new GnbDuFunctionSingle 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 NewGnbDuFunctionSingle(id NullableString) *GnbDuFunctionSingle {
this := GnbDuFunctionSingle{}
this.Id = id
return &this
}
// NewGnbDuFunctionSingleWithDefaults instantiates a new GnbDuFunctionSingle 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 NewGnbDuFunctionSingleWithDefaults() *GnbDuFunctionSingle {
this := GnbDuFunctionSingle{}
return &this
}
// GetPerfMetricJob returns the PerfMetricJob field value if set, zero value otherwise.
func (o *GnbDuFunctionSingle) GetPerfMetricJob() []PerfMetricJobSingle {
if o == nil || IsNil(o.PerfMetricJob) {
var ret []PerfMetricJobSingle
return ret
}
return o.PerfMetricJob
}
// GetPerfMetricJobOk returns a tuple with the PerfMetricJob field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbDuFunctionSingle) GetPerfMetricJobOk() ([]PerfMetricJobSingle, bool) {
if o == nil || IsNil(o.PerfMetricJob) {
return nil, false
}
return o.PerfMetricJob, true
}
// HasPerfMetricJob returns a boolean if a field has been set.
func (o *GnbDuFunctionSingle) HasPerfMetricJob() bool {
if o != nil && !IsNil(o.PerfMetricJob) {
return true
}
return false
}
// SetPerfMetricJob gets a reference to the given []PerfMetricJobSingle and assigns it to the PerfMetricJob field.
func (o *GnbDuFunctionSingle) SetPerfMetricJob(v []PerfMetricJobSingle) {
o.PerfMetricJob = v
}
// GetThresholdMonitor returns the ThresholdMonitor field value if set, zero value otherwise.
func (o *GnbDuFunctionSingle) GetThresholdMonitor() []ThresholdMonitorSingle {
if o == nil || IsNil(o.ThresholdMonitor) {
var ret []ThresholdMonitorSingle
return ret
}
return o.ThresholdMonitor
}
// GetThresholdMonitorOk returns a tuple with the ThresholdMonitor field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbDuFunctionSingle) GetThresholdMonitorOk() ([]ThresholdMonitorSingle, bool) {
if o == nil || IsNil(o.ThresholdMonitor) {
return nil, false
}
return o.ThresholdMonitor, true
}
// HasThresholdMonitor returns a boolean if a field has been set.
func (o *GnbDuFunctionSingle) HasThresholdMonitor() bool {
if o != nil && !IsNil(o.ThresholdMonitor) {
return true
}
return false
}
// SetThresholdMonitor gets a reference to the given []ThresholdMonitorSingle and assigns it to the ThresholdMonitor field.
func (o *GnbDuFunctionSingle) SetThresholdMonitor(v []ThresholdMonitorSingle) {
o.ThresholdMonitor = v
}
// GetManagedNFService returns the ManagedNFService field value if set, zero value otherwise.
func (o *GnbDuFunctionSingle) GetManagedNFService() []ManagedNFServiceSingle {
if o == nil || IsNil(o.ManagedNFService) {
var ret []ManagedNFServiceSingle
return ret
}
return o.ManagedNFService
}
// GetManagedNFServiceOk returns a tuple with the ManagedNFService field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbDuFunctionSingle) GetManagedNFServiceOk() ([]ManagedNFServiceSingle, bool) {
if o == nil || IsNil(o.ManagedNFService) {
return nil, false
}
return o.ManagedNFService, true
}
// HasManagedNFService returns a boolean if a field has been set.
func (o *GnbDuFunctionSingle) HasManagedNFService() bool {
if o != nil && !IsNil(o.ManagedNFService) {
return true
}
return false
}
// SetManagedNFService gets a reference to the given []ManagedNFServiceSingle and assigns it to the ManagedNFService field.
func (o *GnbDuFunctionSingle) SetManagedNFService(v []ManagedNFServiceSingle) {
o.ManagedNFService = v
}
// GetTraceJob returns the TraceJob field value if set, zero value otherwise.
func (o *GnbDuFunctionSingle) GetTraceJob() []TraceJobSingle {
if o == nil || IsNil(o.TraceJob) {
var ret []TraceJobSingle
return ret
}
return o.TraceJob
}
// GetTraceJobOk returns a tuple with the TraceJob field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbDuFunctionSingle) GetTraceJobOk() ([]TraceJobSingle, bool) {
if o == nil || IsNil(o.TraceJob) {
return nil, false
}
return o.TraceJob, true
}
// HasTraceJob returns a boolean if a field has been set.
func (o *GnbDuFunctionSingle) HasTraceJob() bool {
if o != nil && !IsNil(o.TraceJob) {
return true
}
return false
}
// SetTraceJob gets a reference to the given []TraceJobSingle and assigns it to the TraceJob field.
func (o *GnbDuFunctionSingle) SetTraceJob(v []TraceJobSingle) {
o.TraceJob = v
}
// GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *GnbDuFunctionSingle) GetAttributes() GnbDuFunctionSingleAllOfAttributes {
if o == nil || IsNil(o.Attributes) {
var ret GnbDuFunctionSingleAllOfAttributes
return ret
}
return *o.Attributes
}
// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbDuFunctionSingle) GetAttributesOk() (*GnbDuFunctionSingleAllOfAttributes, bool) {
if o == nil || IsNil(o.Attributes) {
return nil, false
}
return o.Attributes, true
}
// HasAttributes returns a boolean if a field has been set.
func (o *GnbDuFunctionSingle) HasAttributes() bool {
if o != nil && !IsNil(o.Attributes) {
return true
}
return false
}
// SetAttributes gets a reference to the given GnbDuFunctionSingleAllOfAttributes and assigns it to the Attributes field.
func (o *GnbDuFunctionSingle) SetAttributes(v GnbDuFunctionSingleAllOfAttributes) {
o.Attributes = &v
}
// GetRRMPolicyRatio returns the RRMPolicyRatio field value if set, zero value otherwise.
func (o *GnbDuFunctionSingle) GetRRMPolicyRatio() []RRMPolicyRatioSingle {
if o == nil || IsNil(o.RRMPolicyRatio) {
var ret []RRMPolicyRatioSingle
return ret
}
return o.RRMPolicyRatio
}
// GetRRMPolicyRatioOk returns a tuple with the RRMPolicyRatio field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbDuFunctionSingle) GetRRMPolicyRatioOk() ([]RRMPolicyRatioSingle, bool) {
if o == nil || IsNil(o.RRMPolicyRatio) {
return nil, false
}
return o.RRMPolicyRatio, true
}
// HasRRMPolicyRatio returns a boolean if a field has been set.
func (o *GnbDuFunctionSingle) HasRRMPolicyRatio() bool {
if o != nil && !IsNil(o.RRMPolicyRatio) {
return true
}
return false
}
// SetRRMPolicyRatio gets a reference to the given []RRMPolicyRatioSingle and assigns it to the RRMPolicyRatio field.
func (o *GnbDuFunctionSingle) SetRRMPolicyRatio(v []RRMPolicyRatioSingle) {
o.RRMPolicyRatio = v
}
// GetNrCellDu returns the NrCellDu field value if set, zero value otherwise.
func (o *GnbDuFunctionSingle) GetNrCellDu() []NrCellDuSingle {
if o == nil || IsNil(o.NrCellDu) {
var ret []NrCellDuSingle
return ret
}
return o.NrCellDu
}
// GetNrCellDuOk returns a tuple with the NrCellDu field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbDuFunctionSingle) GetNrCellDuOk() ([]NrCellDuSingle, bool) {
if o == nil || IsNil(o.NrCellDu) {
return nil, false
}
return o.NrCellDu, true
}
// HasNrCellDu returns a boolean if a field has been set.
func (o *GnbDuFunctionSingle) HasNrCellDu() bool {
if o != nil && !IsNil(o.NrCellDu) {
return true
}
return false
}
// SetNrCellDu gets a reference to the given []NrCellDuSingle and assigns it to the NrCellDu field.
func (o *GnbDuFunctionSingle) SetNrCellDu(v []NrCellDuSingle) {
o.NrCellDu = v
}
// GetBwpMultiple returns the BwpMultiple field value if set, zero value otherwise.
func (o *GnbDuFunctionSingle) GetBwpMultiple() []BwpSingle {
if o == nil || IsNil(o.BwpMultiple) {
var ret []BwpSingle
return ret
}
return o.BwpMultiple
}
// GetBwpMultipleOk returns a tuple with the BwpMultiple field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbDuFunctionSingle) GetBwpMultipleOk() ([]BwpSingle, bool) {
if o == nil || IsNil(o.BwpMultiple) {
return nil, false
}
return o.BwpMultiple, true
}
// HasBwpMultiple returns a boolean if a field has been set.
func (o *GnbDuFunctionSingle) HasBwpMultiple() bool {
if o != nil && !IsNil(o.BwpMultiple) {
return true
}
return false
}
// SetBwpMultiple gets a reference to the given []BwpSingle and assigns it to the BwpMultiple field.
func (o *GnbDuFunctionSingle) SetBwpMultiple(v []BwpSingle) {
o.BwpMultiple = v
}
// GetNrSectorCarrierMultiple returns the NrSectorCarrierMultiple field value if set, zero value otherwise.
func (o *GnbDuFunctionSingle) GetNrSectorCarrierMultiple() []NrSectorCarrierSingle {
if o == nil || IsNil(o.NrSectorCarrierMultiple) {
var ret []NrSectorCarrierSingle
return ret
}
return o.NrSectorCarrierMultiple
}
// GetNrSectorCarrierMultipleOk returns a tuple with the NrSectorCarrierMultiple field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbDuFunctionSingle) GetNrSectorCarrierMultipleOk() ([]NrSectorCarrierSingle, bool) {
if o == nil || IsNil(o.NrSectorCarrierMultiple) {
return nil, false
}
return o.NrSectorCarrierMultiple, true
}
// HasNrSectorCarrierMultiple returns a boolean if a field has been set.
func (o *GnbDuFunctionSingle) HasNrSectorCarrierMultiple() bool {
if o != nil && !IsNil(o.NrSectorCarrierMultiple) {
return true
}
return false
}
// SetNrSectorCarrierMultiple gets a reference to the given []NrSectorCarrierSingle and assigns it to the NrSectorCarrierMultiple field.
func (o *GnbDuFunctionSingle) SetNrSectorCarrierMultiple(v []NrSectorCarrierSingle) {
o.NrSectorCarrierMultiple = v
}
// GetEPF1C returns the EPF1C field value if set, zero value otherwise.
func (o *GnbDuFunctionSingle) GetEPF1C() EPF1CSingle {
if o == nil || IsNil(o.EPF1C) {
var ret EPF1CSingle
return ret
}
return *o.EPF1C
}
// GetEPF1COk returns a tuple with the EPF1C field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbDuFunctionSingle) GetEPF1COk() (*EPF1CSingle, bool) {
if o == nil || IsNil(o.EPF1C) {
return nil, false
}
return o.EPF1C, true
}
// HasEPF1C returns a boolean if a field has been set.
func (o *GnbDuFunctionSingle) HasEPF1C() bool {
if o != nil && !IsNil(o.EPF1C) {
return true
}
return false
}
// SetEPF1C gets a reference to the given EPF1CSingle and assigns it to the EPF1C field.
func (o *GnbDuFunctionSingle) SetEPF1C(v EPF1CSingle) {
o.EPF1C = &v
}
// GetEPF1U returns the EPF1U field value if set, zero value otherwise.
func (o *GnbDuFunctionSingle) GetEPF1U() []EPF1USingle {
if o == nil || IsNil(o.EPF1U) {
var ret []EPF1USingle
return ret
}
return o.EPF1U
}
// GetEPF1UOk returns a tuple with the EPF1U field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbDuFunctionSingle) GetEPF1UOk() ([]EPF1USingle, bool) {
if o == nil || IsNil(o.EPF1U) {
return nil, false
}
return o.EPF1U, true
}
// HasEPF1U returns a boolean if a field has been set.
func (o *GnbDuFunctionSingle) HasEPF1U() bool {
if o != nil && !IsNil(o.EPF1U) {
return true
}
return false
}
// SetEPF1U gets a reference to the given []EPF1USingle and assigns it to the EPF1U field.
func (o *GnbDuFunctionSingle) SetEPF1U(v []EPF1USingle) {
o.EPF1U = v
}
// GetDRACHOptimizationFunction returns the DRACHOptimizationFunction field value if set, zero value otherwise.
func (o *GnbDuFunctionSingle) GetDRACHOptimizationFunction() DRACHOptimizationFunctionSingle {
if o == nil || IsNil(o.DRACHOptimizationFunction) {
var ret DRACHOptimizationFunctionSingle
return ret
}
return *o.DRACHOptimizationFunction
}
// GetDRACHOptimizationFunctionOk returns a tuple with the DRACHOptimizationFunction field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbDuFunctionSingle) GetDRACHOptimizationFunctionOk() (*DRACHOptimizationFunctionSingle, bool) {
if o == nil || IsNil(o.DRACHOptimizationFunction) {
return nil, false
}
return o.DRACHOptimizationFunction, true
}
// HasDRACHOptimizationFunction returns a boolean if a field has been set.
func (o *GnbDuFunctionSingle) HasDRACHOptimizationFunction() bool {
if o != nil && !IsNil(o.DRACHOptimizationFunction) {
return true
}
return false
}
// SetDRACHOptimizationFunction gets a reference to the given DRACHOptimizationFunctionSingle and assigns it to the DRACHOptimizationFunction field.
func (o *GnbDuFunctionSingle) SetDRACHOptimizationFunction(v DRACHOptimizationFunctionSingle) {
o.DRACHOptimizationFunction = &v
}
// GetOperatorDU returns the OperatorDU field value if set, zero value otherwise.
func (o *GnbDuFunctionSingle) GetOperatorDU() []OperatorDuSingle {
if o == nil || IsNil(o.OperatorDU) {
var ret []OperatorDuSingle
return ret
}
return o.OperatorDU
}
// GetOperatorDUOk returns a tuple with the OperatorDU field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GnbDuFunctionSingle) GetOperatorDUOk() ([]OperatorDuSingle, bool) {
if o == nil || IsNil(o.OperatorDU) {
return nil, false
}
return o.OperatorDU, true
}
// HasOperatorDU returns a boolean if a field has been set.
func (o *GnbDuFunctionSingle) HasOperatorDU() bool {
if o != nil && !IsNil(o.OperatorDU) {
return true
}
return false
}
// SetOperatorDU gets a reference to the given []OperatorDuSingle and assigns it to the OperatorDU field.
func (o *GnbDuFunctionSingle) SetOperatorDU(v []OperatorDuSingle) {
o.OperatorDU = v
}
func (o GnbDuFunctionSingle) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o GnbDuFunctionSingle) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
serializedTop, errTop := json.Marshal(o.Top)
if errTop != nil {
return map[string]interface{}{}, errTop
}
errTop = json.Unmarshal([]byte(serializedTop), &toSerialize)
if errTop != nil {
return map[string]interface{}{}, errTop
}
if !IsNil(o.PerfMetricJob) {
toSerialize["PerfMetricJob"] = o.PerfMetricJob
}
if !IsNil(o.ThresholdMonitor) {
toSerialize["ThresholdMonitor"] = o.ThresholdMonitor
}
if !IsNil(o.ManagedNFService) {
toSerialize["ManagedNFService"] = o.ManagedNFService
}
if !IsNil(o.TraceJob) {
toSerialize["TraceJob"] = o.TraceJob
}
if !IsNil(o.Attributes) {
toSerialize["attributes"] = o.Attributes
}
if !IsNil(o.RRMPolicyRatio) {
toSerialize["RRMPolicyRatio"] = o.RRMPolicyRatio
}
if !IsNil(o.NrCellDu) {
toSerialize["NrCellDu"] = o.NrCellDu
}
if !IsNil(o.BwpMultiple) {
toSerialize["Bwp-Multiple"] = o.BwpMultiple
}
if !IsNil(o.NrSectorCarrierMultiple) {
toSerialize["NrSectorCarrier-Multiple"] = o.NrSectorCarrierMultiple
}
if !IsNil(o.EPF1C) {
toSerialize["EP_F1C"] = o.EPF1C
}
if !IsNil(o.EPF1U) {
toSerialize["EP_F1U"] = o.EPF1U
}
if !IsNil(o.DRACHOptimizationFunction) {
toSerialize["DRACHOptimizationFunction"] = o.DRACHOptimizationFunction
}
if !IsNil(o.OperatorDU) {
toSerialize["OperatorDU"] = o.OperatorDU
}
return toSerialize, nil
}
func (o *GnbDuFunctionSingle) UnmarshalJSON(bytes []byte) (err error) {
// This validates that all required properties are included in the JSON object
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"id",
}
allProperties := make(map[string]interface{})
err = json.Unmarshal(bytes, &allProperties)
if err != nil {
return err
}
for _, requiredProperty := range requiredProperties {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
varGnbDuFunctionSingle := _GnbDuFunctionSingle{}
err = json.Unmarshal(bytes, &varGnbDuFunctionSingle)
if err != nil {
return err
}
*o = GnbDuFunctionSingle(varGnbDuFunctionSingle)
return err
}
type NullableGnbDuFunctionSingle struct {
value *GnbDuFunctionSingle
isSet bool
}
func (v NullableGnbDuFunctionSingle) Get() *GnbDuFunctionSingle {
return v.value
}
func (v *NullableGnbDuFunctionSingle) Set(val *GnbDuFunctionSingle) {
v.value = val
v.isSet = true
}
func (v NullableGnbDuFunctionSingle) IsSet() bool {
return v.isSet
}
func (v *NullableGnbDuFunctionSingle) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGnbDuFunctionSingle(val *GnbDuFunctionSingle) *NullableGnbDuFunctionSingle {
return &NullableGnbDuFunctionSingle{value: val, isSet: true}
}
func (v NullableGnbDuFunctionSingle) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGnbDuFunctionSingle) 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

搜索帮助