代码拉取完成,页面将自动刷新
/*
Nudr_DataRepository API OpenAPI file
Unified Data Repository Service. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 2.2.4
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nudr_DR
import (
"encoding/json"
"fmt"
"time"
)
// checks if the UpuInfo1 type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &UpuInfo1{}
// UpuInfo1 struct for UpuInfo1
type UpuInfo1 struct {
UpuDataList []UpuData2 `json:"upuDataList,omitempty"`
UpuRegInd *bool `json:"upuRegInd,omitempty"`
// Contains the indication of whether the acknowledgement from UE is needed.
UpuAckInd *bool `json:"upuAckInd,omitempty"`
// MAC value for protecting UPU procedure (UPU-MAC-IAUSF and UPU-MAC-IUE).
UpuMacIausf *string `json:"upuMacIausf,omitempty"`
// CounterUPU.
CounterUpu *string `json:"counterUpu,omitempty"`
// string with format 'date-time' as defined in OpenAPI.
ProvisioningTime time.Time `json:"provisioningTime"`
// string with format 'bytes' as defined in OpenAPI
UpuTransparentContainer *string `json:"upuTransparentContainer,omitempty"`
}
type _UpuInfo1 UpuInfo1
// NewUpuInfo1 instantiates a new UpuInfo1 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 NewUpuInfo1(provisioningTime time.Time) *UpuInfo1 {
this := UpuInfo1{}
this.ProvisioningTime = provisioningTime
return &this
}
// NewUpuInfo1WithDefaults instantiates a new UpuInfo1 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 NewUpuInfo1WithDefaults() *UpuInfo1 {
this := UpuInfo1{}
return &this
}
// GetUpuDataList returns the UpuDataList field value if set, zero value otherwise.
func (o *UpuInfo1) GetUpuDataList() []UpuData2 {
if o == nil || IsNil(o.UpuDataList) {
var ret []UpuData2
return ret
}
return o.UpuDataList
}
// GetUpuDataListOk returns a tuple with the UpuDataList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpuInfo1) GetUpuDataListOk() ([]UpuData2, bool) {
if o == nil || IsNil(o.UpuDataList) {
return nil, false
}
return o.UpuDataList, true
}
// HasUpuDataList returns a boolean if a field has been set.
func (o *UpuInfo1) HasUpuDataList() bool {
if o != nil && !IsNil(o.UpuDataList) {
return true
}
return false
}
// SetUpuDataList gets a reference to the given []UpuData2 and assigns it to the UpuDataList field.
func (o *UpuInfo1) SetUpuDataList(v []UpuData2) {
o.UpuDataList = v
}
// GetUpuRegInd returns the UpuRegInd field value if set, zero value otherwise.
func (o *UpuInfo1) GetUpuRegInd() bool {
if o == nil || IsNil(o.UpuRegInd) {
var ret bool
return ret
}
return *o.UpuRegInd
}
// GetUpuRegIndOk returns a tuple with the UpuRegInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpuInfo1) GetUpuRegIndOk() (*bool, bool) {
if o == nil || IsNil(o.UpuRegInd) {
return nil, false
}
return o.UpuRegInd, true
}
// HasUpuRegInd returns a boolean if a field has been set.
func (o *UpuInfo1) HasUpuRegInd() bool {
if o != nil && !IsNil(o.UpuRegInd) {
return true
}
return false
}
// SetUpuRegInd gets a reference to the given bool and assigns it to the UpuRegInd field.
func (o *UpuInfo1) SetUpuRegInd(v bool) {
o.UpuRegInd = &v
}
// GetUpuAckInd returns the UpuAckInd field value if set, zero value otherwise.
func (o *UpuInfo1) GetUpuAckInd() bool {
if o == nil || IsNil(o.UpuAckInd) {
var ret bool
return ret
}
return *o.UpuAckInd
}
// GetUpuAckIndOk returns a tuple with the UpuAckInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpuInfo1) GetUpuAckIndOk() (*bool, bool) {
if o == nil || IsNil(o.UpuAckInd) {
return nil, false
}
return o.UpuAckInd, true
}
// HasUpuAckInd returns a boolean if a field has been set.
func (o *UpuInfo1) HasUpuAckInd() bool {
if o != nil && !IsNil(o.UpuAckInd) {
return true
}
return false
}
// SetUpuAckInd gets a reference to the given bool and assigns it to the UpuAckInd field.
func (o *UpuInfo1) SetUpuAckInd(v bool) {
o.UpuAckInd = &v
}
// GetUpuMacIausf returns the UpuMacIausf field value if set, zero value otherwise.
func (o *UpuInfo1) GetUpuMacIausf() string {
if o == nil || IsNil(o.UpuMacIausf) {
var ret string
return ret
}
return *o.UpuMacIausf
}
// GetUpuMacIausfOk returns a tuple with the UpuMacIausf field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpuInfo1) GetUpuMacIausfOk() (*string, bool) {
if o == nil || IsNil(o.UpuMacIausf) {
return nil, false
}
return o.UpuMacIausf, true
}
// HasUpuMacIausf returns a boolean if a field has been set.
func (o *UpuInfo1) HasUpuMacIausf() bool {
if o != nil && !IsNil(o.UpuMacIausf) {
return true
}
return false
}
// SetUpuMacIausf gets a reference to the given string and assigns it to the UpuMacIausf field.
func (o *UpuInfo1) SetUpuMacIausf(v string) {
o.UpuMacIausf = &v
}
// GetCounterUpu returns the CounterUpu field value if set, zero value otherwise.
func (o *UpuInfo1) GetCounterUpu() string {
if o == nil || IsNil(o.CounterUpu) {
var ret string
return ret
}
return *o.CounterUpu
}
// GetCounterUpuOk returns a tuple with the CounterUpu field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpuInfo1) GetCounterUpuOk() (*string, bool) {
if o == nil || IsNil(o.CounterUpu) {
return nil, false
}
return o.CounterUpu, true
}
// HasCounterUpu returns a boolean if a field has been set.
func (o *UpuInfo1) HasCounterUpu() bool {
if o != nil && !IsNil(o.CounterUpu) {
return true
}
return false
}
// SetCounterUpu gets a reference to the given string and assigns it to the CounterUpu field.
func (o *UpuInfo1) SetCounterUpu(v string) {
o.CounterUpu = &v
}
// GetProvisioningTime returns the ProvisioningTime field value
func (o *UpuInfo1) GetProvisioningTime() time.Time {
if o == nil {
var ret time.Time
return ret
}
return o.ProvisioningTime
}
// GetProvisioningTimeOk returns a tuple with the ProvisioningTime field value
// and a boolean to check if the value has been set.
func (o *UpuInfo1) GetProvisioningTimeOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return &o.ProvisioningTime, true
}
// SetProvisioningTime sets field value
func (o *UpuInfo1) SetProvisioningTime(v time.Time) {
o.ProvisioningTime = v
}
// GetUpuTransparentContainer returns the UpuTransparentContainer field value if set, zero value otherwise.
func (o *UpuInfo1) GetUpuTransparentContainer() string {
if o == nil || IsNil(o.UpuTransparentContainer) {
var ret string
return ret
}
return *o.UpuTransparentContainer
}
// GetUpuTransparentContainerOk returns a tuple with the UpuTransparentContainer field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpuInfo1) GetUpuTransparentContainerOk() (*string, bool) {
if o == nil || IsNil(o.UpuTransparentContainer) {
return nil, false
}
return o.UpuTransparentContainer, true
}
// HasUpuTransparentContainer returns a boolean if a field has been set.
func (o *UpuInfo1) HasUpuTransparentContainer() bool {
if o != nil && !IsNil(o.UpuTransparentContainer) {
return true
}
return false
}
// SetUpuTransparentContainer gets a reference to the given string and assigns it to the UpuTransparentContainer field.
func (o *UpuInfo1) SetUpuTransparentContainer(v string) {
o.UpuTransparentContainer = &v
}
func (o UpuInfo1) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o UpuInfo1) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.UpuDataList) {
toSerialize["upuDataList"] = o.UpuDataList
}
if !IsNil(o.UpuRegInd) {
toSerialize["upuRegInd"] = o.UpuRegInd
}
if !IsNil(o.UpuAckInd) {
toSerialize["upuAckInd"] = o.UpuAckInd
}
if !IsNil(o.UpuMacIausf) {
toSerialize["upuMacIausf"] = o.UpuMacIausf
}
if !IsNil(o.CounterUpu) {
toSerialize["counterUpu"] = o.CounterUpu
}
toSerialize["provisioningTime"] = o.ProvisioningTime
if !IsNil(o.UpuTransparentContainer) {
toSerialize["upuTransparentContainer"] = o.UpuTransparentContainer
}
return toSerialize, nil
}
func (o *UpuInfo1) 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{
"provisioningTime",
}
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)
}
}
varUpuInfo1 := _UpuInfo1{}
err = json.Unmarshal(bytes, &varUpuInfo1)
if err != nil {
return err
}
*o = UpuInfo1(varUpuInfo1)
return err
}
type NullableUpuInfo1 struct {
value *UpuInfo1
isSet bool
}
func (v NullableUpuInfo1) Get() *UpuInfo1 {
return v.value
}
func (v *NullableUpuInfo1) Set(val *UpuInfo1) {
v.value = val
v.isSet = true
}
func (v NullableUpuInfo1) IsSet() bool {
return v.isSet
}
func (v *NullableUpuInfo1) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUpuInfo1(val *UpuInfo1) *NullableUpuInfo1 {
return &NullableUpuInfo1{value: val, isSet: true}
}
func (v NullableUpuInfo1) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableUpuInfo1) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。