1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_service_data_flow_description.go 4.85 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
M1_EdgeResourcesProvisioning
5GMS AF M1 Edge Resources Provisioning API © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 2.1.2
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_M1_EdgeResourcesProvisioning
import (
"encoding/json"
)
// checks if the ServiceDataFlowDescription type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ServiceDataFlowDescription{}
// ServiceDataFlowDescription struct for ServiceDataFlowDescription
type ServiceDataFlowDescription struct {
FlowDescription *IpPacketFilterSet `json:"flowDescription,omitempty"`
DomainName *string `json:"domainName,omitempty"`
}
// NewServiceDataFlowDescription instantiates a new ServiceDataFlowDescription 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 NewServiceDataFlowDescription() *ServiceDataFlowDescription {
this := ServiceDataFlowDescription{}
return &this
}
// NewServiceDataFlowDescriptionWithDefaults instantiates a new ServiceDataFlowDescription 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 NewServiceDataFlowDescriptionWithDefaults() *ServiceDataFlowDescription {
this := ServiceDataFlowDescription{}
return &this
}
// GetFlowDescription returns the FlowDescription field value if set, zero value otherwise.
func (o *ServiceDataFlowDescription) GetFlowDescription() IpPacketFilterSet {
if o == nil || IsNil(o.FlowDescription) {
var ret IpPacketFilterSet
return ret
}
return *o.FlowDescription
}
// GetFlowDescriptionOk returns a tuple with the FlowDescription field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceDataFlowDescription) GetFlowDescriptionOk() (*IpPacketFilterSet, bool) {
if o == nil || IsNil(o.FlowDescription) {
return nil, false
}
return o.FlowDescription, true
}
// HasFlowDescription returns a boolean if a field has been set.
func (o *ServiceDataFlowDescription) HasFlowDescription() bool {
if o != nil && !IsNil(o.FlowDescription) {
return true
}
return false
}
// SetFlowDescription gets a reference to the given IpPacketFilterSet and assigns it to the FlowDescription field.
func (o *ServiceDataFlowDescription) SetFlowDescription(v IpPacketFilterSet) {
o.FlowDescription = &v
}
// GetDomainName returns the DomainName field value if set, zero value otherwise.
func (o *ServiceDataFlowDescription) GetDomainName() string {
if o == nil || IsNil(o.DomainName) {
var ret string
return ret
}
return *o.DomainName
}
// GetDomainNameOk returns a tuple with the DomainName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceDataFlowDescription) GetDomainNameOk() (*string, bool) {
if o == nil || IsNil(o.DomainName) {
return nil, false
}
return o.DomainName, true
}
// HasDomainName returns a boolean if a field has been set.
func (o *ServiceDataFlowDescription) HasDomainName() bool {
if o != nil && !IsNil(o.DomainName) {
return true
}
return false
}
// SetDomainName gets a reference to the given string and assigns it to the DomainName field.
func (o *ServiceDataFlowDescription) SetDomainName(v string) {
o.DomainName = &v
}
func (o ServiceDataFlowDescription) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ServiceDataFlowDescription) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.FlowDescription) {
toSerialize["flowDescription"] = o.FlowDescription
}
if !IsNil(o.DomainName) {
toSerialize["domainName"] = o.DomainName
}
return toSerialize, nil
}
type NullableServiceDataFlowDescription struct {
value *ServiceDataFlowDescription
isSet bool
}
func (v NullableServiceDataFlowDescription) Get() *ServiceDataFlowDescription {
return v.value
}
func (v *NullableServiceDataFlowDescription) Set(val *ServiceDataFlowDescription) {
v.value = val
v.isSet = true
}
func (v NullableServiceDataFlowDescription) IsSet() bool {
return v.isSet
}
func (v *NullableServiceDataFlowDescription) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableServiceDataFlowDescription(val *ServiceDataFlowDescription) *NullableServiceDataFlowDescription {
return &NullableServiceDataFlowDescription{value: val, isSet: true}
}
func (v NullableServiceDataFlowDescription) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableServiceDataFlowDescription) 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

搜索帮助