代码拉取完成,页面将自动刷新
/*
Nhss_imsUEAU
Nhss UE Authentication Service for IMS. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.1.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nhss_imsUEAU
import (
"encoding/json"
"fmt"
)
// checks if the SipAuthenticationInfoResult type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SipAuthenticationInfoResult{}
// SipAuthenticationInfoResult Contains authentication information returned in the SIP authentication response message (e.g. authentication vectors, digest authentication parameters, line identifiers)
type SipAuthenticationInfoResult struct {
// IMS Private Identity of the UE
Impi string `json:"impi"`
Var3gAkaAvs []Model3GAkaAv `json:"3gAkaAvs,omitempty"`
DigestAuth *DigestAuthentication `json:"digestAuth,omitempty"`
LineIdentifierList []string `json:"lineIdentifierList,omitempty"`
IpAddress NullableIpAddr `json:"ipAddress,omitempty"`
}
type _SipAuthenticationInfoResult SipAuthenticationInfoResult
// NewSipAuthenticationInfoResult instantiates a new SipAuthenticationInfoResult 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 NewSipAuthenticationInfoResult(impi string) *SipAuthenticationInfoResult {
this := SipAuthenticationInfoResult{}
this.Impi = impi
return &this
}
// NewSipAuthenticationInfoResultWithDefaults instantiates a new SipAuthenticationInfoResult 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 NewSipAuthenticationInfoResultWithDefaults() *SipAuthenticationInfoResult {
this := SipAuthenticationInfoResult{}
return &this
}
// GetImpi returns the Impi field value
func (o *SipAuthenticationInfoResult) GetImpi() string {
if o == nil {
var ret string
return ret
}
return o.Impi
}
// GetImpiOk returns a tuple with the Impi field value
// and a boolean to check if the value has been set.
func (o *SipAuthenticationInfoResult) GetImpiOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Impi, true
}
// SetImpi sets field value
func (o *SipAuthenticationInfoResult) SetImpi(v string) {
o.Impi = v
}
// GetVar3gAkaAvs returns the Var3gAkaAvs field value if set, zero value otherwise.
func (o *SipAuthenticationInfoResult) GetVar3gAkaAvs() []Model3GAkaAv {
if o == nil || IsNil(o.Var3gAkaAvs) {
var ret []Model3GAkaAv
return ret
}
return o.Var3gAkaAvs
}
// GetVar3gAkaAvsOk returns a tuple with the Var3gAkaAvs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SipAuthenticationInfoResult) GetVar3gAkaAvsOk() ([]Model3GAkaAv, bool) {
if o == nil || IsNil(o.Var3gAkaAvs) {
return nil, false
}
return o.Var3gAkaAvs, true
}
// HasVar3gAkaAvs returns a boolean if a field has been set.
func (o *SipAuthenticationInfoResult) HasVar3gAkaAvs() bool {
if o != nil && !IsNil(o.Var3gAkaAvs) {
return true
}
return false
}
// SetVar3gAkaAvs gets a reference to the given []Model3GAkaAv and assigns it to the Var3gAkaAvs field.
func (o *SipAuthenticationInfoResult) SetVar3gAkaAvs(v []Model3GAkaAv) {
o.Var3gAkaAvs = v
}
// GetDigestAuth returns the DigestAuth field value if set, zero value otherwise.
func (o *SipAuthenticationInfoResult) GetDigestAuth() DigestAuthentication {
if o == nil || IsNil(o.DigestAuth) {
var ret DigestAuthentication
return ret
}
return *o.DigestAuth
}
// GetDigestAuthOk returns a tuple with the DigestAuth field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SipAuthenticationInfoResult) GetDigestAuthOk() (*DigestAuthentication, bool) {
if o == nil || IsNil(o.DigestAuth) {
return nil, false
}
return o.DigestAuth, true
}
// HasDigestAuth returns a boolean if a field has been set.
func (o *SipAuthenticationInfoResult) HasDigestAuth() bool {
if o != nil && !IsNil(o.DigestAuth) {
return true
}
return false
}
// SetDigestAuth gets a reference to the given DigestAuthentication and assigns it to the DigestAuth field.
func (o *SipAuthenticationInfoResult) SetDigestAuth(v DigestAuthentication) {
o.DigestAuth = &v
}
// GetLineIdentifierList returns the LineIdentifierList field value if set, zero value otherwise.
func (o *SipAuthenticationInfoResult) GetLineIdentifierList() []string {
if o == nil || IsNil(o.LineIdentifierList) {
var ret []string
return ret
}
return o.LineIdentifierList
}
// GetLineIdentifierListOk returns a tuple with the LineIdentifierList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SipAuthenticationInfoResult) GetLineIdentifierListOk() ([]string, bool) {
if o == nil || IsNil(o.LineIdentifierList) {
return nil, false
}
return o.LineIdentifierList, true
}
// HasLineIdentifierList returns a boolean if a field has been set.
func (o *SipAuthenticationInfoResult) HasLineIdentifierList() bool {
if o != nil && !IsNil(o.LineIdentifierList) {
return true
}
return false
}
// SetLineIdentifierList gets a reference to the given []string and assigns it to the LineIdentifierList field.
func (o *SipAuthenticationInfoResult) SetLineIdentifierList(v []string) {
o.LineIdentifierList = v
}
// GetIpAddress returns the IpAddress field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SipAuthenticationInfoResult) GetIpAddress() IpAddr {
if o == nil || IsNil(o.IpAddress.Get()) {
var ret IpAddr
return ret
}
return *o.IpAddress.Get()
}
// GetIpAddressOk returns a tuple with the IpAddress 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 *SipAuthenticationInfoResult) GetIpAddressOk() (*IpAddr, bool) {
if o == nil {
return nil, false
}
return o.IpAddress.Get(), o.IpAddress.IsSet()
}
// HasIpAddress returns a boolean if a field has been set.
func (o *SipAuthenticationInfoResult) HasIpAddress() bool {
if o != nil && o.IpAddress.IsSet() {
return true
}
return false
}
// SetIpAddress gets a reference to the given NullableIpAddr and assigns it to the IpAddress field.
func (o *SipAuthenticationInfoResult) SetIpAddress(v IpAddr) {
o.IpAddress.Set(&v)
}
// SetIpAddressNil sets the value for IpAddress to be an explicit nil
func (o *SipAuthenticationInfoResult) SetIpAddressNil() {
o.IpAddress.Set(nil)
}
// UnsetIpAddress ensures that no value is present for IpAddress, not even an explicit nil
func (o *SipAuthenticationInfoResult) UnsetIpAddress() {
o.IpAddress.Unset()
}
func (o SipAuthenticationInfoResult) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SipAuthenticationInfoResult) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["impi"] = o.Impi
if !IsNil(o.Var3gAkaAvs) {
toSerialize["3gAkaAvs"] = o.Var3gAkaAvs
}
if !IsNil(o.DigestAuth) {
toSerialize["digestAuth"] = o.DigestAuth
}
if !IsNil(o.LineIdentifierList) {
toSerialize["lineIdentifierList"] = o.LineIdentifierList
}
if o.IpAddress.IsSet() {
toSerialize["ipAddress"] = o.IpAddress.Get()
}
return toSerialize, nil
}
func (o *SipAuthenticationInfoResult) 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{
"impi",
}
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)
}
}
varSipAuthenticationInfoResult := _SipAuthenticationInfoResult{}
err = json.Unmarshal(bytes, &varSipAuthenticationInfoResult)
if err != nil {
return err
}
*o = SipAuthenticationInfoResult(varSipAuthenticationInfoResult)
return err
}
type NullableSipAuthenticationInfoResult struct {
value *SipAuthenticationInfoResult
isSet bool
}
func (v NullableSipAuthenticationInfoResult) Get() *SipAuthenticationInfoResult {
return v.value
}
func (v *NullableSipAuthenticationInfoResult) Set(val *SipAuthenticationInfoResult) {
v.value = val
v.isSet = true
}
func (v NullableSipAuthenticationInfoResult) IsSet() bool {
return v.isSet
}
func (v *NullableSipAuthenticationInfoResult) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSipAuthenticationInfoResult(val *SipAuthenticationInfoResult) *NullableSipAuthenticationInfoResult {
return &NullableSipAuthenticationInfoResult{value: val, isSet: true}
}
func (v NullableSipAuthenticationInfoResult) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSipAuthenticationInfoResult) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。