1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_data_reporting_provisioning_session.go 9.58 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
Ndcaf_DataReportingProvisioning
Data Collection AF: Provisioning Sessions API © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Ndcaf_DataReportingProvisioning
import (
"encoding/json"
"fmt"
)
// checks if the DataReportingProvisioningSession type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &DataReportingProvisioningSession{}
// DataReportingProvisioningSession A representation of a Data Reporting Provisioning Session.
type DataReportingProvisioningSession struct {
// String chosen by the 5GMS AF to serve as an identifier in a resource URI.
ProvisioningSessionId string `json:"provisioningSessionId"`
// Contains an identity of an application service provider.
AspId string `json:"aspId"`
// String providing an application identifier.
ExternalApplicationId string `json:"externalApplicationId"`
// String providing an application identifier.
InternalApplicationId *string `json:"internalApplicationId,omitempty"`
EventId AfEvent `json:"eventId"`
DataReportingConfigurationIds []string `json:"dataReportingConfigurationIds"`
}
type _DataReportingProvisioningSession DataReportingProvisioningSession
// NewDataReportingProvisioningSession instantiates a new DataReportingProvisioningSession 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 NewDataReportingProvisioningSession(provisioningSessionId string, aspId string, externalApplicationId string, eventId AfEvent, dataReportingConfigurationIds []string) *DataReportingProvisioningSession {
this := DataReportingProvisioningSession{}
this.ProvisioningSessionId = provisioningSessionId
this.AspId = aspId
this.ExternalApplicationId = externalApplicationId
this.EventId = eventId
this.DataReportingConfigurationIds = dataReportingConfigurationIds
return &this
}
// NewDataReportingProvisioningSessionWithDefaults instantiates a new DataReportingProvisioningSession 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 NewDataReportingProvisioningSessionWithDefaults() *DataReportingProvisioningSession {
this := DataReportingProvisioningSession{}
return &this
}
// GetProvisioningSessionId returns the ProvisioningSessionId field value
func (o *DataReportingProvisioningSession) GetProvisioningSessionId() string {
if o == nil {
var ret string
return ret
}
return o.ProvisioningSessionId
}
// GetProvisioningSessionIdOk returns a tuple with the ProvisioningSessionId field value
// and a boolean to check if the value has been set.
func (o *DataReportingProvisioningSession) GetProvisioningSessionIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ProvisioningSessionId, true
}
// SetProvisioningSessionId sets field value
func (o *DataReportingProvisioningSession) SetProvisioningSessionId(v string) {
o.ProvisioningSessionId = v
}
// GetAspId returns the AspId field value
func (o *DataReportingProvisioningSession) GetAspId() string {
if o == nil {
var ret string
return ret
}
return o.AspId
}
// GetAspIdOk returns a tuple with the AspId field value
// and a boolean to check if the value has been set.
func (o *DataReportingProvisioningSession) GetAspIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.AspId, true
}
// SetAspId sets field value
func (o *DataReportingProvisioningSession) SetAspId(v string) {
o.AspId = v
}
// GetExternalApplicationId returns the ExternalApplicationId field value
func (o *DataReportingProvisioningSession) GetExternalApplicationId() string {
if o == nil {
var ret string
return ret
}
return o.ExternalApplicationId
}
// GetExternalApplicationIdOk returns a tuple with the ExternalApplicationId field value
// and a boolean to check if the value has been set.
func (o *DataReportingProvisioningSession) GetExternalApplicationIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ExternalApplicationId, true
}
// SetExternalApplicationId sets field value
func (o *DataReportingProvisioningSession) SetExternalApplicationId(v string) {
o.ExternalApplicationId = v
}
// GetInternalApplicationId returns the InternalApplicationId field value if set, zero value otherwise.
func (o *DataReportingProvisioningSession) GetInternalApplicationId() string {
if o == nil || IsNil(o.InternalApplicationId) {
var ret string
return ret
}
return *o.InternalApplicationId
}
// GetInternalApplicationIdOk returns a tuple with the InternalApplicationId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DataReportingProvisioningSession) GetInternalApplicationIdOk() (*string, bool) {
if o == nil || IsNil(o.InternalApplicationId) {
return nil, false
}
return o.InternalApplicationId, true
}
// HasInternalApplicationId returns a boolean if a field has been set.
func (o *DataReportingProvisioningSession) HasInternalApplicationId() bool {
if o != nil && !IsNil(o.InternalApplicationId) {
return true
}
return false
}
// SetInternalApplicationId gets a reference to the given string and assigns it to the InternalApplicationId field.
func (o *DataReportingProvisioningSession) SetInternalApplicationId(v string) {
o.InternalApplicationId = &v
}
// GetEventId returns the EventId field value
func (o *DataReportingProvisioningSession) GetEventId() AfEvent {
if o == nil {
var ret AfEvent
return ret
}
return o.EventId
}
// GetEventIdOk returns a tuple with the EventId field value
// and a boolean to check if the value has been set.
func (o *DataReportingProvisioningSession) GetEventIdOk() (*AfEvent, bool) {
if o == nil {
return nil, false
}
return &o.EventId, true
}
// SetEventId sets field value
func (o *DataReportingProvisioningSession) SetEventId(v AfEvent) {
o.EventId = v
}
// GetDataReportingConfigurationIds returns the DataReportingConfigurationIds field value
func (o *DataReportingProvisioningSession) GetDataReportingConfigurationIds() []string {
if o == nil {
var ret []string
return ret
}
return o.DataReportingConfigurationIds
}
// GetDataReportingConfigurationIdsOk returns a tuple with the DataReportingConfigurationIds field value
// and a boolean to check if the value has been set.
func (o *DataReportingProvisioningSession) GetDataReportingConfigurationIdsOk() ([]string, bool) {
if o == nil {
return nil, false
}
return o.DataReportingConfigurationIds, true
}
// SetDataReportingConfigurationIds sets field value
func (o *DataReportingProvisioningSession) SetDataReportingConfigurationIds(v []string) {
o.DataReportingConfigurationIds = v
}
func (o DataReportingProvisioningSession) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o DataReportingProvisioningSession) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["provisioningSessionId"] = o.ProvisioningSessionId
toSerialize["aspId"] = o.AspId
toSerialize["externalApplicationId"] = o.ExternalApplicationId
if !IsNil(o.InternalApplicationId) {
toSerialize["internalApplicationId"] = o.InternalApplicationId
}
toSerialize["eventId"] = o.EventId
toSerialize["dataReportingConfigurationIds"] = o.DataReportingConfigurationIds
return toSerialize, nil
}
func (o *DataReportingProvisioningSession) 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{
"provisioningSessionId",
"aspId",
"externalApplicationId",
"eventId",
"dataReportingConfigurationIds",
}
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)
}
}
varDataReportingProvisioningSession := _DataReportingProvisioningSession{}
err = json.Unmarshal(bytes, &varDataReportingProvisioningSession)
if err != nil {
return err
}
*o = DataReportingProvisioningSession(varDataReportingProvisioningSession)
return err
}
type NullableDataReportingProvisioningSession struct {
value *DataReportingProvisioningSession
isSet bool
}
func (v NullableDataReportingProvisioningSession) Get() *DataReportingProvisioningSession {
return v.value
}
func (v *NullableDataReportingProvisioningSession) Set(val *DataReportingProvisioningSession) {
v.value = val
v.isSet = true
}
func (v NullableDataReportingProvisioningSession) IsSet() bool {
return v.isSet
}
func (v *NullableDataReportingProvisioningSession) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDataReportingProvisioningSession(val *DataReportingProvisioningSession) *NullableDataReportingProvisioningSession {
return &NullableDataReportingProvisioningSession{value: val, isSet: true}
}
func (v NullableDataReportingProvisioningSession) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableDataReportingProvisioningSession) 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

搜索帮助