代码拉取完成,页面将自动刷新
/*
Nmfaf_3daDataManagement
MFAF 3GPP DCCF Adaptor (3DA) Data Management 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_Nmfaf_3daDataManagement
import (
"encoding/json"
)
// checks if the ReportingOptions type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ReportingOptions{}
// ReportingOptions Represents reporting options for processed notifications.
type ReportingOptions struct {
NotifyWindow *TimeWindow `json:"notifyWindow,omitempty"`
// indicating a time in seconds.
NotifyPeriod *int32 `json:"notifyPeriod,omitempty"`
// indicating a time in seconds.
NotifyPeriodInc *int32 `json:"notifyPeriodInc,omitempty"`
// Notifications for the present subscription are sent only upon occurrence of events of the subscription with identifier that matches this attribute.
DepEventSubId *string `json:"depEventSubId,omitempty"`
// Unsigned Integer, i.e. only value 0 and integers above 0 are permissible.
MinClubbedNotif *int32 `json:"minClubbedNotif,omitempty"`
// Unsigned Integer, i.e. only value 0 and integers above 0 are permissible.
MaxClubbedNotif *int32 `json:"maxClubbedNotif,omitempty"`
}
// NewReportingOptions instantiates a new ReportingOptions 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 NewReportingOptions() *ReportingOptions {
this := ReportingOptions{}
return &this
}
// NewReportingOptionsWithDefaults instantiates a new ReportingOptions 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 NewReportingOptionsWithDefaults() *ReportingOptions {
this := ReportingOptions{}
return &this
}
// GetNotifyWindow returns the NotifyWindow field value if set, zero value otherwise.
func (o *ReportingOptions) GetNotifyWindow() TimeWindow {
if o == nil || IsNil(o.NotifyWindow) {
var ret TimeWindow
return ret
}
return *o.NotifyWindow
}
// GetNotifyWindowOk returns a tuple with the NotifyWindow field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ReportingOptions) GetNotifyWindowOk() (*TimeWindow, bool) {
if o == nil || IsNil(o.NotifyWindow) {
return nil, false
}
return o.NotifyWindow, true
}
// HasNotifyWindow returns a boolean if a field has been set.
func (o *ReportingOptions) HasNotifyWindow() bool {
if o != nil && !IsNil(o.NotifyWindow) {
return true
}
return false
}
// SetNotifyWindow gets a reference to the given TimeWindow and assigns it to the NotifyWindow field.
func (o *ReportingOptions) SetNotifyWindow(v TimeWindow) {
o.NotifyWindow = &v
}
// GetNotifyPeriod returns the NotifyPeriod field value if set, zero value otherwise.
func (o *ReportingOptions) GetNotifyPeriod() int32 {
if o == nil || IsNil(o.NotifyPeriod) {
var ret int32
return ret
}
return *o.NotifyPeriod
}
// GetNotifyPeriodOk returns a tuple with the NotifyPeriod field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ReportingOptions) GetNotifyPeriodOk() (*int32, bool) {
if o == nil || IsNil(o.NotifyPeriod) {
return nil, false
}
return o.NotifyPeriod, true
}
// HasNotifyPeriod returns a boolean if a field has been set.
func (o *ReportingOptions) HasNotifyPeriod() bool {
if o != nil && !IsNil(o.NotifyPeriod) {
return true
}
return false
}
// SetNotifyPeriod gets a reference to the given int32 and assigns it to the NotifyPeriod field.
func (o *ReportingOptions) SetNotifyPeriod(v int32) {
o.NotifyPeriod = &v
}
// GetNotifyPeriodInc returns the NotifyPeriodInc field value if set, zero value otherwise.
func (o *ReportingOptions) GetNotifyPeriodInc() int32 {
if o == nil || IsNil(o.NotifyPeriodInc) {
var ret int32
return ret
}
return *o.NotifyPeriodInc
}
// GetNotifyPeriodIncOk returns a tuple with the NotifyPeriodInc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ReportingOptions) GetNotifyPeriodIncOk() (*int32, bool) {
if o == nil || IsNil(o.NotifyPeriodInc) {
return nil, false
}
return o.NotifyPeriodInc, true
}
// HasNotifyPeriodInc returns a boolean if a field has been set.
func (o *ReportingOptions) HasNotifyPeriodInc() bool {
if o != nil && !IsNil(o.NotifyPeriodInc) {
return true
}
return false
}
// SetNotifyPeriodInc gets a reference to the given int32 and assigns it to the NotifyPeriodInc field.
func (o *ReportingOptions) SetNotifyPeriodInc(v int32) {
o.NotifyPeriodInc = &v
}
// GetDepEventSubId returns the DepEventSubId field value if set, zero value otherwise.
func (o *ReportingOptions) GetDepEventSubId() string {
if o == nil || IsNil(o.DepEventSubId) {
var ret string
return ret
}
return *o.DepEventSubId
}
// GetDepEventSubIdOk returns a tuple with the DepEventSubId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ReportingOptions) GetDepEventSubIdOk() (*string, bool) {
if o == nil || IsNil(o.DepEventSubId) {
return nil, false
}
return o.DepEventSubId, true
}
// HasDepEventSubId returns a boolean if a field has been set.
func (o *ReportingOptions) HasDepEventSubId() bool {
if o != nil && !IsNil(o.DepEventSubId) {
return true
}
return false
}
// SetDepEventSubId gets a reference to the given string and assigns it to the DepEventSubId field.
func (o *ReportingOptions) SetDepEventSubId(v string) {
o.DepEventSubId = &v
}
// GetMinClubbedNotif returns the MinClubbedNotif field value if set, zero value otherwise.
func (o *ReportingOptions) GetMinClubbedNotif() int32 {
if o == nil || IsNil(o.MinClubbedNotif) {
var ret int32
return ret
}
return *o.MinClubbedNotif
}
// GetMinClubbedNotifOk returns a tuple with the MinClubbedNotif field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ReportingOptions) GetMinClubbedNotifOk() (*int32, bool) {
if o == nil || IsNil(o.MinClubbedNotif) {
return nil, false
}
return o.MinClubbedNotif, true
}
// HasMinClubbedNotif returns a boolean if a field has been set.
func (o *ReportingOptions) HasMinClubbedNotif() bool {
if o != nil && !IsNil(o.MinClubbedNotif) {
return true
}
return false
}
// SetMinClubbedNotif gets a reference to the given int32 and assigns it to the MinClubbedNotif field.
func (o *ReportingOptions) SetMinClubbedNotif(v int32) {
o.MinClubbedNotif = &v
}
// GetMaxClubbedNotif returns the MaxClubbedNotif field value if set, zero value otherwise.
func (o *ReportingOptions) GetMaxClubbedNotif() int32 {
if o == nil || IsNil(o.MaxClubbedNotif) {
var ret int32
return ret
}
return *o.MaxClubbedNotif
}
// GetMaxClubbedNotifOk returns a tuple with the MaxClubbedNotif field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ReportingOptions) GetMaxClubbedNotifOk() (*int32, bool) {
if o == nil || IsNil(o.MaxClubbedNotif) {
return nil, false
}
return o.MaxClubbedNotif, true
}
// HasMaxClubbedNotif returns a boolean if a field has been set.
func (o *ReportingOptions) HasMaxClubbedNotif() bool {
if o != nil && !IsNil(o.MaxClubbedNotif) {
return true
}
return false
}
// SetMaxClubbedNotif gets a reference to the given int32 and assigns it to the MaxClubbedNotif field.
func (o *ReportingOptions) SetMaxClubbedNotif(v int32) {
o.MaxClubbedNotif = &v
}
func (o ReportingOptions) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ReportingOptions) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.NotifyWindow) {
toSerialize["notifyWindow"] = o.NotifyWindow
}
if !IsNil(o.NotifyPeriod) {
toSerialize["notifyPeriod"] = o.NotifyPeriod
}
if !IsNil(o.NotifyPeriodInc) {
toSerialize["notifyPeriodInc"] = o.NotifyPeriodInc
}
if !IsNil(o.DepEventSubId) {
toSerialize["depEventSubId"] = o.DepEventSubId
}
if !IsNil(o.MinClubbedNotif) {
toSerialize["minClubbedNotif"] = o.MinClubbedNotif
}
if !IsNil(o.MaxClubbedNotif) {
toSerialize["maxClubbedNotif"] = o.MaxClubbedNotif
}
return toSerialize, nil
}
type NullableReportingOptions struct {
value *ReportingOptions
isSet bool
}
func (v NullableReportingOptions) Get() *ReportingOptions {
return v.value
}
func (v *NullableReportingOptions) Set(val *ReportingOptions) {
v.value = val
v.isSet = true
}
func (v NullableReportingOptions) IsSet() bool {
return v.isSet
}
func (v *NullableReportingOptions) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableReportingOptions(val *ReportingOptions) *NullableReportingOptions {
return &NullableReportingOptions{value: val, isSet: true}
}
func (v NullableReportingOptions) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableReportingOptions) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。