1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_managed_element_nc_o.go 11.31 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . 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 ManagedElementNcO type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ManagedElementNcO{}
// ManagedElementNcO struct for ManagedElementNcO
type ManagedElementNcO struct {
MnsAgent []MnsAgentSingle `json:"MnsAgent,omitempty"`
PerfMetricJob []PerfMetricJobSingle `json:"PerfMetricJob,omitempty"`
ThresholdMonitor []ThresholdMonitorSingle `json:"ThresholdMonitor,omitempty"`
TraceJob []TraceJobSingle `json:"TraceJob,omitempty"`
NtfSubscriptionControl []NtfSubscriptionControlSingle `json:"NtfSubscriptionControl,omitempty"`
AlarmList *AlarmListSingle `json:"AlarmList,omitempty"`
FileDownloadJob []FileDownloadJobSingle `json:"FileDownloadJob,omitempty"`
Files []FilesSingle `json:"Files,omitempty"`
}
// NewManagedElementNcO instantiates a new ManagedElementNcO 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 NewManagedElementNcO() *ManagedElementNcO {
this := ManagedElementNcO{}
return &this
}
// NewManagedElementNcOWithDefaults instantiates a new ManagedElementNcO 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 NewManagedElementNcOWithDefaults() *ManagedElementNcO {
this := ManagedElementNcO{}
return &this
}
// GetMnsAgent returns the MnsAgent field value if set, zero value otherwise.
func (o *ManagedElementNcO) GetMnsAgent() []MnsAgentSingle {
if o == nil || IsNil(o.MnsAgent) {
var ret []MnsAgentSingle
return ret
}
return o.MnsAgent
}
// GetMnsAgentOk returns a tuple with the MnsAgent field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedElementNcO) GetMnsAgentOk() ([]MnsAgentSingle, bool) {
if o == nil || IsNil(o.MnsAgent) {
return nil, false
}
return o.MnsAgent, true
}
// HasMnsAgent returns a boolean if a field has been set.
func (o *ManagedElementNcO) HasMnsAgent() bool {
if o != nil && !IsNil(o.MnsAgent) {
return true
}
return false
}
// SetMnsAgent gets a reference to the given []MnsAgentSingle and assigns it to the MnsAgent field.
func (o *ManagedElementNcO) SetMnsAgent(v []MnsAgentSingle) {
o.MnsAgent = v
}
// GetPerfMetricJob returns the PerfMetricJob field value if set, zero value otherwise.
func (o *ManagedElementNcO) 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 *ManagedElementNcO) 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 *ManagedElementNcO) 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 *ManagedElementNcO) SetPerfMetricJob(v []PerfMetricJobSingle) {
o.PerfMetricJob = v
}
// GetThresholdMonitor returns the ThresholdMonitor field value if set, zero value otherwise.
func (o *ManagedElementNcO) 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 *ManagedElementNcO) 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 *ManagedElementNcO) 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 *ManagedElementNcO) SetThresholdMonitor(v []ThresholdMonitorSingle) {
o.ThresholdMonitor = v
}
// GetTraceJob returns the TraceJob field value if set, zero value otherwise.
func (o *ManagedElementNcO) 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 *ManagedElementNcO) 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 *ManagedElementNcO) 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 *ManagedElementNcO) SetTraceJob(v []TraceJobSingle) {
o.TraceJob = v
}
// GetNtfSubscriptionControl returns the NtfSubscriptionControl field value if set, zero value otherwise.
func (o *ManagedElementNcO) GetNtfSubscriptionControl() []NtfSubscriptionControlSingle {
if o == nil || IsNil(o.NtfSubscriptionControl) {
var ret []NtfSubscriptionControlSingle
return ret
}
return o.NtfSubscriptionControl
}
// GetNtfSubscriptionControlOk returns a tuple with the NtfSubscriptionControl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedElementNcO) GetNtfSubscriptionControlOk() ([]NtfSubscriptionControlSingle, bool) {
if o == nil || IsNil(o.NtfSubscriptionControl) {
return nil, false
}
return o.NtfSubscriptionControl, true
}
// HasNtfSubscriptionControl returns a boolean if a field has been set.
func (o *ManagedElementNcO) HasNtfSubscriptionControl() bool {
if o != nil && !IsNil(o.NtfSubscriptionControl) {
return true
}
return false
}
// SetNtfSubscriptionControl gets a reference to the given []NtfSubscriptionControlSingle and assigns it to the NtfSubscriptionControl field.
func (o *ManagedElementNcO) SetNtfSubscriptionControl(v []NtfSubscriptionControlSingle) {
o.NtfSubscriptionControl = v
}
// GetAlarmList returns the AlarmList field value if set, zero value otherwise.
func (o *ManagedElementNcO) GetAlarmList() AlarmListSingle {
if o == nil || IsNil(o.AlarmList) {
var ret AlarmListSingle
return ret
}
return *o.AlarmList
}
// GetAlarmListOk returns a tuple with the AlarmList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedElementNcO) GetAlarmListOk() (*AlarmListSingle, bool) {
if o == nil || IsNil(o.AlarmList) {
return nil, false
}
return o.AlarmList, true
}
// HasAlarmList returns a boolean if a field has been set.
func (o *ManagedElementNcO) HasAlarmList() bool {
if o != nil && !IsNil(o.AlarmList) {
return true
}
return false
}
// SetAlarmList gets a reference to the given AlarmListSingle and assigns it to the AlarmList field.
func (o *ManagedElementNcO) SetAlarmList(v AlarmListSingle) {
o.AlarmList = &v
}
// GetFileDownloadJob returns the FileDownloadJob field value if set, zero value otherwise.
func (o *ManagedElementNcO) GetFileDownloadJob() []FileDownloadJobSingle {
if o == nil || IsNil(o.FileDownloadJob) {
var ret []FileDownloadJobSingle
return ret
}
return o.FileDownloadJob
}
// GetFileDownloadJobOk returns a tuple with the FileDownloadJob field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedElementNcO) GetFileDownloadJobOk() ([]FileDownloadJobSingle, bool) {
if o == nil || IsNil(o.FileDownloadJob) {
return nil, false
}
return o.FileDownloadJob, true
}
// HasFileDownloadJob returns a boolean if a field has been set.
func (o *ManagedElementNcO) HasFileDownloadJob() bool {
if o != nil && !IsNil(o.FileDownloadJob) {
return true
}
return false
}
// SetFileDownloadJob gets a reference to the given []FileDownloadJobSingle and assigns it to the FileDownloadJob field.
func (o *ManagedElementNcO) SetFileDownloadJob(v []FileDownloadJobSingle) {
o.FileDownloadJob = v
}
// GetFiles returns the Files field value if set, zero value otherwise.
func (o *ManagedElementNcO) GetFiles() []FilesSingle {
if o == nil || IsNil(o.Files) {
var ret []FilesSingle
return ret
}
return o.Files
}
// GetFilesOk returns a tuple with the Files field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedElementNcO) GetFilesOk() ([]FilesSingle, bool) {
if o == nil || IsNil(o.Files) {
return nil, false
}
return o.Files, true
}
// HasFiles returns a boolean if a field has been set.
func (o *ManagedElementNcO) HasFiles() bool {
if o != nil && !IsNil(o.Files) {
return true
}
return false
}
// SetFiles gets a reference to the given []FilesSingle and assigns it to the Files field.
func (o *ManagedElementNcO) SetFiles(v []FilesSingle) {
o.Files = v
}
func (o ManagedElementNcO) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ManagedElementNcO) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.MnsAgent) {
toSerialize["MnsAgent"] = o.MnsAgent
}
if !IsNil(o.PerfMetricJob) {
toSerialize["PerfMetricJob"] = o.PerfMetricJob
}
if !IsNil(o.ThresholdMonitor) {
toSerialize["ThresholdMonitor"] = o.ThresholdMonitor
}
if !IsNil(o.TraceJob) {
toSerialize["TraceJob"] = o.TraceJob
}
if !IsNil(o.NtfSubscriptionControl) {
toSerialize["NtfSubscriptionControl"] = o.NtfSubscriptionControl
}
if !IsNil(o.AlarmList) {
toSerialize["AlarmList"] = o.AlarmList
}
if !IsNil(o.FileDownloadJob) {
toSerialize["FileDownloadJob"] = o.FileDownloadJob
}
if !IsNil(o.Files) {
toSerialize["Files"] = o.Files
}
return toSerialize, nil
}
type NullableManagedElementNcO struct {
value *ManagedElementNcO
isSet bool
}
func (v NullableManagedElementNcO) Get() *ManagedElementNcO {
return v.value
}
func (v *NullableManagedElementNcO) Set(val *ManagedElementNcO) {
v.value = val
v.isSet = true
}
func (v NullableManagedElementNcO) IsSet() bool {
return v.isSet
}
func (v *NullableManagedElementNcO) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableManagedElementNcO(val *ManagedElementNcO) *NullableManagedElementNcO {
return &NullableManagedElementNcO{value: val, isSet: true}
}
func (v NullableManagedElementNcO) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableManagedElementNcO) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/konglinglong/openapi.git
git@gitee.com:konglinglong/openapi.git
konglinglong
openapi
openapi
e403a3c726a4

搜索帮助