1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_qos_monitoring_information.go 10.54 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . update
/*
Ntsctsf_QoSandTSCAssistance Service API
TSCTSF QoS and TSC Assistance Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.2
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Ntsctsf_QoSandTSCAssistance
import (
"encoding/json"
"fmt"
)
// checks if the QosMonitoringInformation type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &QosMonitoringInformation{}
// QosMonitoringInformation Represents QoS monitoring information.
type QosMonitoringInformation struct {
ReqQosMonParams []RequestedQosMonitoringParameter `json:"reqQosMonParams"`
RepFreqs []ReportingFrequency `json:"repFreqs"`
// Unsigned Integer, i.e. only value 0 and integers above 0 are permissible.
RepThreshDl *int32 `json:"repThreshDl,omitempty"`
// Unsigned Integer, i.e. only value 0 and integers above 0 are permissible.
RepThreshUl *int32 `json:"repThreshUl,omitempty"`
// Unsigned Integer, i.e. only value 0 and integers above 0 are permissible.
RepThreshRp *int32 `json:"repThreshRp,omitempty"`
// indicating a time in seconds.
WaitTime *int32 `json:"waitTime,omitempty"`
// indicating a time in seconds.
RepPeriod *int32 `json:"repPeriod,omitempty"`
}
type _QosMonitoringInformation QosMonitoringInformation
// NewQosMonitoringInformation instantiates a new QosMonitoringInformation 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 NewQosMonitoringInformation(reqQosMonParams []RequestedQosMonitoringParameter, repFreqs []ReportingFrequency) *QosMonitoringInformation {
this := QosMonitoringInformation{}
this.ReqQosMonParams = reqQosMonParams
this.RepFreqs = repFreqs
return &this
}
// NewQosMonitoringInformationWithDefaults instantiates a new QosMonitoringInformation 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 NewQosMonitoringInformationWithDefaults() *QosMonitoringInformation {
this := QosMonitoringInformation{}
return &this
}
// GetReqQosMonParams returns the ReqQosMonParams field value
func (o *QosMonitoringInformation) GetReqQosMonParams() []RequestedQosMonitoringParameter {
if o == nil {
var ret []RequestedQosMonitoringParameter
return ret
}
return o.ReqQosMonParams
}
// GetReqQosMonParamsOk returns a tuple with the ReqQosMonParams field value
// and a boolean to check if the value has been set.
func (o *QosMonitoringInformation) GetReqQosMonParamsOk() ([]RequestedQosMonitoringParameter, bool) {
if o == nil {
return nil, false
}
return o.ReqQosMonParams, true
}
// SetReqQosMonParams sets field value
func (o *QosMonitoringInformation) SetReqQosMonParams(v []RequestedQosMonitoringParameter) {
o.ReqQosMonParams = v
}
// GetRepFreqs returns the RepFreqs field value
func (o *QosMonitoringInformation) GetRepFreqs() []ReportingFrequency {
if o == nil {
var ret []ReportingFrequency
return ret
}
return o.RepFreqs
}
// GetRepFreqsOk returns a tuple with the RepFreqs field value
// and a boolean to check if the value has been set.
func (o *QosMonitoringInformation) GetRepFreqsOk() ([]ReportingFrequency, bool) {
if o == nil {
return nil, false
}
return o.RepFreqs, true
}
// SetRepFreqs sets field value
func (o *QosMonitoringInformation) SetRepFreqs(v []ReportingFrequency) {
o.RepFreqs = v
}
// GetRepThreshDl returns the RepThreshDl field value if set, zero value otherwise.
func (o *QosMonitoringInformation) GetRepThreshDl() int32 {
if o == nil || IsNil(o.RepThreshDl) {
var ret int32
return ret
}
return *o.RepThreshDl
}
// GetRepThreshDlOk returns a tuple with the RepThreshDl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosMonitoringInformation) GetRepThreshDlOk() (*int32, bool) {
if o == nil || IsNil(o.RepThreshDl) {
return nil, false
}
return o.RepThreshDl, true
}
// HasRepThreshDl returns a boolean if a field has been set.
func (o *QosMonitoringInformation) HasRepThreshDl() bool {
if o != nil && !IsNil(o.RepThreshDl) {
return true
}
return false
}
// SetRepThreshDl gets a reference to the given int32 and assigns it to the RepThreshDl field.
func (o *QosMonitoringInformation) SetRepThreshDl(v int32) {
o.RepThreshDl = &v
}
// GetRepThreshUl returns the RepThreshUl field value if set, zero value otherwise.
func (o *QosMonitoringInformation) GetRepThreshUl() int32 {
if o == nil || IsNil(o.RepThreshUl) {
var ret int32
return ret
}
return *o.RepThreshUl
}
// GetRepThreshUlOk returns a tuple with the RepThreshUl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosMonitoringInformation) GetRepThreshUlOk() (*int32, bool) {
if o == nil || IsNil(o.RepThreshUl) {
return nil, false
}
return o.RepThreshUl, true
}
// HasRepThreshUl returns a boolean if a field has been set.
func (o *QosMonitoringInformation) HasRepThreshUl() bool {
if o != nil && !IsNil(o.RepThreshUl) {
return true
}
return false
}
// SetRepThreshUl gets a reference to the given int32 and assigns it to the RepThreshUl field.
func (o *QosMonitoringInformation) SetRepThreshUl(v int32) {
o.RepThreshUl = &v
}
// GetRepThreshRp returns the RepThreshRp field value if set, zero value otherwise.
func (o *QosMonitoringInformation) GetRepThreshRp() int32 {
if o == nil || IsNil(o.RepThreshRp) {
var ret int32
return ret
}
return *o.RepThreshRp
}
// GetRepThreshRpOk returns a tuple with the RepThreshRp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosMonitoringInformation) GetRepThreshRpOk() (*int32, bool) {
if o == nil || IsNil(o.RepThreshRp) {
return nil, false
}
return o.RepThreshRp, true
}
// HasRepThreshRp returns a boolean if a field has been set.
func (o *QosMonitoringInformation) HasRepThreshRp() bool {
if o != nil && !IsNil(o.RepThreshRp) {
return true
}
return false
}
// SetRepThreshRp gets a reference to the given int32 and assigns it to the RepThreshRp field.
func (o *QosMonitoringInformation) SetRepThreshRp(v int32) {
o.RepThreshRp = &v
}
// GetWaitTime returns the WaitTime field value if set, zero value otherwise.
func (o *QosMonitoringInformation) GetWaitTime() int32 {
if o == nil || IsNil(o.WaitTime) {
var ret int32
return ret
}
return *o.WaitTime
}
// GetWaitTimeOk returns a tuple with the WaitTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosMonitoringInformation) GetWaitTimeOk() (*int32, bool) {
if o == nil || IsNil(o.WaitTime) {
return nil, false
}
return o.WaitTime, true
}
// HasWaitTime returns a boolean if a field has been set.
func (o *QosMonitoringInformation) HasWaitTime() bool {
if o != nil && !IsNil(o.WaitTime) {
return true
}
return false
}
// SetWaitTime gets a reference to the given int32 and assigns it to the WaitTime field.
func (o *QosMonitoringInformation) SetWaitTime(v int32) {
o.WaitTime = &v
}
// GetRepPeriod returns the RepPeriod field value if set, zero value otherwise.
func (o *QosMonitoringInformation) GetRepPeriod() int32 {
if o == nil || IsNil(o.RepPeriod) {
var ret int32
return ret
}
return *o.RepPeriod
}
// GetRepPeriodOk returns a tuple with the RepPeriod field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *QosMonitoringInformation) GetRepPeriodOk() (*int32, bool) {
if o == nil || IsNil(o.RepPeriod) {
return nil, false
}
return o.RepPeriod, true
}
// HasRepPeriod returns a boolean if a field has been set.
func (o *QosMonitoringInformation) HasRepPeriod() bool {
if o != nil && !IsNil(o.RepPeriod) {
return true
}
return false
}
// SetRepPeriod gets a reference to the given int32 and assigns it to the RepPeriod field.
func (o *QosMonitoringInformation) SetRepPeriod(v int32) {
o.RepPeriod = &v
}
func (o QosMonitoringInformation) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o QosMonitoringInformation) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["reqQosMonParams"] = o.ReqQosMonParams
toSerialize["repFreqs"] = o.RepFreqs
if !IsNil(o.RepThreshDl) {
toSerialize["repThreshDl"] = o.RepThreshDl
}
if !IsNil(o.RepThreshUl) {
toSerialize["repThreshUl"] = o.RepThreshUl
}
if !IsNil(o.RepThreshRp) {
toSerialize["repThreshRp"] = o.RepThreshRp
}
if !IsNil(o.WaitTime) {
toSerialize["waitTime"] = o.WaitTime
}
if !IsNil(o.RepPeriod) {
toSerialize["repPeriod"] = o.RepPeriod
}
return toSerialize, nil
}
func (o *QosMonitoringInformation) 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{
"reqQosMonParams",
"repFreqs",
}
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)
}
}
varQosMonitoringInformation := _QosMonitoringInformation{}
err = json.Unmarshal(bytes, &varQosMonitoringInformation)
if err != nil {
return err
}
*o = QosMonitoringInformation(varQosMonitoringInformation)
return err
}
type NullableQosMonitoringInformation struct {
value *QosMonitoringInformation
isSet bool
}
func (v NullableQosMonitoringInformation) Get() *QosMonitoringInformation {
return v.value
}
func (v *NullableQosMonitoringInformation) Set(val *QosMonitoringInformation) {
v.value = val
v.isSet = true
}
func (v NullableQosMonitoringInformation) IsSet() bool {
return v.isSet
}
func (v *NullableQosMonitoringInformation) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableQosMonitoringInformation(val *QosMonitoringInformation) *NullableQosMonitoringInformation {
return &NullableQosMonitoringInformation{value: val, isSet: true}
}
func (v NullableQosMonitoringInformation) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableQosMonitoringInformation) 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

搜索帮助