代码拉取完成,页面将自动刷新
/*
Eees Application Context Relocation Service
Eees Application Context Relocation Service. © 2021, 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_Eees_AppContextRelocation
import (
"encoding/json"
"fmt"
)
// checks if the AcrDecReq type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AcrDecReq{}
// AcrDecReq Represents the parameters to inform about the selected target EAS and provide the associated information.
type AcrDecReq struct {
// String identifying a Gpsi shall contain either an External Id or an MSISDN. It shall be formatted as follows -External Identifier= \"extid-'extid', where 'extid' shall be formatted according to clause 19.7.2 of 3GPP TS 23.003 that describes an External Identifier.
UeId string `json:"ueId"`
AcId *string `json:"acId,omitempty"`
TEasId string `json:"tEasId"`
TEasEndpoint NullableEndPoint `json:"tEasEndpoint"`
}
type _AcrDecReq AcrDecReq
// NewAcrDecReq instantiates a new AcrDecReq 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 NewAcrDecReq(ueId string, tEasId string, tEasEndpoint NullableEndPoint) *AcrDecReq {
this := AcrDecReq{}
this.UeId = ueId
this.TEasId = tEasId
this.TEasEndpoint = tEasEndpoint
return &this
}
// NewAcrDecReqWithDefaults instantiates a new AcrDecReq 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 NewAcrDecReqWithDefaults() *AcrDecReq {
this := AcrDecReq{}
return &this
}
// GetUeId returns the UeId field value
func (o *AcrDecReq) GetUeId() string {
if o == nil {
var ret string
return ret
}
return o.UeId
}
// GetUeIdOk returns a tuple with the UeId field value
// and a boolean to check if the value has been set.
func (o *AcrDecReq) GetUeIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.UeId, true
}
// SetUeId sets field value
func (o *AcrDecReq) SetUeId(v string) {
o.UeId = v
}
// GetAcId returns the AcId field value if set, zero value otherwise.
func (o *AcrDecReq) GetAcId() string {
if o == nil || IsNil(o.AcId) {
var ret string
return ret
}
return *o.AcId
}
// GetAcIdOk returns a tuple with the AcId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AcrDecReq) GetAcIdOk() (*string, bool) {
if o == nil || IsNil(o.AcId) {
return nil, false
}
return o.AcId, true
}
// HasAcId returns a boolean if a field has been set.
func (o *AcrDecReq) HasAcId() bool {
if o != nil && !IsNil(o.AcId) {
return true
}
return false
}
// SetAcId gets a reference to the given string and assigns it to the AcId field.
func (o *AcrDecReq) SetAcId(v string) {
o.AcId = &v
}
// GetTEasId returns the TEasId field value
func (o *AcrDecReq) GetTEasId() string {
if o == nil {
var ret string
return ret
}
return o.TEasId
}
// GetTEasIdOk returns a tuple with the TEasId field value
// and a boolean to check if the value has been set.
func (o *AcrDecReq) GetTEasIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.TEasId, true
}
// SetTEasId sets field value
func (o *AcrDecReq) SetTEasId(v string) {
o.TEasId = v
}
// GetTEasEndpoint returns the TEasEndpoint field value
// If the value is explicit nil, the zero value for EndPoint will be returned
func (o *AcrDecReq) GetTEasEndpoint() EndPoint {
if o == nil || o.TEasEndpoint.Get() == nil {
var ret EndPoint
return ret
}
return *o.TEasEndpoint.Get()
}
// GetTEasEndpointOk returns a tuple with the TEasEndpoint field value
// 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 *AcrDecReq) GetTEasEndpointOk() (*EndPoint, bool) {
if o == nil {
return nil, false
}
return o.TEasEndpoint.Get(), o.TEasEndpoint.IsSet()
}
// SetTEasEndpoint sets field value
func (o *AcrDecReq) SetTEasEndpoint(v EndPoint) {
o.TEasEndpoint.Set(&v)
}
func (o AcrDecReq) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AcrDecReq) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["ueId"] = o.UeId
if !IsNil(o.AcId) {
toSerialize["acId"] = o.AcId
}
toSerialize["tEasId"] = o.TEasId
toSerialize["tEasEndpoint"] = o.TEasEndpoint.Get()
return toSerialize, nil
}
func (o *AcrDecReq) 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{
"ueId",
"tEasId",
"tEasEndpoint",
}
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)
}
}
varAcrDecReq := _AcrDecReq{}
err = json.Unmarshal(bytes, &varAcrDecReq)
if err != nil {
return err
}
*o = AcrDecReq(varAcrDecReq)
return err
}
type NullableAcrDecReq struct {
value *AcrDecReq
isSet bool
}
func (v NullableAcrDecReq) Get() *AcrDecReq {
return v.value
}
func (v *NullableAcrDecReq) Set(val *AcrDecReq) {
v.value = val
v.isSet = true
}
func (v NullableAcrDecReq) IsSet() bool {
return v.isSet
}
func (v *NullableAcrDecReq) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAcrDecReq(val *AcrDecReq) *NullableAcrDecReq {
return &NullableAcrDecReq{value: val, isSet: true}
}
func (v NullableAcrDecReq) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAcrDecReq) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。