代码拉取完成,页面将自动刷新
/*
EES EEC Context Relocation API
API for EEC Context Relocation. © 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_Eees_EECContextRelocation
import (
"encoding/json"
"fmt"
)
// checks if the IndividualSessionContext type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &IndividualSessionContext{}
// IndividualSessionContext Represents a single service session context information.
type IndividualSessionContext struct {
// Identifier of the EAS providing the application services.
EasId string `json:"easId"`
EndPt NullableEndPoint `json:"endPt"`
// Identifier of the AC for which the service session information is provided.
AcId *string `json:"acId,omitempty"`
}
type _IndividualSessionContext IndividualSessionContext
// NewIndividualSessionContext instantiates a new IndividualSessionContext 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 NewIndividualSessionContext(easId string, endPt NullableEndPoint) *IndividualSessionContext {
this := IndividualSessionContext{}
this.EasId = easId
this.EndPt = endPt
return &this
}
// NewIndividualSessionContextWithDefaults instantiates a new IndividualSessionContext 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 NewIndividualSessionContextWithDefaults() *IndividualSessionContext {
this := IndividualSessionContext{}
return &this
}
// GetEasId returns the EasId field value
func (o *IndividualSessionContext) GetEasId() string {
if o == nil {
var ret string
return ret
}
return o.EasId
}
// GetEasIdOk returns a tuple with the EasId field value
// and a boolean to check if the value has been set.
func (o *IndividualSessionContext) GetEasIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.EasId, true
}
// SetEasId sets field value
func (o *IndividualSessionContext) SetEasId(v string) {
o.EasId = v
}
// GetEndPt returns the EndPt field value
// If the value is explicit nil, the zero value for EndPoint will be returned
func (o *IndividualSessionContext) GetEndPt() EndPoint {
if o == nil || o.EndPt.Get() == nil {
var ret EndPoint
return ret
}
return *o.EndPt.Get()
}
// GetEndPtOk returns a tuple with the EndPt 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 *IndividualSessionContext) GetEndPtOk() (*EndPoint, bool) {
if o == nil {
return nil, false
}
return o.EndPt.Get(), o.EndPt.IsSet()
}
// SetEndPt sets field value
func (o *IndividualSessionContext) SetEndPt(v EndPoint) {
o.EndPt.Set(&v)
}
// GetAcId returns the AcId field value if set, zero value otherwise.
func (o *IndividualSessionContext) 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 *IndividualSessionContext) 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 *IndividualSessionContext) 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 *IndividualSessionContext) SetAcId(v string) {
o.AcId = &v
}
func (o IndividualSessionContext) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o IndividualSessionContext) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["easId"] = o.EasId
toSerialize["endPt"] = o.EndPt.Get()
if !IsNil(o.AcId) {
toSerialize["acId"] = o.AcId
}
return toSerialize, nil
}
func (o *IndividualSessionContext) 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{
"easId",
"endPt",
}
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)
}
}
varIndividualSessionContext := _IndividualSessionContext{}
err = json.Unmarshal(bytes, &varIndividualSessionContext)
if err != nil {
return err
}
*o = IndividualSessionContext(varIndividualSessionContext)
return err
}
type NullableIndividualSessionContext struct {
value *IndividualSessionContext
isSet bool
}
func (v NullableIndividualSessionContext) Get() *IndividualSessionContext {
return v.value
}
func (v *NullableIndividualSessionContext) Set(val *IndividualSessionContext) {
v.value = val
v.isSet = true
}
func (v NullableIndividualSessionContext) IsSet() bool {
return v.isSet
}
func (v *NullableIndividualSessionContext) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableIndividualSessionContext(val *IndividualSessionContext) *NullableIndividualSessionContext {
return &NullableIndividualSessionContext{value: val, isSet: true}
}
func (v NullableIndividualSessionContext) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableIndividualSessionContext) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。