1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_acr_init_req.go 14.95 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2年前 . update
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
/*
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 AcrInitReq type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AcrInitReq{}
// AcrInitReq Represents the parameters to request ACR with action initiation.
type AcrInitReq struct {
RequestorId string `json:"requestorId"`
// 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,omitempty"`
AcId *string `json:"acId,omitempty"`
EasId *string `json:"easId,omitempty"`
TEasEndpoint NullableEndPoint `json:"tEasEndpoint"`
SEasEndpoint NullableEndPoint `json:"sEasEndpoint,omitempty"`
PrevTEasEndpoint NullableEndPoint `json:"prevTEasEndpoint,omitempty"`
RouteReq NullableRouteToLocation `json:"routeReq,omitempty"`
EasNotifInd bool `json:"easNotifInd"`
PrevEasNotifInd *bool `json:"prevEasNotifInd,omitempty"`
EecCtxtReloc *EecCtxtReloc `json:"eecCtxtReloc,omitempty"`
}
type _AcrInitReq AcrInitReq
// NewAcrInitReq instantiates a new AcrInitReq 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 NewAcrInitReq(requestorId string, tEasEndpoint NullableEndPoint, easNotifInd bool) *AcrInitReq {
this := AcrInitReq{}
this.RequestorId = requestorId
this.TEasEndpoint = tEasEndpoint
this.EasNotifInd = easNotifInd
var prevEasNotifInd bool = false
this.PrevEasNotifInd = &prevEasNotifInd
return &this
}
// NewAcrInitReqWithDefaults instantiates a new AcrInitReq 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 NewAcrInitReqWithDefaults() *AcrInitReq {
this := AcrInitReq{}
var easNotifInd bool = false
this.EasNotifInd = easNotifInd
var prevEasNotifInd bool = false
this.PrevEasNotifInd = &prevEasNotifInd
return &this
}
// GetRequestorId returns the RequestorId field value
func (o *AcrInitReq) GetRequestorId() string {
if o == nil {
var ret string
return ret
}
return o.RequestorId
}
// GetRequestorIdOk returns a tuple with the RequestorId field value
// and a boolean to check if the value has been set.
func (o *AcrInitReq) GetRequestorIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.RequestorId, true
}
// SetRequestorId sets field value
func (o *AcrInitReq) SetRequestorId(v string) {
o.RequestorId = v
}
// GetUeId returns the UeId field value if set, zero value otherwise.
func (o *AcrInitReq) GetUeId() string {
if o == nil || IsNil(o.UeId) {
var ret string
return ret
}
return *o.UeId
}
// GetUeIdOk returns a tuple with the UeId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AcrInitReq) GetUeIdOk() (*string, bool) {
if o == nil || IsNil(o.UeId) {
return nil, false
}
return o.UeId, true
}
// HasUeId returns a boolean if a field has been set.
func (o *AcrInitReq) HasUeId() bool {
if o != nil && !IsNil(o.UeId) {
return true
}
return false
}
// SetUeId gets a reference to the given string and assigns it to the UeId field.
func (o *AcrInitReq) SetUeId(v string) {
o.UeId = &v
}
// GetAcId returns the AcId field value if set, zero value otherwise.
func (o *AcrInitReq) 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 *AcrInitReq) 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 *AcrInitReq) 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 *AcrInitReq) SetAcId(v string) {
o.AcId = &v
}
// GetEasId returns the EasId field value if set, zero value otherwise.
func (o *AcrInitReq) GetEasId() string {
if o == nil || IsNil(o.EasId) {
var ret string
return ret
}
return *o.EasId
}
// GetEasIdOk returns a tuple with the EasId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AcrInitReq) GetEasIdOk() (*string, bool) {
if o == nil || IsNil(o.EasId) {
return nil, false
}
return o.EasId, true
}
// HasEasId returns a boolean if a field has been set.
func (o *AcrInitReq) HasEasId() bool {
if o != nil && !IsNil(o.EasId) {
return true
}
return false
}
// SetEasId gets a reference to the given string and assigns it to the EasId field.
func (o *AcrInitReq) SetEasId(v string) {
o.EasId = &v
}
// GetTEasEndpoint returns the TEasEndpoint field value
// If the value is explicit nil, the zero value for EndPoint will be returned
func (o *AcrInitReq) 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 *AcrInitReq) GetTEasEndpointOk() (*EndPoint, bool) {
if o == nil {
return nil, false
}
return o.TEasEndpoint.Get(), o.TEasEndpoint.IsSet()
}
// SetTEasEndpoint sets field value
func (o *AcrInitReq) SetTEasEndpoint(v EndPoint) {
o.TEasEndpoint.Set(&v)
}
// GetSEasEndpoint returns the SEasEndpoint field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AcrInitReq) GetSEasEndpoint() EndPoint {
if o == nil || IsNil(o.SEasEndpoint.Get()) {
var ret EndPoint
return ret
}
return *o.SEasEndpoint.Get()
}
// GetSEasEndpointOk returns a tuple with the SEasEndpoint 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 *AcrInitReq) GetSEasEndpointOk() (*EndPoint, bool) {
if o == nil {
return nil, false
}
return o.SEasEndpoint.Get(), o.SEasEndpoint.IsSet()
}
// HasSEasEndpoint returns a boolean if a field has been set.
func (o *AcrInitReq) HasSEasEndpoint() bool {
if o != nil && o.SEasEndpoint.IsSet() {
return true
}
return false
}
// SetSEasEndpoint gets a reference to the given NullableEndPoint and assigns it to the SEasEndpoint field.
func (o *AcrInitReq) SetSEasEndpoint(v EndPoint) {
o.SEasEndpoint.Set(&v)
}
// SetSEasEndpointNil sets the value for SEasEndpoint to be an explicit nil
func (o *AcrInitReq) SetSEasEndpointNil() {
o.SEasEndpoint.Set(nil)
}
// UnsetSEasEndpoint ensures that no value is present for SEasEndpoint, not even an explicit nil
func (o *AcrInitReq) UnsetSEasEndpoint() {
o.SEasEndpoint.Unset()
}
// GetPrevTEasEndpoint returns the PrevTEasEndpoint field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AcrInitReq) GetPrevTEasEndpoint() EndPoint {
if o == nil || IsNil(o.PrevTEasEndpoint.Get()) {
var ret EndPoint
return ret
}
return *o.PrevTEasEndpoint.Get()
}
// GetPrevTEasEndpointOk returns a tuple with the PrevTEasEndpoint 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 *AcrInitReq) GetPrevTEasEndpointOk() (*EndPoint, bool) {
if o == nil {
return nil, false
}
return o.PrevTEasEndpoint.Get(), o.PrevTEasEndpoint.IsSet()
}
// HasPrevTEasEndpoint returns a boolean if a field has been set.
func (o *AcrInitReq) HasPrevTEasEndpoint() bool {
if o != nil && o.PrevTEasEndpoint.IsSet() {
return true
}
return false
}
// SetPrevTEasEndpoint gets a reference to the given NullableEndPoint and assigns it to the PrevTEasEndpoint field.
func (o *AcrInitReq) SetPrevTEasEndpoint(v EndPoint) {
o.PrevTEasEndpoint.Set(&v)
}
// SetPrevTEasEndpointNil sets the value for PrevTEasEndpoint to be an explicit nil
func (o *AcrInitReq) SetPrevTEasEndpointNil() {
o.PrevTEasEndpoint.Set(nil)
}
// UnsetPrevTEasEndpoint ensures that no value is present for PrevTEasEndpoint, not even an explicit nil
func (o *AcrInitReq) UnsetPrevTEasEndpoint() {
o.PrevTEasEndpoint.Unset()
}
// GetRouteReq returns the RouteReq field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AcrInitReq) GetRouteReq() RouteToLocation {
if o == nil || IsNil(o.RouteReq.Get()) {
var ret RouteToLocation
return ret
}
return *o.RouteReq.Get()
}
// GetRouteReqOk returns a tuple with the RouteReq 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 *AcrInitReq) GetRouteReqOk() (*RouteToLocation, bool) {
if o == nil {
return nil, false
}
return o.RouteReq.Get(), o.RouteReq.IsSet()
}
// HasRouteReq returns a boolean if a field has been set.
func (o *AcrInitReq) HasRouteReq() bool {
if o != nil && o.RouteReq.IsSet() {
return true
}
return false
}
// SetRouteReq gets a reference to the given NullableRouteToLocation and assigns it to the RouteReq field.
func (o *AcrInitReq) SetRouteReq(v RouteToLocation) {
o.RouteReq.Set(&v)
}
// SetRouteReqNil sets the value for RouteReq to be an explicit nil
func (o *AcrInitReq) SetRouteReqNil() {
o.RouteReq.Set(nil)
}
// UnsetRouteReq ensures that no value is present for RouteReq, not even an explicit nil
func (o *AcrInitReq) UnsetRouteReq() {
o.RouteReq.Unset()
}
// GetEasNotifInd returns the EasNotifInd field value
func (o *AcrInitReq) GetEasNotifInd() bool {
if o == nil {
var ret bool
return ret
}
return o.EasNotifInd
}
// GetEasNotifIndOk returns a tuple with the EasNotifInd field value
// and a boolean to check if the value has been set.
func (o *AcrInitReq) GetEasNotifIndOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.EasNotifInd, true
}
// SetEasNotifInd sets field value
func (o *AcrInitReq) SetEasNotifInd(v bool) {
o.EasNotifInd = v
}
// GetPrevEasNotifInd returns the PrevEasNotifInd field value if set, zero value otherwise.
func (o *AcrInitReq) GetPrevEasNotifInd() bool {
if o == nil || IsNil(o.PrevEasNotifInd) {
var ret bool
return ret
}
return *o.PrevEasNotifInd
}
// GetPrevEasNotifIndOk returns a tuple with the PrevEasNotifInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AcrInitReq) GetPrevEasNotifIndOk() (*bool, bool) {
if o == nil || IsNil(o.PrevEasNotifInd) {
return nil, false
}
return o.PrevEasNotifInd, true
}
// HasPrevEasNotifInd returns a boolean if a field has been set.
func (o *AcrInitReq) HasPrevEasNotifInd() bool {
if o != nil && !IsNil(o.PrevEasNotifInd) {
return true
}
return false
}
// SetPrevEasNotifInd gets a reference to the given bool and assigns it to the PrevEasNotifInd field.
func (o *AcrInitReq) SetPrevEasNotifInd(v bool) {
o.PrevEasNotifInd = &v
}
// GetEecCtxtReloc returns the EecCtxtReloc field value if set, zero value otherwise.
func (o *AcrInitReq) GetEecCtxtReloc() EecCtxtReloc {
if o == nil || IsNil(o.EecCtxtReloc) {
var ret EecCtxtReloc
return ret
}
return *o.EecCtxtReloc
}
// GetEecCtxtRelocOk returns a tuple with the EecCtxtReloc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AcrInitReq) GetEecCtxtRelocOk() (*EecCtxtReloc, bool) {
if o == nil || IsNil(o.EecCtxtReloc) {
return nil, false
}
return o.EecCtxtReloc, true
}
// HasEecCtxtReloc returns a boolean if a field has been set.
func (o *AcrInitReq) HasEecCtxtReloc() bool {
if o != nil && !IsNil(o.EecCtxtReloc) {
return true
}
return false
}
// SetEecCtxtReloc gets a reference to the given EecCtxtReloc and assigns it to the EecCtxtReloc field.
func (o *AcrInitReq) SetEecCtxtReloc(v EecCtxtReloc) {
o.EecCtxtReloc = &v
}
func (o AcrInitReq) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AcrInitReq) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["requestorId"] = o.RequestorId
if !IsNil(o.UeId) {
toSerialize["ueId"] = o.UeId
}
if !IsNil(o.AcId) {
toSerialize["acId"] = o.AcId
}
if !IsNil(o.EasId) {
toSerialize["easId"] = o.EasId
}
toSerialize["tEasEndpoint"] = o.TEasEndpoint.Get()
if o.SEasEndpoint.IsSet() {
toSerialize["sEasEndpoint"] = o.SEasEndpoint.Get()
}
if o.PrevTEasEndpoint.IsSet() {
toSerialize["prevTEasEndpoint"] = o.PrevTEasEndpoint.Get()
}
if o.RouteReq.IsSet() {
toSerialize["routeReq"] = o.RouteReq.Get()
}
toSerialize["easNotifInd"] = o.EasNotifInd
if !IsNil(o.PrevEasNotifInd) {
toSerialize["prevEasNotifInd"] = o.PrevEasNotifInd
}
if !IsNil(o.EecCtxtReloc) {
toSerialize["eecCtxtReloc"] = o.EecCtxtReloc
}
return toSerialize, nil
}
func (o *AcrInitReq) 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{
"requestorId",
"tEasEndpoint",
"easNotifInd",
}
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)
}
}
varAcrInitReq := _AcrInitReq{}
err = json.Unmarshal(bytes, &varAcrInitReq)
if err != nil {
return err
}
*o = AcrInitReq(varAcrInitReq)
return err
}
type NullableAcrInitReq struct {
value *AcrInitReq
isSet bool
}
func (v NullableAcrInitReq) Get() *AcrInitReq {
return v.value
}
func (v *NullableAcrInitReq) Set(val *AcrInitReq) {
v.value = val
v.isSet = true
}
func (v NullableAcrInitReq) IsSet() bool {
return v.isSet
}
func (v *NullableAcrInitReq) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAcrInitReq(val *AcrInitReq) *NullableAcrInitReq {
return &NullableAcrInitReq{value: val, isSet: true}
}
func (v NullableAcrInitReq) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAcrInitReq) 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

搜索帮助