1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_eas_deploy_sub_data.go 10.87 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . update
/*
Nnef_EASDeployment
NEF EAS Deployment 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_Nnef_EASDeployment
import (
"encoding/json"
"fmt"
)
// checks if the EasDeploySubData type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &EasDeploySubData{}
// EasDeploySubData Represents an Individual EAS Deployment Event Subscription resource.
type EasDeploySubData struct {
AppId *string `json:"appId,omitempty"`
// Each of the element identifies a (DNN, S-NSSAI) combination.
DnnSnssaiInfos []DnnSnssaiInformation `json:"dnnSnssaiInfos,omitempty"`
EventId EasEvent `json:"eventId"`
// Represents the EAS Deployment Information changes event(s) to be reported. Shall only be present if the \"immRep\" attribute is included and sets to true, and the current status of EAS Deployment Information is available.
EventsNotifs []EasDeployInfoData `json:"eventsNotifs,omitempty"`
// Indication of immediate reporting. Set to true: requires the immediate reporting of the current status of EAS Deployment Information, if available. Set to false (default): EAS Deployment Information event report occurs when the event is met.
ImmRep *bool `json:"immRep,omitempty"`
// String identifying a group of devices network internal globally unique ID which identifies a set of IMSIs, as specified in clause 19.9 of 3GPP TS 23.003.
InterGroupId *string `json:"interGroupId,omitempty"`
NotifId string `json:"notifId"`
// String providing an URI formatted according to RFC 3986.
NotifUri string `json:"notifUri"`
}
type _EasDeploySubData EasDeploySubData
// NewEasDeploySubData instantiates a new EasDeploySubData 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 NewEasDeploySubData(eventId EasEvent, notifId string, notifUri string) *EasDeploySubData {
this := EasDeploySubData{}
this.EventId = eventId
this.NotifId = notifId
this.NotifUri = notifUri
return &this
}
// NewEasDeploySubDataWithDefaults instantiates a new EasDeploySubData 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 NewEasDeploySubDataWithDefaults() *EasDeploySubData {
this := EasDeploySubData{}
return &this
}
// GetAppId returns the AppId field value if set, zero value otherwise.
func (o *EasDeploySubData) GetAppId() string {
if o == nil || IsNil(o.AppId) {
var ret string
return ret
}
return *o.AppId
}
// GetAppIdOk returns a tuple with the AppId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EasDeploySubData) GetAppIdOk() (*string, bool) {
if o == nil || IsNil(o.AppId) {
return nil, false
}
return o.AppId, true
}
// HasAppId returns a boolean if a field has been set.
func (o *EasDeploySubData) HasAppId() bool {
if o != nil && !IsNil(o.AppId) {
return true
}
return false
}
// SetAppId gets a reference to the given string and assigns it to the AppId field.
func (o *EasDeploySubData) SetAppId(v string) {
o.AppId = &v
}
// GetDnnSnssaiInfos returns the DnnSnssaiInfos field value if set, zero value otherwise.
func (o *EasDeploySubData) GetDnnSnssaiInfos() []DnnSnssaiInformation {
if o == nil || IsNil(o.DnnSnssaiInfos) {
var ret []DnnSnssaiInformation
return ret
}
return o.DnnSnssaiInfos
}
// GetDnnSnssaiInfosOk returns a tuple with the DnnSnssaiInfos field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EasDeploySubData) GetDnnSnssaiInfosOk() ([]DnnSnssaiInformation, bool) {
if o == nil || IsNil(o.DnnSnssaiInfos) {
return nil, false
}
return o.DnnSnssaiInfos, true
}
// HasDnnSnssaiInfos returns a boolean if a field has been set.
func (o *EasDeploySubData) HasDnnSnssaiInfos() bool {
if o != nil && !IsNil(o.DnnSnssaiInfos) {
return true
}
return false
}
// SetDnnSnssaiInfos gets a reference to the given []DnnSnssaiInformation and assigns it to the DnnSnssaiInfos field.
func (o *EasDeploySubData) SetDnnSnssaiInfos(v []DnnSnssaiInformation) {
o.DnnSnssaiInfos = v
}
// GetEventId returns the EventId field value
func (o *EasDeploySubData) GetEventId() EasEvent {
if o == nil {
var ret EasEvent
return ret
}
return o.EventId
}
// GetEventIdOk returns a tuple with the EventId field value
// and a boolean to check if the value has been set.
func (o *EasDeploySubData) GetEventIdOk() (*EasEvent, bool) {
if o == nil {
return nil, false
}
return &o.EventId, true
}
// SetEventId sets field value
func (o *EasDeploySubData) SetEventId(v EasEvent) {
o.EventId = v
}
// GetEventsNotifs returns the EventsNotifs field value if set, zero value otherwise.
func (o *EasDeploySubData) GetEventsNotifs() []EasDeployInfoData {
if o == nil || IsNil(o.EventsNotifs) {
var ret []EasDeployInfoData
return ret
}
return o.EventsNotifs
}
// GetEventsNotifsOk returns a tuple with the EventsNotifs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EasDeploySubData) GetEventsNotifsOk() ([]EasDeployInfoData, bool) {
if o == nil || IsNil(o.EventsNotifs) {
return nil, false
}
return o.EventsNotifs, true
}
// HasEventsNotifs returns a boolean if a field has been set.
func (o *EasDeploySubData) HasEventsNotifs() bool {
if o != nil && !IsNil(o.EventsNotifs) {
return true
}
return false
}
// SetEventsNotifs gets a reference to the given []EasDeployInfoData and assigns it to the EventsNotifs field.
func (o *EasDeploySubData) SetEventsNotifs(v []EasDeployInfoData) {
o.EventsNotifs = v
}
// GetImmRep returns the ImmRep field value if set, zero value otherwise.
func (o *EasDeploySubData) GetImmRep() bool {
if o == nil || IsNil(o.ImmRep) {
var ret bool
return ret
}
return *o.ImmRep
}
// GetImmRepOk returns a tuple with the ImmRep field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EasDeploySubData) GetImmRepOk() (*bool, bool) {
if o == nil || IsNil(o.ImmRep) {
return nil, false
}
return o.ImmRep, true
}
// HasImmRep returns a boolean if a field has been set.
func (o *EasDeploySubData) HasImmRep() bool {
if o != nil && !IsNil(o.ImmRep) {
return true
}
return false
}
// SetImmRep gets a reference to the given bool and assigns it to the ImmRep field.
func (o *EasDeploySubData) SetImmRep(v bool) {
o.ImmRep = &v
}
// GetInterGroupId returns the InterGroupId field value if set, zero value otherwise.
func (o *EasDeploySubData) GetInterGroupId() string {
if o == nil || IsNil(o.InterGroupId) {
var ret string
return ret
}
return *o.InterGroupId
}
// GetInterGroupIdOk returns a tuple with the InterGroupId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EasDeploySubData) GetInterGroupIdOk() (*string, bool) {
if o == nil || IsNil(o.InterGroupId) {
return nil, false
}
return o.InterGroupId, true
}
// HasInterGroupId returns a boolean if a field has been set.
func (o *EasDeploySubData) HasInterGroupId() bool {
if o != nil && !IsNil(o.InterGroupId) {
return true
}
return false
}
// SetInterGroupId gets a reference to the given string and assigns it to the InterGroupId field.
func (o *EasDeploySubData) SetInterGroupId(v string) {
o.InterGroupId = &v
}
// GetNotifId returns the NotifId field value
func (o *EasDeploySubData) GetNotifId() string {
if o == nil {
var ret string
return ret
}
return o.NotifId
}
// GetNotifIdOk returns a tuple with the NotifId field value
// and a boolean to check if the value has been set.
func (o *EasDeploySubData) GetNotifIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.NotifId, true
}
// SetNotifId sets field value
func (o *EasDeploySubData) SetNotifId(v string) {
o.NotifId = v
}
// GetNotifUri returns the NotifUri field value
func (o *EasDeploySubData) GetNotifUri() string {
if o == nil {
var ret string
return ret
}
return o.NotifUri
}
// GetNotifUriOk returns a tuple with the NotifUri field value
// and a boolean to check if the value has been set.
func (o *EasDeploySubData) GetNotifUriOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.NotifUri, true
}
// SetNotifUri sets field value
func (o *EasDeploySubData) SetNotifUri(v string) {
o.NotifUri = v
}
func (o EasDeploySubData) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o EasDeploySubData) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AppId) {
toSerialize["appId"] = o.AppId
}
if !IsNil(o.DnnSnssaiInfos) {
toSerialize["dnnSnssaiInfos"] = o.DnnSnssaiInfos
}
toSerialize["eventId"] = o.EventId
if !IsNil(o.EventsNotifs) {
toSerialize["eventsNotifs"] = o.EventsNotifs
}
if !IsNil(o.ImmRep) {
toSerialize["immRep"] = o.ImmRep
}
if !IsNil(o.InterGroupId) {
toSerialize["interGroupId"] = o.InterGroupId
}
toSerialize["notifId"] = o.NotifId
toSerialize["notifUri"] = o.NotifUri
return toSerialize, nil
}
func (o *EasDeploySubData) 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{
"eventId",
"notifId",
"notifUri",
}
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)
}
}
varEasDeploySubData := _EasDeploySubData{}
err = json.Unmarshal(bytes, &varEasDeploySubData)
if err != nil {
return err
}
*o = EasDeploySubData(varEasDeploySubData)
return err
}
type NullableEasDeploySubData struct {
value *EasDeploySubData
isSet bool
}
func (v NullableEasDeploySubData) Get() *EasDeploySubData {
return v.value
}
func (v *NullableEasDeploySubData) Set(val *EasDeploySubData) {
v.value = val
v.isSet = true
}
func (v NullableEasDeploySubData) IsSet() bool {
return v.isSet
}
func (v *NullableEasDeploySubData) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableEasDeploySubData(val *EasDeploySubData) *NullableEasDeploySubData {
return &NullableEasDeploySubData{value: val, isSet: true}
}
func (v NullableEasDeploySubData) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableEasDeploySubData) 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

搜索帮助