代码拉取完成,页面将自动刷新
/*
3gpp-ueid
API for UE ID service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_UEId
import (
"encoding/json"
"fmt"
)
// checks if the UeIdReq type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &UeIdReq{}
// UeIdReq Represents the parameters to request the retrieval of AF specific UE ID.
type UeIdReq struct {
AfId string `json:"afId"`
// Unsigned integer with valid values between 0 and 65535.
AppPortId *int32 `json:"appPortId,omitempty"`
// String representing a Data Network as defined in clause 9A of 3GPP TS 23.003; it shall contain either a DNN Network Identifier, or a full DNN with both the Network Identifier and Operator Identifier, as specified in 3GPP TS 23.003 clause 9.1.1 and 9.1.2. It shall be coded as string in which the labels are separated by dots (e.g. \"Label1.Label2.Label3\").
Dnn *string `json:"dnn,omitempty"`
IpDomain *string `json:"ipDomain,omitempty"`
// String uniquely identifying MTC provider information.
MtcProviderId *string `json:"mtcProviderId,omitempty"`
Snssai *Snssai `json:"snssai,omitempty"`
UeIpAddr NullableIpAddr `json:"ueIpAddr,omitempty"`
// String identifying a MAC address formatted in the hexadecimal notation according to clause 1.1 and clause 2.1 of RFC 7042.
UeMacAddr *string `json:"ueMacAddr,omitempty"`
}
type _UeIdReq UeIdReq
// NewUeIdReq instantiates a new UeIdReq 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 NewUeIdReq(afId string) *UeIdReq {
this := UeIdReq{}
return &this
}
// NewUeIdReqWithDefaults instantiates a new UeIdReq 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 NewUeIdReqWithDefaults() *UeIdReq {
this := UeIdReq{}
return &this
}
// GetAfId returns the AfId field value
func (o *UeIdReq) GetAfId() string {
if o == nil {
var ret string
return ret
}
return o.AfId
}
// GetAfIdOk returns a tuple with the AfId field value
// and a boolean to check if the value has been set.
func (o *UeIdReq) GetAfIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.AfId, true
}
// SetAfId sets field value
func (o *UeIdReq) SetAfId(v string) {
o.AfId = v
}
// GetAppPortId returns the AppPortId field value if set, zero value otherwise.
func (o *UeIdReq) GetAppPortId() int32 {
if o == nil || IsNil(o.AppPortId) {
var ret int32
return ret
}
return *o.AppPortId
}
// GetAppPortIdOk returns a tuple with the AppPortId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UeIdReq) GetAppPortIdOk() (*int32, bool) {
if o == nil || IsNil(o.AppPortId) {
return nil, false
}
return o.AppPortId, true
}
// HasAppPortId returns a boolean if a field has been set.
func (o *UeIdReq) HasAppPortId() bool {
if o != nil && !IsNil(o.AppPortId) {
return true
}
return false
}
// SetAppPortId gets a reference to the given int32 and assigns it to the AppPortId field.
func (o *UeIdReq) SetAppPortId(v int32) {
o.AppPortId = &v
}
// GetDnn returns the Dnn field value if set, zero value otherwise.
func (o *UeIdReq) GetDnn() string {
if o == nil || IsNil(o.Dnn) {
var ret string
return ret
}
return *o.Dnn
}
// GetDnnOk returns a tuple with the Dnn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UeIdReq) GetDnnOk() (*string, bool) {
if o == nil || IsNil(o.Dnn) {
return nil, false
}
return o.Dnn, true
}
// HasDnn returns a boolean if a field has been set.
func (o *UeIdReq) HasDnn() bool {
if o != nil && !IsNil(o.Dnn) {
return true
}
return false
}
// SetDnn gets a reference to the given string and assigns it to the Dnn field.
func (o *UeIdReq) SetDnn(v string) {
o.Dnn = &v
}
// GetIpDomain returns the IpDomain field value if set, zero value otherwise.
func (o *UeIdReq) GetIpDomain() string {
if o == nil || IsNil(o.IpDomain) {
var ret string
return ret
}
return *o.IpDomain
}
// GetIpDomainOk returns a tuple with the IpDomain field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UeIdReq) GetIpDomainOk() (*string, bool) {
if o == nil || IsNil(o.IpDomain) {
return nil, false
}
return o.IpDomain, true
}
// HasIpDomain returns a boolean if a field has been set.
func (o *UeIdReq) HasIpDomain() bool {
if o != nil && !IsNil(o.IpDomain) {
return true
}
return false
}
// SetIpDomain gets a reference to the given string and assigns it to the IpDomain field.
func (o *UeIdReq) SetIpDomain(v string) {
o.IpDomain = &v
}
// GetMtcProviderId returns the MtcProviderId field value if set, zero value otherwise.
func (o *UeIdReq) GetMtcProviderId() string {
if o == nil || IsNil(o.MtcProviderId) {
var ret string
return ret
}
return *o.MtcProviderId
}
// GetMtcProviderIdOk returns a tuple with the MtcProviderId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UeIdReq) GetMtcProviderIdOk() (*string, bool) {
if o == nil || IsNil(o.MtcProviderId) {
return nil, false
}
return o.MtcProviderId, true
}
// HasMtcProviderId returns a boolean if a field has been set.
func (o *UeIdReq) HasMtcProviderId() bool {
if o != nil && !IsNil(o.MtcProviderId) {
return true
}
return false
}
// SetMtcProviderId gets a reference to the given string and assigns it to the MtcProviderId field.
func (o *UeIdReq) SetMtcProviderId(v string) {
o.MtcProviderId = &v
}
// GetSnssai returns the Snssai field value if set, zero value otherwise.
func (o *UeIdReq) GetSnssai() Snssai {
if o == nil || IsNil(o.Snssai) {
var ret Snssai
return ret
}
return *o.Snssai
}
// GetSnssaiOk returns a tuple with the Snssai field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UeIdReq) GetSnssaiOk() (*Snssai, bool) {
if o == nil || IsNil(o.Snssai) {
return nil, false
}
return o.Snssai, true
}
// HasSnssai returns a boolean if a field has been set.
func (o *UeIdReq) HasSnssai() bool {
if o != nil && !IsNil(o.Snssai) {
return true
}
return false
}
// SetSnssai gets a reference to the given Snssai and assigns it to the Snssai field.
func (o *UeIdReq) SetSnssai(v Snssai) {
o.Snssai = &v
}
// GetUeIpAddr returns the UeIpAddr field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UeIdReq) GetUeIpAddr() IpAddr {
if o == nil || IsNil(o.UeIpAddr.Get()) {
var ret IpAddr
return ret
}
return *o.UeIpAddr.Get()
}
// GetUeIpAddrOk returns a tuple with the UeIpAddr 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 *UeIdReq) GetUeIpAddrOk() (*IpAddr, bool) {
if o == nil {
return nil, false
}
return o.UeIpAddr.Get(), o.UeIpAddr.IsSet()
}
// HasUeIpAddr returns a boolean if a field has been set.
func (o *UeIdReq) HasUeIpAddr() bool {
if o != nil && o.UeIpAddr.IsSet() {
return true
}
return false
}
// SetUeIpAddr gets a reference to the given NullableIpAddr and assigns it to the UeIpAddr field.
func (o *UeIdReq) SetUeIpAddr(v IpAddr) {
o.UeIpAddr.Set(&v)
}
// SetUeIpAddrNil sets the value for UeIpAddr to be an explicit nil
func (o *UeIdReq) SetUeIpAddrNil() {
o.UeIpAddr.Set(nil)
}
// UnsetUeIpAddr ensures that no value is present for UeIpAddr, not even an explicit nil
func (o *UeIdReq) UnsetUeIpAddr() {
o.UeIpAddr.Unset()
}
// GetUeMacAddr returns the UeMacAddr field value if set, zero value otherwise.
func (o *UeIdReq) GetUeMacAddr() string {
if o == nil || IsNil(o.UeMacAddr) {
var ret string
return ret
}
return *o.UeMacAddr
}
// GetUeMacAddrOk returns a tuple with the UeMacAddr field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UeIdReq) GetUeMacAddrOk() (*string, bool) {
if o == nil || IsNil(o.UeMacAddr) {
return nil, false
}
return o.UeMacAddr, true
}
// HasUeMacAddr returns a boolean if a field has been set.
func (o *UeIdReq) HasUeMacAddr() bool {
if o != nil && !IsNil(o.UeMacAddr) {
return true
}
return false
}
// SetUeMacAddr gets a reference to the given string and assigns it to the UeMacAddr field.
func (o *UeIdReq) SetUeMacAddr(v string) {
o.UeMacAddr = &v
}
func (o UeIdReq) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o UeIdReq) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["afId"] = o.AfId
if !IsNil(o.AppPortId) {
toSerialize["appPortId"] = o.AppPortId
}
if !IsNil(o.Dnn) {
toSerialize["dnn"] = o.Dnn
}
if !IsNil(o.IpDomain) {
toSerialize["ipDomain"] = o.IpDomain
}
if !IsNil(o.MtcProviderId) {
toSerialize["mtcProviderId"] = o.MtcProviderId
}
if !IsNil(o.Snssai) {
toSerialize["snssai"] = o.Snssai
}
if o.UeIpAddr.IsSet() {
toSerialize["ueIpAddr"] = o.UeIpAddr.Get()
}
if !IsNil(o.UeMacAddr) {
toSerialize["ueMacAddr"] = o.UeMacAddr
}
return toSerialize, nil
}
func (o *UeIdReq) 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{
"afId",
}
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)
}
}
varUeIdReq := _UeIdReq{}
err = json.Unmarshal(bytes, &varUeIdReq)
if err != nil {
return err
}
*o = UeIdReq(varUeIdReq)
return err
}
type NullableUeIdReq struct {
value *UeIdReq
isSet bool
}
func (v NullableUeIdReq) Get() *UeIdReq {
return v.value
}
func (v *NullableUeIdReq) Set(val *UeIdReq) {
v.value = val
v.isSet = true
}
func (v NullableUeIdReq) IsSet() bool {
return v.isSet
}
func (v *NullableUeIdReq) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUeIdReq(val *UeIdReq) *NullableUeIdReq {
return &NullableUeIdReq{value: val, isSet: true}
}
func (v NullableUeIdReq) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableUeIdReq) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。