1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_eas_function_single_all_of_attributes.go 7.62 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . 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"
)
// checks if the EASFunctionSingleAllOfAttributes type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &EASFunctionSingleAllOfAttributes{}
// EASFunctionSingleAllOfAttributes struct for EASFunctionSingleAllOfAttributes
type EASFunctionSingleAllOfAttributes struct {
ManagedFunctionAttr
EASIdentifier *string `json:"eASIdentifier,omitempty"`
EESAddress []string `json:"eESAddress,omitempty"`
EASRequirementsRef *string `json:"eASRequirementsRef,omitempty"`
EASAddress []string `json:"eASAddress,omitempty"`
}
// NewEASFunctionSingleAllOfAttributes instantiates a new EASFunctionSingleAllOfAttributes 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 NewEASFunctionSingleAllOfAttributes() *EASFunctionSingleAllOfAttributes {
this := EASFunctionSingleAllOfAttributes{}
return &this
}
// NewEASFunctionSingleAllOfAttributesWithDefaults instantiates a new EASFunctionSingleAllOfAttributes 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 NewEASFunctionSingleAllOfAttributesWithDefaults() *EASFunctionSingleAllOfAttributes {
this := EASFunctionSingleAllOfAttributes{}
return &this
}
// GetEASIdentifier returns the EASIdentifier field value if set, zero value otherwise.
func (o *EASFunctionSingleAllOfAttributes) GetEASIdentifier() string {
if o == nil || IsNil(o.EASIdentifier) {
var ret string
return ret
}
return *o.EASIdentifier
}
// GetEASIdentifierOk returns a tuple with the EASIdentifier field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EASFunctionSingleAllOfAttributes) GetEASIdentifierOk() (*string, bool) {
if o == nil || IsNil(o.EASIdentifier) {
return nil, false
}
return o.EASIdentifier, true
}
// HasEASIdentifier returns a boolean if a field has been set.
func (o *EASFunctionSingleAllOfAttributes) HasEASIdentifier() bool {
if o != nil && !IsNil(o.EASIdentifier) {
return true
}
return false
}
// SetEASIdentifier gets a reference to the given string and assigns it to the EASIdentifier field.
func (o *EASFunctionSingleAllOfAttributes) SetEASIdentifier(v string) {
o.EASIdentifier = &v
}
// GetEESAddress returns the EESAddress field value if set, zero value otherwise.
func (o *EASFunctionSingleAllOfAttributes) GetEESAddress() []string {
if o == nil || IsNil(o.EESAddress) {
var ret []string
return ret
}
return o.EESAddress
}
// GetEESAddressOk returns a tuple with the EESAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EASFunctionSingleAllOfAttributes) GetEESAddressOk() ([]string, bool) {
if o == nil || IsNil(o.EESAddress) {
return nil, false
}
return o.EESAddress, true
}
// HasEESAddress returns a boolean if a field has been set.
func (o *EASFunctionSingleAllOfAttributes) HasEESAddress() bool {
if o != nil && !IsNil(o.EESAddress) {
return true
}
return false
}
// SetEESAddress gets a reference to the given []string and assigns it to the EESAddress field.
func (o *EASFunctionSingleAllOfAttributes) SetEESAddress(v []string) {
o.EESAddress = v
}
// GetEASRequirementsRef returns the EASRequirementsRef field value if set, zero value otherwise.
func (o *EASFunctionSingleAllOfAttributes) GetEASRequirementsRef() string {
if o == nil || IsNil(o.EASRequirementsRef) {
var ret string
return ret
}
return *o.EASRequirementsRef
}
// GetEASRequirementsRefOk returns a tuple with the EASRequirementsRef field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EASFunctionSingleAllOfAttributes) GetEASRequirementsRefOk() (*string, bool) {
if o == nil || IsNil(o.EASRequirementsRef) {
return nil, false
}
return o.EASRequirementsRef, true
}
// HasEASRequirementsRef returns a boolean if a field has been set.
func (o *EASFunctionSingleAllOfAttributes) HasEASRequirementsRef() bool {
if o != nil && !IsNil(o.EASRequirementsRef) {
return true
}
return false
}
// SetEASRequirementsRef gets a reference to the given string and assigns it to the EASRequirementsRef field.
func (o *EASFunctionSingleAllOfAttributes) SetEASRequirementsRef(v string) {
o.EASRequirementsRef = &v
}
// GetEASAddress returns the EASAddress field value if set, zero value otherwise.
func (o *EASFunctionSingleAllOfAttributes) GetEASAddress() []string {
if o == nil || IsNil(o.EASAddress) {
var ret []string
return ret
}
return o.EASAddress
}
// GetEASAddressOk returns a tuple with the EASAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EASFunctionSingleAllOfAttributes) GetEASAddressOk() ([]string, bool) {
if o == nil || IsNil(o.EASAddress) {
return nil, false
}
return o.EASAddress, true
}
// HasEASAddress returns a boolean if a field has been set.
func (o *EASFunctionSingleAllOfAttributes) HasEASAddress() bool {
if o != nil && !IsNil(o.EASAddress) {
return true
}
return false
}
// SetEASAddress gets a reference to the given []string and assigns it to the EASAddress field.
func (o *EASFunctionSingleAllOfAttributes) SetEASAddress(v []string) {
o.EASAddress = v
}
func (o EASFunctionSingleAllOfAttributes) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o EASFunctionSingleAllOfAttributes) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
serializedManagedFunctionAttr, errManagedFunctionAttr := json.Marshal(o.ManagedFunctionAttr)
if errManagedFunctionAttr != nil {
return map[string]interface{}{}, errManagedFunctionAttr
}
errManagedFunctionAttr = json.Unmarshal([]byte(serializedManagedFunctionAttr), &toSerialize)
if errManagedFunctionAttr != nil {
return map[string]interface{}{}, errManagedFunctionAttr
}
if !IsNil(o.EASIdentifier) {
toSerialize["eASIdentifier"] = o.EASIdentifier
}
if !IsNil(o.EESAddress) {
toSerialize["eESAddress"] = o.EESAddress
}
if !IsNil(o.EASRequirementsRef) {
toSerialize["eASRequirementsRef"] = o.EASRequirementsRef
}
if !IsNil(o.EASAddress) {
toSerialize["eASAddress"] = o.EASAddress
}
return toSerialize, nil
}
type NullableEASFunctionSingleAllOfAttributes struct {
value *EASFunctionSingleAllOfAttributes
isSet bool
}
func (v NullableEASFunctionSingleAllOfAttributes) Get() *EASFunctionSingleAllOfAttributes {
return v.value
}
func (v *NullableEASFunctionSingleAllOfAttributes) Set(val *EASFunctionSingleAllOfAttributes) {
v.value = val
v.isSet = true
}
func (v NullableEASFunctionSingleAllOfAttributes) IsSet() bool {
return v.isSet
}
func (v *NullableEASFunctionSingleAllOfAttributes) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableEASFunctionSingleAllOfAttributes(val *EASFunctionSingleAllOfAttributes) *NullableEASFunctionSingleAllOfAttributes {
return &NullableEASFunctionSingleAllOfAttributes{value: val, isSet: true}
}
func (v NullableEASFunctionSingleAllOfAttributes) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableEASFunctionSingleAllOfAttributes) 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

搜索帮助