Ai
1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_application_data_change_notif.go 10.36 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . update
/*
Nudr_DataRepository API OpenAPI file
Unified Data Repository Service. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 2.2.4
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nudr_DR
import (
"encoding/json"
"fmt"
)
// checks if the ApplicationDataChangeNotif type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ApplicationDataChangeNotif{}
// ApplicationDataChangeNotif Contains changed application data for which notification was requested.
type ApplicationDataChangeNotif struct {
IptvConfigData NullableIptvConfigData `json:"iptvConfigData,omitempty"`
PfdData *PfdChangeNotification `json:"pfdData,omitempty"`
BdtPolicyData *BdtPolicyData `json:"bdtPolicyData,omitempty"`
// String providing an URI formatted according to RFC 3986.
ResUri string `json:"resUri"`
SerParamData *ServiceParameterData `json:"serParamData,omitempty"`
AmInfluData *AmInfluData `json:"amInfluData,omitempty"`
}
type _ApplicationDataChangeNotif ApplicationDataChangeNotif
// NewApplicationDataChangeNotif instantiates a new ApplicationDataChangeNotif 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 NewApplicationDataChangeNotif(resUri string) *ApplicationDataChangeNotif {
this := ApplicationDataChangeNotif{}
this.ResUri = resUri
return &this
}
// NewApplicationDataChangeNotifWithDefaults instantiates a new ApplicationDataChangeNotif 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 NewApplicationDataChangeNotifWithDefaults() *ApplicationDataChangeNotif {
this := ApplicationDataChangeNotif{}
return &this
}
// GetIptvConfigData returns the IptvConfigData field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ApplicationDataChangeNotif) GetIptvConfigData() IptvConfigData {
if o == nil || IsNil(o.IptvConfigData.Get()) {
var ret IptvConfigData
return ret
}
return *o.IptvConfigData.Get()
}
// GetIptvConfigDataOk returns a tuple with the IptvConfigData field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ApplicationDataChangeNotif) GetIptvConfigDataOk() (*IptvConfigData, bool) {
if o == nil {
return nil, false
}
return o.IptvConfigData.Get(), o.IptvConfigData.IsSet()
}
// HasIptvConfigData returns a boolean if a field has been set.
func (o *ApplicationDataChangeNotif) HasIptvConfigData() bool {
if o != nil && o.IptvConfigData.IsSet() {
return true
}
return false
}
// SetIptvConfigData gets a reference to the given NullableIptvConfigData and assigns it to the IptvConfigData field.
func (o *ApplicationDataChangeNotif) SetIptvConfigData(v IptvConfigData) {
o.IptvConfigData.Set(&v)
}
// SetIptvConfigDataNil sets the value for IptvConfigData to be an explicit nil
func (o *ApplicationDataChangeNotif) SetIptvConfigDataNil() {
o.IptvConfigData.Set(nil)
}
// UnsetIptvConfigData ensures that no value is present for IptvConfigData, not even an explicit nil
func (o *ApplicationDataChangeNotif) UnsetIptvConfigData() {
o.IptvConfigData.Unset()
}
// GetPfdData returns the PfdData field value if set, zero value otherwise.
func (o *ApplicationDataChangeNotif) GetPfdData() PfdChangeNotification {
if o == nil || IsNil(o.PfdData) {
var ret PfdChangeNotification
return ret
}
return *o.PfdData
}
// GetPfdDataOk returns a tuple with the PfdData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationDataChangeNotif) GetPfdDataOk() (*PfdChangeNotification, bool) {
if o == nil || IsNil(o.PfdData) {
return nil, false
}
return o.PfdData, true
}
// HasPfdData returns a boolean if a field has been set.
func (o *ApplicationDataChangeNotif) HasPfdData() bool {
if o != nil && !IsNil(o.PfdData) {
return true
}
return false
}
// SetPfdData gets a reference to the given PfdChangeNotification and assigns it to the PfdData field.
func (o *ApplicationDataChangeNotif) SetPfdData(v PfdChangeNotification) {
o.PfdData = &v
}
// GetBdtPolicyData returns the BdtPolicyData field value if set, zero value otherwise.
func (o *ApplicationDataChangeNotif) GetBdtPolicyData() BdtPolicyData {
if o == nil || IsNil(o.BdtPolicyData) {
var ret BdtPolicyData
return ret
}
return *o.BdtPolicyData
}
// GetBdtPolicyDataOk returns a tuple with the BdtPolicyData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationDataChangeNotif) GetBdtPolicyDataOk() (*BdtPolicyData, bool) {
if o == nil || IsNil(o.BdtPolicyData) {
return nil, false
}
return o.BdtPolicyData, true
}
// HasBdtPolicyData returns a boolean if a field has been set.
func (o *ApplicationDataChangeNotif) HasBdtPolicyData() bool {
if o != nil && !IsNil(o.BdtPolicyData) {
return true
}
return false
}
// SetBdtPolicyData gets a reference to the given BdtPolicyData and assigns it to the BdtPolicyData field.
func (o *ApplicationDataChangeNotif) SetBdtPolicyData(v BdtPolicyData) {
o.BdtPolicyData = &v
}
// GetResUri returns the ResUri field value
func (o *ApplicationDataChangeNotif) GetResUri() string {
if o == nil {
var ret string
return ret
}
return o.ResUri
}
// GetResUriOk returns a tuple with the ResUri field value
// and a boolean to check if the value has been set.
func (o *ApplicationDataChangeNotif) GetResUriOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ResUri, true
}
// SetResUri sets field value
func (o *ApplicationDataChangeNotif) SetResUri(v string) {
o.ResUri = v
}
// GetSerParamData returns the SerParamData field value if set, zero value otherwise.
func (o *ApplicationDataChangeNotif) GetSerParamData() ServiceParameterData {
if o == nil || IsNil(o.SerParamData) {
var ret ServiceParameterData
return ret
}
return *o.SerParamData
}
// GetSerParamDataOk returns a tuple with the SerParamData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationDataChangeNotif) GetSerParamDataOk() (*ServiceParameterData, bool) {
if o == nil || IsNil(o.SerParamData) {
return nil, false
}
return o.SerParamData, true
}
// HasSerParamData returns a boolean if a field has been set.
func (o *ApplicationDataChangeNotif) HasSerParamData() bool {
if o != nil && !IsNil(o.SerParamData) {
return true
}
return false
}
// SetSerParamData gets a reference to the given ServiceParameterData and assigns it to the SerParamData field.
func (o *ApplicationDataChangeNotif) SetSerParamData(v ServiceParameterData) {
o.SerParamData = &v
}
// GetAmInfluData returns the AmInfluData field value if set, zero value otherwise.
func (o *ApplicationDataChangeNotif) GetAmInfluData() AmInfluData {
if o == nil || IsNil(o.AmInfluData) {
var ret AmInfluData
return ret
}
return *o.AmInfluData
}
// GetAmInfluDataOk returns a tuple with the AmInfluData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApplicationDataChangeNotif) GetAmInfluDataOk() (*AmInfluData, bool) {
if o == nil || IsNil(o.AmInfluData) {
return nil, false
}
return o.AmInfluData, true
}
// HasAmInfluData returns a boolean if a field has been set.
func (o *ApplicationDataChangeNotif) HasAmInfluData() bool {
if o != nil && !IsNil(o.AmInfluData) {
return true
}
return false
}
// SetAmInfluData gets a reference to the given AmInfluData and assigns it to the AmInfluData field.
func (o *ApplicationDataChangeNotif) SetAmInfluData(v AmInfluData) {
o.AmInfluData = &v
}
func (o ApplicationDataChangeNotif) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ApplicationDataChangeNotif) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.IptvConfigData.IsSet() {
toSerialize["iptvConfigData"] = o.IptvConfigData.Get()
}
if !IsNil(o.PfdData) {
toSerialize["pfdData"] = o.PfdData
}
if !IsNil(o.BdtPolicyData) {
toSerialize["bdtPolicyData"] = o.BdtPolicyData
}
toSerialize["resUri"] = o.ResUri
if !IsNil(o.SerParamData) {
toSerialize["serParamData"] = o.SerParamData
}
if !IsNil(o.AmInfluData) {
toSerialize["amInfluData"] = o.AmInfluData
}
return toSerialize, nil
}
func (o *ApplicationDataChangeNotif) 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{
"resUri",
}
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)
}
}
varApplicationDataChangeNotif := _ApplicationDataChangeNotif{}
err = json.Unmarshal(bytes, &varApplicationDataChangeNotif)
if err != nil {
return err
}
*o = ApplicationDataChangeNotif(varApplicationDataChangeNotif)
return err
}
type NullableApplicationDataChangeNotif struct {
value *ApplicationDataChangeNotif
isSet bool
}
func (v NullableApplicationDataChangeNotif) Get() *ApplicationDataChangeNotif {
return v.value
}
func (v *NullableApplicationDataChangeNotif) Set(val *ApplicationDataChangeNotif) {
v.value = val
v.isSet = true
}
func (v NullableApplicationDataChangeNotif) IsSet() bool {
return v.isSet
}
func (v *NullableApplicationDataChangeNotif) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableApplicationDataChangeNotif(val *ApplicationDataChangeNotif) *NullableApplicationDataChangeNotif {
return &NullableApplicationDataChangeNotif{value: val, isSet: true}
}
func (v NullableApplicationDataChangeNotif) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableApplicationDataChangeNotif) 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

搜索帮助