1 Star 0 Fork 0

MrCoder/openapi

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
model_mda_request_single_all_of_attributes.go 9.73 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 +08:00 . update
/*
Provisioning MnS
OAS 3.0.1 definition of the Provisioning MnS © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 17.6.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_ProvMnS
import (
"encoding/json"
"time"
)
// checks if the MDARequestSingleAllOfAttributes type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &MDARequestSingleAllOfAttributes{}
// MDARequestSingleAllOfAttributes struct for MDARequestSingleAllOfAttributes
type MDARequestSingleAllOfAttributes struct {
RequestedMDAOutputs []MDAOutputPerMDAType `json:"requestedMDAOutputs,omitempty"`
ReportingMethod *ReportingMethod `json:"reportingMethod,omitempty"`
ReportingTarget *string `json:"reportingTarget,omitempty"`
AnalyticsScope *AnalyticsScopeType `json:"analyticsScope,omitempty"`
StartTime *time.Time `json:"startTime,omitempty"`
StopTime *time.Time `json:"stopTime,omitempty"`
}
// NewMDARequestSingleAllOfAttributes instantiates a new MDARequestSingleAllOfAttributes 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 NewMDARequestSingleAllOfAttributes() *MDARequestSingleAllOfAttributes {
this := MDARequestSingleAllOfAttributes{}
return &this
}
// NewMDARequestSingleAllOfAttributesWithDefaults instantiates a new MDARequestSingleAllOfAttributes 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 NewMDARequestSingleAllOfAttributesWithDefaults() *MDARequestSingleAllOfAttributes {
this := MDARequestSingleAllOfAttributes{}
return &this
}
// GetRequestedMDAOutputs returns the RequestedMDAOutputs field value if set, zero value otherwise.
func (o *MDARequestSingleAllOfAttributes) GetRequestedMDAOutputs() []MDAOutputPerMDAType {
if o == nil || IsNil(o.RequestedMDAOutputs) {
var ret []MDAOutputPerMDAType
return ret
}
return o.RequestedMDAOutputs
}
// GetRequestedMDAOutputsOk returns a tuple with the RequestedMDAOutputs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MDARequestSingleAllOfAttributes) GetRequestedMDAOutputsOk() ([]MDAOutputPerMDAType, bool) {
if o == nil || IsNil(o.RequestedMDAOutputs) {
return nil, false
}
return o.RequestedMDAOutputs, true
}
// HasRequestedMDAOutputs returns a boolean if a field has been set.
func (o *MDARequestSingleAllOfAttributes) HasRequestedMDAOutputs() bool {
if o != nil && !IsNil(o.RequestedMDAOutputs) {
return true
}
return false
}
// SetRequestedMDAOutputs gets a reference to the given []MDAOutputPerMDAType and assigns it to the RequestedMDAOutputs field.
func (o *MDARequestSingleAllOfAttributes) SetRequestedMDAOutputs(v []MDAOutputPerMDAType) {
o.RequestedMDAOutputs = v
}
// GetReportingMethod returns the ReportingMethod field value if set, zero value otherwise.
func (o *MDARequestSingleAllOfAttributes) GetReportingMethod() ReportingMethod {
if o == nil || IsNil(o.ReportingMethod) {
var ret ReportingMethod
return ret
}
return *o.ReportingMethod
}
// GetReportingMethodOk returns a tuple with the ReportingMethod field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MDARequestSingleAllOfAttributes) GetReportingMethodOk() (*ReportingMethod, bool) {
if o == nil || IsNil(o.ReportingMethod) {
return nil, false
}
return o.ReportingMethod, true
}
// HasReportingMethod returns a boolean if a field has been set.
func (o *MDARequestSingleAllOfAttributes) HasReportingMethod() bool {
if o != nil && !IsNil(o.ReportingMethod) {
return true
}
return false
}
// SetReportingMethod gets a reference to the given ReportingMethod and assigns it to the ReportingMethod field.
func (o *MDARequestSingleAllOfAttributes) SetReportingMethod(v ReportingMethod) {
o.ReportingMethod = &v
}
// GetReportingTarget returns the ReportingTarget field value if set, zero value otherwise.
func (o *MDARequestSingleAllOfAttributes) GetReportingTarget() string {
if o == nil || IsNil(o.ReportingTarget) {
var ret string
return ret
}
return *o.ReportingTarget
}
// GetReportingTargetOk returns a tuple with the ReportingTarget field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MDARequestSingleAllOfAttributes) GetReportingTargetOk() (*string, bool) {
if o == nil || IsNil(o.ReportingTarget) {
return nil, false
}
return o.ReportingTarget, true
}
// HasReportingTarget returns a boolean if a field has been set.
func (o *MDARequestSingleAllOfAttributes) HasReportingTarget() bool {
if o != nil && !IsNil(o.ReportingTarget) {
return true
}
return false
}
// SetReportingTarget gets a reference to the given string and assigns it to the ReportingTarget field.
func (o *MDARequestSingleAllOfAttributes) SetReportingTarget(v string) {
o.ReportingTarget = &v
}
// GetAnalyticsScope returns the AnalyticsScope field value if set, zero value otherwise.
func (o *MDARequestSingleAllOfAttributes) GetAnalyticsScope() AnalyticsScopeType {
if o == nil || IsNil(o.AnalyticsScope) {
var ret AnalyticsScopeType
return ret
}
return *o.AnalyticsScope
}
// GetAnalyticsScopeOk returns a tuple with the AnalyticsScope field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MDARequestSingleAllOfAttributes) GetAnalyticsScopeOk() (*AnalyticsScopeType, bool) {
if o == nil || IsNil(o.AnalyticsScope) {
return nil, false
}
return o.AnalyticsScope, true
}
// HasAnalyticsScope returns a boolean if a field has been set.
func (o *MDARequestSingleAllOfAttributes) HasAnalyticsScope() bool {
if o != nil && !IsNil(o.AnalyticsScope) {
return true
}
return false
}
// SetAnalyticsScope gets a reference to the given AnalyticsScopeType and assigns it to the AnalyticsScope field.
func (o *MDARequestSingleAllOfAttributes) SetAnalyticsScope(v AnalyticsScopeType) {
o.AnalyticsScope = &v
}
// GetStartTime returns the StartTime field value if set, zero value otherwise.
func (o *MDARequestSingleAllOfAttributes) GetStartTime() time.Time {
if o == nil || IsNil(o.StartTime) {
var ret time.Time
return ret
}
return *o.StartTime
}
// GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MDARequestSingleAllOfAttributes) GetStartTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.StartTime) {
return nil, false
}
return o.StartTime, true
}
// HasStartTime returns a boolean if a field has been set.
func (o *MDARequestSingleAllOfAttributes) HasStartTime() bool {
if o != nil && !IsNil(o.StartTime) {
return true
}
return false
}
// SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field.
func (o *MDARequestSingleAllOfAttributes) SetStartTime(v time.Time) {
o.StartTime = &v
}
// GetStopTime returns the StopTime field value if set, zero value otherwise.
func (o *MDARequestSingleAllOfAttributes) GetStopTime() time.Time {
if o == nil || IsNil(o.StopTime) {
var ret time.Time
return ret
}
return *o.StopTime
}
// GetStopTimeOk returns a tuple with the StopTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MDARequestSingleAllOfAttributes) GetStopTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.StopTime) {
return nil, false
}
return o.StopTime, true
}
// HasStopTime returns a boolean if a field has been set.
func (o *MDARequestSingleAllOfAttributes) HasStopTime() bool {
if o != nil && !IsNil(o.StopTime) {
return true
}
return false
}
// SetStopTime gets a reference to the given time.Time and assigns it to the StopTime field.
func (o *MDARequestSingleAllOfAttributes) SetStopTime(v time.Time) {
o.StopTime = &v
}
func (o MDARequestSingleAllOfAttributes) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o MDARequestSingleAllOfAttributes) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.RequestedMDAOutputs) {
toSerialize["requestedMDAOutputs"] = o.RequestedMDAOutputs
}
if !IsNil(o.ReportingMethod) {
toSerialize["reportingMethod"] = o.ReportingMethod
}
if !IsNil(o.ReportingTarget) {
toSerialize["reportingTarget"] = o.ReportingTarget
}
if !IsNil(o.AnalyticsScope) {
toSerialize["analyticsScope"] = o.AnalyticsScope
}
if !IsNil(o.StartTime) {
toSerialize["startTime"] = o.StartTime
}
if !IsNil(o.StopTime) {
toSerialize["stopTime"] = o.StopTime
}
return toSerialize, nil
}
type NullableMDARequestSingleAllOfAttributes struct {
value *MDARequestSingleAllOfAttributes
isSet bool
}
func (v NullableMDARequestSingleAllOfAttributes) Get() *MDARequestSingleAllOfAttributes {
return v.value
}
func (v *NullableMDARequestSingleAllOfAttributes) Set(val *MDARequestSingleAllOfAttributes) {
v.value = val
v.isSet = true
}
func (v NullableMDARequestSingleAllOfAttributes) IsSet() bool {
return v.isSet
}
func (v *NullableMDARequestSingleAllOfAttributes) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMDARequestSingleAllOfAttributes(val *MDARequestSingleAllOfAttributes) *NullableMDARequestSingleAllOfAttributes {
return &NullableMDARequestSingleAllOfAttributes{value: val, isSet: true}
}
func (v NullableMDARequestSingleAllOfAttributes) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMDARequestSingleAllOfAttributes) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/konglinglong/openapi.git
git@gitee.com:konglinglong/openapi.git
konglinglong
openapi
openapi
e403a3c726a4

搜索帮助