代码拉取完成,页面将自动刷新
/*
Nsmf_PDUSession
SMF PDU Session Service. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.4
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nsmf_PDUSession
import (
"encoding/json"
"os"
)
// checks if the UpdateSmContext400Response type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &UpdateSmContext400Response{}
// UpdateSmContext400Response struct for UpdateSmContext400Response
type UpdateSmContext400Response struct {
JsonData *SmContextUpdateError `json:"jsonData,omitempty"`
BinaryDataN1SmMessage **os.File `json:"binaryDataN1SmMessage,omitempty"`
BinaryDataN2SmInformation **os.File `json:"binaryDataN2SmInformation,omitempty"`
}
// NewUpdateSmContext400Response instantiates a new UpdateSmContext400Response 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 NewUpdateSmContext400Response() *UpdateSmContext400Response {
this := UpdateSmContext400Response{}
return &this
}
// NewUpdateSmContext400ResponseWithDefaults instantiates a new UpdateSmContext400Response 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 NewUpdateSmContext400ResponseWithDefaults() *UpdateSmContext400Response {
this := UpdateSmContext400Response{}
return &this
}
// GetJsonData returns the JsonData field value if set, zero value otherwise.
func (o *UpdateSmContext400Response) GetJsonData() SmContextUpdateError {
if o == nil || IsNil(o.JsonData) {
var ret SmContextUpdateError
return ret
}
return *o.JsonData
}
// GetJsonDataOk returns a tuple with the JsonData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateSmContext400Response) GetJsonDataOk() (*SmContextUpdateError, bool) {
if o == nil || IsNil(o.JsonData) {
return nil, false
}
return o.JsonData, true
}
// HasJsonData returns a boolean if a field has been set.
func (o *UpdateSmContext400Response) HasJsonData() bool {
if o != nil && !IsNil(o.JsonData) {
return true
}
return false
}
// SetJsonData gets a reference to the given SmContextUpdateError and assigns it to the JsonData field.
func (o *UpdateSmContext400Response) SetJsonData(v SmContextUpdateError) {
o.JsonData = &v
}
// GetBinaryDataN1SmMessage returns the BinaryDataN1SmMessage field value if set, zero value otherwise.
func (o *UpdateSmContext400Response) GetBinaryDataN1SmMessage() *os.File {
if o == nil || IsNil(o.BinaryDataN1SmMessage) {
var ret *os.File
return ret
}
return *o.BinaryDataN1SmMessage
}
// GetBinaryDataN1SmMessageOk returns a tuple with the BinaryDataN1SmMessage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateSmContext400Response) GetBinaryDataN1SmMessageOk() (**os.File, bool) {
if o == nil || IsNil(o.BinaryDataN1SmMessage) {
return nil, false
}
return o.BinaryDataN1SmMessage, true
}
// HasBinaryDataN1SmMessage returns a boolean if a field has been set.
func (o *UpdateSmContext400Response) HasBinaryDataN1SmMessage() bool {
if o != nil && !IsNil(o.BinaryDataN1SmMessage) {
return true
}
return false
}
// SetBinaryDataN1SmMessage gets a reference to the given *os.File and assigns it to the BinaryDataN1SmMessage field.
func (o *UpdateSmContext400Response) SetBinaryDataN1SmMessage(v *os.File) {
o.BinaryDataN1SmMessage = &v
}
// GetBinaryDataN2SmInformation returns the BinaryDataN2SmInformation field value if set, zero value otherwise.
func (o *UpdateSmContext400Response) GetBinaryDataN2SmInformation() *os.File {
if o == nil || IsNil(o.BinaryDataN2SmInformation) {
var ret *os.File
return ret
}
return *o.BinaryDataN2SmInformation
}
// GetBinaryDataN2SmInformationOk returns a tuple with the BinaryDataN2SmInformation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateSmContext400Response) GetBinaryDataN2SmInformationOk() (**os.File, bool) {
if o == nil || IsNil(o.BinaryDataN2SmInformation) {
return nil, false
}
return o.BinaryDataN2SmInformation, true
}
// HasBinaryDataN2SmInformation returns a boolean if a field has been set.
func (o *UpdateSmContext400Response) HasBinaryDataN2SmInformation() bool {
if o != nil && !IsNil(o.BinaryDataN2SmInformation) {
return true
}
return false
}
// SetBinaryDataN2SmInformation gets a reference to the given *os.File and assigns it to the BinaryDataN2SmInformation field.
func (o *UpdateSmContext400Response) SetBinaryDataN2SmInformation(v *os.File) {
o.BinaryDataN2SmInformation = &v
}
func (o UpdateSmContext400Response) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o UpdateSmContext400Response) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.JsonData) {
toSerialize["jsonData"] = o.JsonData
}
if !IsNil(o.BinaryDataN1SmMessage) {
toSerialize["binaryDataN1SmMessage"] = o.BinaryDataN1SmMessage
}
if !IsNil(o.BinaryDataN2SmInformation) {
toSerialize["binaryDataN2SmInformation"] = o.BinaryDataN2SmInformation
}
return toSerialize, nil
}
type NullableUpdateSmContext400Response struct {
value *UpdateSmContext400Response
isSet bool
}
func (v NullableUpdateSmContext400Response) Get() *UpdateSmContext400Response {
return v.value
}
func (v *NullableUpdateSmContext400Response) Set(val *UpdateSmContext400Response) {
v.value = val
v.isSet = true
}
func (v NullableUpdateSmContext400Response) IsSet() bool {
return v.isSet
}
func (v *NullableUpdateSmContext400Response) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUpdateSmContext400Response(val *UpdateSmContext400Response) *NullableUpdateSmContext400Response {
return &NullableUpdateSmContext400Response{value: val, isSet: true}
}
func (v NullableUpdateSmContext400Response) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableUpdateSmContext400Response) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。