1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_val_group_document.go 16.03 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2年前 . update
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
/*
SS_Events
API for SEAL Events 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_Events
import (
"encoding/json"
"fmt"
)
// checks if the VALGroupDocument type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &VALGroupDocument{}
// VALGroupDocument Represents details of the VAL group document information.
type VALGroupDocument struct {
// The VAL group idenitity.
ValGroupId string `json:"valGroupId"`
// 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"`
// VAL service specific information.
ValSvcInf *string `json:"valSvcInf,omitempty"`
// A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported.
SuppFeat *string `json:"suppFeat,omitempty"`
// string providing an URI formatted according to IETF RFC 3986.
ResUri *string `json:"resUri,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"`
}
type _VALGroupDocument VALGroupDocument
// NewVALGroupDocument instantiates a new VALGroupDocument 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 NewVALGroupDocument(valGroupId string) *VALGroupDocument {
this := VALGroupDocument{}
this.ValGroupId = valGroupId
return &this
}
// NewVALGroupDocumentWithDefaults instantiates a new VALGroupDocument 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 NewVALGroupDocumentWithDefaults() *VALGroupDocument {
this := VALGroupDocument{}
return &this
}
// GetValGroupId returns the ValGroupId field value
func (o *VALGroupDocument) GetValGroupId() string {
if o == nil {
var ret string
return ret
}
return o.ValGroupId
}
// GetValGroupIdOk returns a tuple with the ValGroupId field value
// and a boolean to check if the value has been set.
func (o *VALGroupDocument) GetValGroupIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ValGroupId, true
}
// SetValGroupId sets field value
func (o *VALGroupDocument) SetValGroupId(v string) {
o.ValGroupId = v
}
// GetGrpDesc returns the GrpDesc field value if set, zero value otherwise.
func (o *VALGroupDocument) 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 *VALGroupDocument) 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 *VALGroupDocument) 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 *VALGroupDocument) SetGrpDesc(v string) {
o.GrpDesc = &v
}
// GetMembers returns the Members field value if set, zero value otherwise.
func (o *VALGroupDocument) 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 *VALGroupDocument) 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 *VALGroupDocument) 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 *VALGroupDocument) SetMembers(v []ValTargetUe) {
o.Members = v
}
// GetValGrpConf returns the ValGrpConf field value if set, zero value otherwise.
func (o *VALGroupDocument) 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 *VALGroupDocument) 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 *VALGroupDocument) 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 *VALGroupDocument) SetValGrpConf(v string) {
o.ValGrpConf = &v
}
// GetValServiceIds returns the ValServiceIds field value if set, zero value otherwise.
func (o *VALGroupDocument) 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 *VALGroupDocument) 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 *VALGroupDocument) 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 *VALGroupDocument) SetValServiceIds(v []string) {
o.ValServiceIds = v
}
// GetValSvcInf returns the ValSvcInf field value if set, zero value otherwise.
func (o *VALGroupDocument) GetValSvcInf() string {
if o == nil || IsNil(o.ValSvcInf) {
var ret string
return ret
}
return *o.ValSvcInf
}
// GetValSvcInfOk returns a tuple with the ValSvcInf field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VALGroupDocument) GetValSvcInfOk() (*string, bool) {
if o == nil || IsNil(o.ValSvcInf) {
return nil, false
}
return o.ValSvcInf, true
}
// HasValSvcInf returns a boolean if a field has been set.
func (o *VALGroupDocument) HasValSvcInf() bool {
if o != nil && !IsNil(o.ValSvcInf) {
return true
}
return false
}
// SetValSvcInf gets a reference to the given string and assigns it to the ValSvcInf field.
func (o *VALGroupDocument) SetValSvcInf(v string) {
o.ValSvcInf = &v
}
// GetSuppFeat returns the SuppFeat field value if set, zero value otherwise.
func (o *VALGroupDocument) GetSuppFeat() string {
if o == nil || IsNil(o.SuppFeat) {
var ret string
return ret
}
return *o.SuppFeat
}
// GetSuppFeatOk returns a tuple with the SuppFeat field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VALGroupDocument) GetSuppFeatOk() (*string, bool) {
if o == nil || IsNil(o.SuppFeat) {
return nil, false
}
return o.SuppFeat, true
}
// HasSuppFeat returns a boolean if a field has been set.
func (o *VALGroupDocument) HasSuppFeat() bool {
if o != nil && !IsNil(o.SuppFeat) {
return true
}
return false
}
// SetSuppFeat gets a reference to the given string and assigns it to the SuppFeat field.
func (o *VALGroupDocument) SetSuppFeat(v string) {
o.SuppFeat = &v
}
// GetResUri returns the ResUri field value if set, zero value otherwise.
func (o *VALGroupDocument) GetResUri() string {
if o == nil || IsNil(o.ResUri) {
var ret string
return ret
}
return *o.ResUri
}
// GetResUriOk returns a tuple with the ResUri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *VALGroupDocument) GetResUriOk() (*string, bool) {
if o == nil || IsNil(o.ResUri) {
return nil, false
}
return o.ResUri, true
}
// HasResUri returns a boolean if a field has been set.
func (o *VALGroupDocument) HasResUri() bool {
if o != nil && !IsNil(o.ResUri) {
return true
}
return false
}
// SetResUri gets a reference to the given string and assigns it to the ResUri field.
func (o *VALGroupDocument) SetResUri(v string) {
o.ResUri = &v
}
// GetLocInfo returns the LocInfo field value if set, zero value otherwise.
func (o *VALGroupDocument) 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 *VALGroupDocument) 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 *VALGroupDocument) 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 *VALGroupDocument) SetLocInfo(v LocationInfo) {
o.LocInfo = &v
}
// GetAddLocInfo returns the AddLocInfo field value if set, zero value otherwise.
func (o *VALGroupDocument) 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 *VALGroupDocument) 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 *VALGroupDocument) 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 *VALGroupDocument) SetAddLocInfo(v LocationArea5G) {
o.AddLocInfo = &v
}
// GetExtGrpId returns the ExtGrpId field value if set, zero value otherwise.
func (o *VALGroupDocument) 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 *VALGroupDocument) 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 *VALGroupDocument) 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 *VALGroupDocument) SetExtGrpId(v string) {
o.ExtGrpId = &v
}
// GetCom5GLanType returns the Com5GLanType field value if set, zero value otherwise.
func (o *VALGroupDocument) 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 *VALGroupDocument) 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 *VALGroupDocument) 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 *VALGroupDocument) SetCom5GLanType(v PduSessionType) {
o.Com5GLanType = &v
}
func (o VALGroupDocument) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o VALGroupDocument) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["valGroupId"] = o.ValGroupId
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.ValSvcInf) {
toSerialize["valSvcInf"] = o.ValSvcInf
}
if !IsNil(o.SuppFeat) {
toSerialize["suppFeat"] = o.SuppFeat
}
if !IsNil(o.ResUri) {
toSerialize["resUri"] = o.ResUri
}
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
}
func (o *VALGroupDocument) 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{
"valGroupId",
}
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)
}
}
varVALGroupDocument := _VALGroupDocument{}
err = json.Unmarshal(bytes, &varVALGroupDocument)
if err != nil {
return err
}
*o = VALGroupDocument(varVALGroupDocument)
return err
}
type NullableVALGroupDocument struct {
value *VALGroupDocument
isSet bool
}
func (v NullableVALGroupDocument) Get() *VALGroupDocument {
return v.value
}
func (v *NullableVALGroupDocument) Set(val *VALGroupDocument) {
v.value = val
v.isSet = true
}
func (v NullableVALGroupDocument) IsSet() bool {
return v.isSet
}
func (v *NullableVALGroupDocument) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableVALGroupDocument(val *VALGroupDocument) *NullableVALGroupDocument {
return &NullableVALGroupDocument{value: val, isSet: true}
}
func (v NullableVALGroupDocument) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableVALGroupDocument) 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

搜索帮助