代码拉取完成,页面将自动刷新
/*
Nnwdaf_MLModelProvision
Nnwdaf_MLModelProvision API Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nnwdaf_MLModelProvision
import (
"encoding/json"
)
// checks if the DnPerformanceReq type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &DnPerformanceReq{}
// DnPerformanceReq Represents other DN performance analytics requirements.
type DnPerformanceReq struct {
DnPerfOrderCriter *DnPerfOrderingCriterion `json:"dnPerfOrderCriter,omitempty"`
Order *MatchingDirection `json:"order,omitempty"`
ReportThresholds []ThresholdLevel `json:"reportThresholds,omitempty"`
}
// NewDnPerformanceReq instantiates a new DnPerformanceReq 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 NewDnPerformanceReq() *DnPerformanceReq {
this := DnPerformanceReq{}
return &this
}
// NewDnPerformanceReqWithDefaults instantiates a new DnPerformanceReq 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 NewDnPerformanceReqWithDefaults() *DnPerformanceReq {
this := DnPerformanceReq{}
return &this
}
// GetDnPerfOrderCriter returns the DnPerfOrderCriter field value if set, zero value otherwise.
func (o *DnPerformanceReq) GetDnPerfOrderCriter() DnPerfOrderingCriterion {
if o == nil || IsNil(o.DnPerfOrderCriter) {
var ret DnPerfOrderingCriterion
return ret
}
return *o.DnPerfOrderCriter
}
// GetDnPerfOrderCriterOk returns a tuple with the DnPerfOrderCriter field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DnPerformanceReq) GetDnPerfOrderCriterOk() (*DnPerfOrderingCriterion, bool) {
if o == nil || IsNil(o.DnPerfOrderCriter) {
return nil, false
}
return o.DnPerfOrderCriter, true
}
// HasDnPerfOrderCriter returns a boolean if a field has been set.
func (o *DnPerformanceReq) HasDnPerfOrderCriter() bool {
if o != nil && !IsNil(o.DnPerfOrderCriter) {
return true
}
return false
}
// SetDnPerfOrderCriter gets a reference to the given DnPerfOrderingCriterion and assigns it to the DnPerfOrderCriter field.
func (o *DnPerformanceReq) SetDnPerfOrderCriter(v DnPerfOrderingCriterion) {
o.DnPerfOrderCriter = &v
}
// GetOrder returns the Order field value if set, zero value otherwise.
func (o *DnPerformanceReq) GetOrder() MatchingDirection {
if o == nil || IsNil(o.Order) {
var ret MatchingDirection
return ret
}
return *o.Order
}
// GetOrderOk returns a tuple with the Order field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DnPerformanceReq) GetOrderOk() (*MatchingDirection, bool) {
if o == nil || IsNil(o.Order) {
return nil, false
}
return o.Order, true
}
// HasOrder returns a boolean if a field has been set.
func (o *DnPerformanceReq) HasOrder() bool {
if o != nil && !IsNil(o.Order) {
return true
}
return false
}
// SetOrder gets a reference to the given MatchingDirection and assigns it to the Order field.
func (o *DnPerformanceReq) SetOrder(v MatchingDirection) {
o.Order = &v
}
// GetReportThresholds returns the ReportThresholds field value if set, zero value otherwise.
func (o *DnPerformanceReq) GetReportThresholds() []ThresholdLevel {
if o == nil || IsNil(o.ReportThresholds) {
var ret []ThresholdLevel
return ret
}
return o.ReportThresholds
}
// GetReportThresholdsOk returns a tuple with the ReportThresholds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DnPerformanceReq) GetReportThresholdsOk() ([]ThresholdLevel, bool) {
if o == nil || IsNil(o.ReportThresholds) {
return nil, false
}
return o.ReportThresholds, true
}
// HasReportThresholds returns a boolean if a field has been set.
func (o *DnPerformanceReq) HasReportThresholds() bool {
if o != nil && !IsNil(o.ReportThresholds) {
return true
}
return false
}
// SetReportThresholds gets a reference to the given []ThresholdLevel and assigns it to the ReportThresholds field.
func (o *DnPerformanceReq) SetReportThresholds(v []ThresholdLevel) {
o.ReportThresholds = v
}
func (o DnPerformanceReq) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o DnPerformanceReq) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.DnPerfOrderCriter) {
toSerialize["dnPerfOrderCriter"] = o.DnPerfOrderCriter
}
if !IsNil(o.Order) {
toSerialize["order"] = o.Order
}
if !IsNil(o.ReportThresholds) {
toSerialize["reportThresholds"] = o.ReportThresholds
}
return toSerialize, nil
}
type NullableDnPerformanceReq struct {
value *DnPerformanceReq
isSet bool
}
func (v NullableDnPerformanceReq) Get() *DnPerformanceReq {
return v.value
}
func (v *NullableDnPerformanceReq) Set(val *DnPerformanceReq) {
v.value = val
v.isSet = true
}
func (v NullableDnPerformanceReq) IsSet() bool {
return v.isSet
}
func (v *NullableDnPerformanceReq) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDnPerformanceReq(val *DnPerformanceReq) *NullableDnPerformanceReq {
return &NullableDnPerformanceReq{value: val, isSet: true}
}
func (v NullableDnPerformanceReq) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableDnPerformanceReq) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。