1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_sip_event_type.go 5.23 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
Nchf_ConvergedCharging
ConvergedCharging Service © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 3.1.5
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nchf_ConvergedCharging
import (
"encoding/json"
)
// checks if the SIPEventType type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SIPEventType{}
// SIPEventType struct for SIPEventType
type SIPEventType struct {
SIPMethod *string `json:"sIPMethod,omitempty"`
EventHeader *string `json:"eventHeader,omitempty"`
// Integer where the allowed values correspond to the value range of an unsigned 32-bit integer.
ExpiresHeader *int32 `json:"expiresHeader,omitempty"`
}
// NewSIPEventType instantiates a new SIPEventType 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 NewSIPEventType() *SIPEventType {
this := SIPEventType{}
return &this
}
// NewSIPEventTypeWithDefaults instantiates a new SIPEventType 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 NewSIPEventTypeWithDefaults() *SIPEventType {
this := SIPEventType{}
return &this
}
// GetSIPMethod returns the SIPMethod field value if set, zero value otherwise.
func (o *SIPEventType) GetSIPMethod() string {
if o == nil || IsNil(o.SIPMethod) {
var ret string
return ret
}
return *o.SIPMethod
}
// GetSIPMethodOk returns a tuple with the SIPMethod field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SIPEventType) GetSIPMethodOk() (*string, bool) {
if o == nil || IsNil(o.SIPMethod) {
return nil, false
}
return o.SIPMethod, true
}
// HasSIPMethod returns a boolean if a field has been set.
func (o *SIPEventType) HasSIPMethod() bool {
if o != nil && !IsNil(o.SIPMethod) {
return true
}
return false
}
// SetSIPMethod gets a reference to the given string and assigns it to the SIPMethod field.
func (o *SIPEventType) SetSIPMethod(v string) {
o.SIPMethod = &v
}
// GetEventHeader returns the EventHeader field value if set, zero value otherwise.
func (o *SIPEventType) GetEventHeader() string {
if o == nil || IsNil(o.EventHeader) {
var ret string
return ret
}
return *o.EventHeader
}
// GetEventHeaderOk returns a tuple with the EventHeader field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SIPEventType) GetEventHeaderOk() (*string, bool) {
if o == nil || IsNil(o.EventHeader) {
return nil, false
}
return o.EventHeader, true
}
// HasEventHeader returns a boolean if a field has been set.
func (o *SIPEventType) HasEventHeader() bool {
if o != nil && !IsNil(o.EventHeader) {
return true
}
return false
}
// SetEventHeader gets a reference to the given string and assigns it to the EventHeader field.
func (o *SIPEventType) SetEventHeader(v string) {
o.EventHeader = &v
}
// GetExpiresHeader returns the ExpiresHeader field value if set, zero value otherwise.
func (o *SIPEventType) GetExpiresHeader() int32 {
if o == nil || IsNil(o.ExpiresHeader) {
var ret int32
return ret
}
return *o.ExpiresHeader
}
// GetExpiresHeaderOk returns a tuple with the ExpiresHeader field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SIPEventType) GetExpiresHeaderOk() (*int32, bool) {
if o == nil || IsNil(o.ExpiresHeader) {
return nil, false
}
return o.ExpiresHeader, true
}
// HasExpiresHeader returns a boolean if a field has been set.
func (o *SIPEventType) HasExpiresHeader() bool {
if o != nil && !IsNil(o.ExpiresHeader) {
return true
}
return false
}
// SetExpiresHeader gets a reference to the given int32 and assigns it to the ExpiresHeader field.
func (o *SIPEventType) SetExpiresHeader(v int32) {
o.ExpiresHeader = &v
}
func (o SIPEventType) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SIPEventType) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.SIPMethod) {
toSerialize["sIPMethod"] = o.SIPMethod
}
if !IsNil(o.EventHeader) {
toSerialize["eventHeader"] = o.EventHeader
}
if !IsNil(o.ExpiresHeader) {
toSerialize["expiresHeader"] = o.ExpiresHeader
}
return toSerialize, nil
}
type NullableSIPEventType struct {
value *SIPEventType
isSet bool
}
func (v NullableSIPEventType) Get() *SIPEventType {
return v.value
}
func (v *NullableSIPEventType) Set(val *SIPEventType) {
v.value = val
v.isSet = true
}
func (v NullableSIPEventType) IsSet() bool {
return v.isSet
}
func (v *NullableSIPEventType) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSIPEventType(val *SIPEventType) *NullableSIPEventType {
return &NullableSIPEventType{value: val, isSet: true}
}
func (v NullableSIPEventType) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSIPEventType) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
Go
1
https://gitee.com/konglinglong/openapi.git
git@gitee.com:konglinglong/openapi.git
konglinglong
openapi
openapi
e403a3c726a4

搜索帮助