Ai
1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_val_group_document_patch.go 11.03 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . update
/*
SS_GroupManagement
API for SEAL Group management. © 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_SS_GroupManagement
import (
"encoding/json"
)
// checks if the VALGroupDocumentPatch type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &VALGroupDocumentPatch{}
// VALGroupDocumentPatch Represents details of the partial update of VAL group document information.
type VALGroupDocumentPatch struct {
// The text description of the VAL group.
GrpDesc *string `json:"grpDesc,omitempty"`
// The list of VAL User IDs or VAL UE IDs, which are members of the VAL group.
Members []ValTargetUe `json:"members,omitempty"`
// Configuration data for the VAL group.
ValGrpConf *string `json:"valGrpConf,omitempty"`
// The list of VAL services enabled on the group.
ValServiceIds []string `json:"valServiceIds,omitempty"`
LocInfo *LocationInfo `json:"locInfo,omitempty"`
AddLocInfo *LocationArea5G `json:"addLocInfo,omitempty"`
// string containing a local identifier followed by \"@\" and a domain identifier. Both the local identifier and the domain identifier shall be encoded as strings that do not contain any \"@\" characters. See Clauses 4.6.2 and 4.6.3 of 3GPP TS 23.682 for more information.
ExtGrpId *string `json:"extGrpId,omitempty"`
Com5GLanType *PduSessionType `json:"com5GLanType,omitempty"`
}
// NewVALGroupDocumentPatch instantiates a new VALGroupDocumentPatch 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 NewVALGroupDocumentPatch() *VALGroupDocumentPatch {
this := VALGroupDocumentPatch{}
return &this
}
// NewVALGroupDocumentPatchWithDefaults instantiates a new VALGroupDocumentPatch 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 NewVALGroupDocumentPatchWithDefaults() *VALGroupDocumentPatch {
this := VALGroupDocumentPatch{}
return &this
}
// GetGrpDesc returns the GrpDesc field value if set, zero value otherwise.
func (o *VALGroupDocumentPatch) GetGrpDesc() string {
if o == nil || IsNil(o.GrpDesc) {
var ret string
return ret
}
return *o.GrpDesc
}
// GetGrpDescOk returns a tuple with the GrpDesc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VALGroupDocumentPatch) GetGrpDescOk() (*string, bool) {
if o == nil || IsNil(o.GrpDesc) {
return nil, false
}
return o.GrpDesc, true
}
// HasGrpDesc returns a boolean if a field has been set.
func (o *VALGroupDocumentPatch) HasGrpDesc() bool {
if o != nil && !IsNil(o.GrpDesc) {
return true
}
return false
}
// SetGrpDesc gets a reference to the given string and assigns it to the GrpDesc field.
func (o *VALGroupDocumentPatch) SetGrpDesc(v string) {
o.GrpDesc = &v
}
// GetMembers returns the Members field value if set, zero value otherwise.
func (o *VALGroupDocumentPatch) GetMembers() []ValTargetUe {
if o == nil || IsNil(o.Members) {
var ret []ValTargetUe
return ret
}
return o.Members
}
// GetMembersOk returns a tuple with the Members field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VALGroupDocumentPatch) GetMembersOk() ([]ValTargetUe, bool) {
if o == nil || IsNil(o.Members) {
return nil, false
}
return o.Members, true
}
// HasMembers returns a boolean if a field has been set.
func (o *VALGroupDocumentPatch) HasMembers() bool {
if o != nil && !IsNil(o.Members) {
return true
}
return false
}
// SetMembers gets a reference to the given []ValTargetUe and assigns it to the Members field.
func (o *VALGroupDocumentPatch) SetMembers(v []ValTargetUe) {
o.Members = v
}
// GetValGrpConf returns the ValGrpConf field value if set, zero value otherwise.
func (o *VALGroupDocumentPatch) GetValGrpConf() string {
if o == nil || IsNil(o.ValGrpConf) {
var ret string
return ret
}
return *o.ValGrpConf
}
// GetValGrpConfOk returns a tuple with the ValGrpConf field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VALGroupDocumentPatch) GetValGrpConfOk() (*string, bool) {
if o == nil || IsNil(o.ValGrpConf) {
return nil, false
}
return o.ValGrpConf, true
}
// HasValGrpConf returns a boolean if a field has been set.
func (o *VALGroupDocumentPatch) HasValGrpConf() bool {
if o != nil && !IsNil(o.ValGrpConf) {
return true
}
return false
}
// SetValGrpConf gets a reference to the given string and assigns it to the ValGrpConf field.
func (o *VALGroupDocumentPatch) SetValGrpConf(v string) {
o.ValGrpConf = &v
}
// GetValServiceIds returns the ValServiceIds field value if set, zero value otherwise.
func (o *VALGroupDocumentPatch) GetValServiceIds() []string {
if o == nil || IsNil(o.ValServiceIds) {
var ret []string
return ret
}
return o.ValServiceIds
}
// GetValServiceIdsOk returns a tuple with the ValServiceIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VALGroupDocumentPatch) GetValServiceIdsOk() ([]string, bool) {
if o == nil || IsNil(o.ValServiceIds) {
return nil, false
}
return o.ValServiceIds, true
}
// HasValServiceIds returns a boolean if a field has been set.
func (o *VALGroupDocumentPatch) HasValServiceIds() bool {
if o != nil && !IsNil(o.ValServiceIds) {
return true
}
return false
}
// SetValServiceIds gets a reference to the given []string and assigns it to the ValServiceIds field.
func (o *VALGroupDocumentPatch) SetValServiceIds(v []string) {
o.ValServiceIds = v
}
// GetLocInfo returns the LocInfo field value if set, zero value otherwise.
func (o *VALGroupDocumentPatch) GetLocInfo() LocationInfo {
if o == nil || IsNil(o.LocInfo) {
var ret LocationInfo
return ret
}
return *o.LocInfo
}
// GetLocInfoOk returns a tuple with the LocInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VALGroupDocumentPatch) GetLocInfoOk() (*LocationInfo, bool) {
if o == nil || IsNil(o.LocInfo) {
return nil, false
}
return o.LocInfo, true
}
// HasLocInfo returns a boolean if a field has been set.
func (o *VALGroupDocumentPatch) HasLocInfo() bool {
if o != nil && !IsNil(o.LocInfo) {
return true
}
return false
}
// SetLocInfo gets a reference to the given LocationInfo and assigns it to the LocInfo field.
func (o *VALGroupDocumentPatch) SetLocInfo(v LocationInfo) {
o.LocInfo = &v
}
// GetAddLocInfo returns the AddLocInfo field value if set, zero value otherwise.
func (o *VALGroupDocumentPatch) GetAddLocInfo() LocationArea5G {
if o == nil || IsNil(o.AddLocInfo) {
var ret LocationArea5G
return ret
}
return *o.AddLocInfo
}
// GetAddLocInfoOk returns a tuple with the AddLocInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VALGroupDocumentPatch) GetAddLocInfoOk() (*LocationArea5G, bool) {
if o == nil || IsNil(o.AddLocInfo) {
return nil, false
}
return o.AddLocInfo, true
}
// HasAddLocInfo returns a boolean if a field has been set.
func (o *VALGroupDocumentPatch) HasAddLocInfo() bool {
if o != nil && !IsNil(o.AddLocInfo) {
return true
}
return false
}
// SetAddLocInfo gets a reference to the given LocationArea5G and assigns it to the AddLocInfo field.
func (o *VALGroupDocumentPatch) SetAddLocInfo(v LocationArea5G) {
o.AddLocInfo = &v
}
// GetExtGrpId returns the ExtGrpId field value if set, zero value otherwise.
func (o *VALGroupDocumentPatch) GetExtGrpId() string {
if o == nil || IsNil(o.ExtGrpId) {
var ret string
return ret
}
return *o.ExtGrpId
}
// GetExtGrpIdOk returns a tuple with the ExtGrpId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VALGroupDocumentPatch) GetExtGrpIdOk() (*string, bool) {
if o == nil || IsNil(o.ExtGrpId) {
return nil, false
}
return o.ExtGrpId, true
}
// HasExtGrpId returns a boolean if a field has been set.
func (o *VALGroupDocumentPatch) HasExtGrpId() bool {
if o != nil && !IsNil(o.ExtGrpId) {
return true
}
return false
}
// SetExtGrpId gets a reference to the given string and assigns it to the ExtGrpId field.
func (o *VALGroupDocumentPatch) SetExtGrpId(v string) {
o.ExtGrpId = &v
}
// GetCom5GLanType returns the Com5GLanType field value if set, zero value otherwise.
func (o *VALGroupDocumentPatch) GetCom5GLanType() PduSessionType {
if o == nil || IsNil(o.Com5GLanType) {
var ret PduSessionType
return ret
}
return *o.Com5GLanType
}
// GetCom5GLanTypeOk returns a tuple with the Com5GLanType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VALGroupDocumentPatch) GetCom5GLanTypeOk() (*PduSessionType, bool) {
if o == nil || IsNil(o.Com5GLanType) {
return nil, false
}
return o.Com5GLanType, true
}
// HasCom5GLanType returns a boolean if a field has been set.
func (o *VALGroupDocumentPatch) HasCom5GLanType() bool {
if o != nil && !IsNil(o.Com5GLanType) {
return true
}
return false
}
// SetCom5GLanType gets a reference to the given PduSessionType and assigns it to the Com5GLanType field.
func (o *VALGroupDocumentPatch) SetCom5GLanType(v PduSessionType) {
o.Com5GLanType = &v
}
func (o VALGroupDocumentPatch) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o VALGroupDocumentPatch) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.GrpDesc) {
toSerialize["grpDesc"] = o.GrpDesc
}
if !IsNil(o.Members) {
toSerialize["members"] = o.Members
}
if !IsNil(o.ValGrpConf) {
toSerialize["valGrpConf"] = o.ValGrpConf
}
if !IsNil(o.ValServiceIds) {
toSerialize["valServiceIds"] = o.ValServiceIds
}
if !IsNil(o.LocInfo) {
toSerialize["locInfo"] = o.LocInfo
}
if !IsNil(o.AddLocInfo) {
toSerialize["addLocInfo"] = o.AddLocInfo
}
if !IsNil(o.ExtGrpId) {
toSerialize["extGrpId"] = o.ExtGrpId
}
if !IsNil(o.Com5GLanType) {
toSerialize["com5GLanType"] = o.Com5GLanType
}
return toSerialize, nil
}
type NullableVALGroupDocumentPatch struct {
value *VALGroupDocumentPatch
isSet bool
}
func (v NullableVALGroupDocumentPatch) Get() *VALGroupDocumentPatch {
return v.value
}
func (v *NullableVALGroupDocumentPatch) Set(val *VALGroupDocumentPatch) {
v.value = val
v.isSet = true
}
func (v NullableVALGroupDocumentPatch) IsSet() bool {
return v.isSet
}
func (v *NullableVALGroupDocumentPatch) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableVALGroupDocumentPatch(val *VALGroupDocumentPatch) *NullableVALGroupDocumentPatch {
return &NullableVALGroupDocumentPatch{value: val, isSet: true}
}
func (v NullableVALGroupDocumentPatch) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableVALGroupDocumentPatch) 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

搜索帮助