Fetch the repository succeeded.
/*
Nhss_imsSDM
Nhss Subscriber Data Management Service for IMS. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.1.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nhss_imsSDM
import (
"encoding/json"
"fmt"
)
// checks if the UeReachabilityNotification type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &UeReachabilityNotification{}
// UeReachabilityNotification Represents the contents of a notification of UE reachability for IP sent by the HSS
type UeReachabilityNotification struct {
ReachabilityIndicator bool `json:"reachabilityIndicator"`
DetectingNode DetectingNode `json:"detectingNode"`
AccessType AccessType `json:"accessType"`
}
type _UeReachabilityNotification UeReachabilityNotification
// NewUeReachabilityNotification instantiates a new UeReachabilityNotification 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 NewUeReachabilityNotification(reachabilityIndicator bool, detectingNode DetectingNode, accessType AccessType) *UeReachabilityNotification {
this := UeReachabilityNotification{}
this.ReachabilityIndicator = reachabilityIndicator
this.DetectingNode = detectingNode
this.AccessType = accessType
return &this
}
// NewUeReachabilityNotificationWithDefaults instantiates a new UeReachabilityNotification 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 NewUeReachabilityNotificationWithDefaults() *UeReachabilityNotification {
this := UeReachabilityNotification{}
return &this
}
// GetReachabilityIndicator returns the ReachabilityIndicator field value
func (o *UeReachabilityNotification) GetReachabilityIndicator() bool {
if o == nil {
var ret bool
return ret
}
return o.ReachabilityIndicator
}
// GetReachabilityIndicatorOk returns a tuple with the ReachabilityIndicator field value
// and a boolean to check if the value has been set.
func (o *UeReachabilityNotification) GetReachabilityIndicatorOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.ReachabilityIndicator, true
}
// SetReachabilityIndicator sets field value
func (o *UeReachabilityNotification) SetReachabilityIndicator(v bool) {
o.ReachabilityIndicator = v
}
// GetDetectingNode returns the DetectingNode field value
func (o *UeReachabilityNotification) GetDetectingNode() DetectingNode {
if o == nil {
var ret DetectingNode
return ret
}
return o.DetectingNode
}
// GetDetectingNodeOk returns a tuple with the DetectingNode field value
// and a boolean to check if the value has been set.
func (o *UeReachabilityNotification) GetDetectingNodeOk() (*DetectingNode, bool) {
if o == nil {
return nil, false
}
return &o.DetectingNode, true
}
// SetDetectingNode sets field value
func (o *UeReachabilityNotification) SetDetectingNode(v DetectingNode) {
o.DetectingNode = v
}
// GetAccessType returns the AccessType field value
func (o *UeReachabilityNotification) GetAccessType() AccessType {
if o == nil {
var ret AccessType
return ret
}
return o.AccessType
}
// GetAccessTypeOk returns a tuple with the AccessType field value
// and a boolean to check if the value has been set.
func (o *UeReachabilityNotification) GetAccessTypeOk() (*AccessType, bool) {
if o == nil {
return nil, false
}
return &o.AccessType, true
}
// SetAccessType sets field value
func (o *UeReachabilityNotification) SetAccessType(v AccessType) {
o.AccessType = v
}
func (o UeReachabilityNotification) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o UeReachabilityNotification) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["reachabilityIndicator"] = o.ReachabilityIndicator
toSerialize["detectingNode"] = o.DetectingNode
toSerialize["accessType"] = o.AccessType
return toSerialize, nil
}
func (o *UeReachabilityNotification) 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{
"reachabilityIndicator",
"detectingNode",
"accessType",
}
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)
}
}
varUeReachabilityNotification := _UeReachabilityNotification{}
err = json.Unmarshal(bytes, &varUeReachabilityNotification)
if err != nil {
return err
}
*o = UeReachabilityNotification(varUeReachabilityNotification)
return err
}
type NullableUeReachabilityNotification struct {
value *UeReachabilityNotification
isSet bool
}
func (v NullableUeReachabilityNotification) Get() *UeReachabilityNotification {
return v.value
}
func (v *NullableUeReachabilityNotification) Set(val *UeReachabilityNotification) {
v.value = val
v.isSet = true
}
func (v NullableUeReachabilityNotification) IsSet() bool {
return v.isSet
}
func (v *NullableUeReachabilityNotification) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUeReachabilityNotification(val *UeReachabilityNotification) *NullableUeReachabilityNotification {
return &NullableUeReachabilityNotification{value: val, isSet: true}
}
func (v NullableUeReachabilityNotification) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableUeReachabilityNotification) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。