1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_end_point.go 5.75 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
EES ACR Management Event_API
API for EES ACR Management Event. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.4
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Eees_ACRManagementEvent
import (
"encoding/json"
)
// checks if the EndPoint type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &EndPoint{}
// EndPoint The end point information to reach EAS.
type EndPoint struct {
// Fully Qualified Domain Name
Fqdn *string `json:"fqdn,omitempty"`
// IPv4 addresses of the edge server.
Ipv4Addrs []string `json:"ipv4Addrs,omitempty"`
// IPv6 addresses of the edge server.
Ipv6Addrs []string `json:"ipv6Addrs,omitempty"`
// string providing an URI formatted according to IETF RFC 3986.
Uri *string `json:"uri,omitempty"`
}
// NewEndPoint instantiates a new EndPoint 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 NewEndPoint() *EndPoint {
this := EndPoint{}
return &this
}
// NewEndPointWithDefaults instantiates a new EndPoint 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 NewEndPointWithDefaults() *EndPoint {
this := EndPoint{}
return &this
}
// GetFqdn returns the Fqdn field value if set, zero value otherwise.
func (o *EndPoint) GetFqdn() string {
if o == nil || IsNil(o.Fqdn) {
var ret string
return ret
}
return *o.Fqdn
}
// GetFqdnOk returns a tuple with the Fqdn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EndPoint) GetFqdnOk() (*string, bool) {
if o == nil || IsNil(o.Fqdn) {
return nil, false
}
return o.Fqdn, true
}
// HasFqdn returns a boolean if a field has been set.
func (o *EndPoint) HasFqdn() bool {
if o != nil && !IsNil(o.Fqdn) {
return true
}
return false
}
// SetFqdn gets a reference to the given string and assigns it to the Fqdn field.
func (o *EndPoint) SetFqdn(v string) {
o.Fqdn = &v
}
// GetIpv4Addrs returns the Ipv4Addrs field value if set, zero value otherwise.
func (o *EndPoint) GetIpv4Addrs() []string {
if o == nil || IsNil(o.Ipv4Addrs) {
var ret []string
return ret
}
return o.Ipv4Addrs
}
// GetIpv4AddrsOk returns a tuple with the Ipv4Addrs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EndPoint) GetIpv4AddrsOk() ([]string, bool) {
if o == nil || IsNil(o.Ipv4Addrs) {
return nil, false
}
return o.Ipv4Addrs, true
}
// HasIpv4Addrs returns a boolean if a field has been set.
func (o *EndPoint) HasIpv4Addrs() bool {
if o != nil && !IsNil(o.Ipv4Addrs) {
return true
}
return false
}
// SetIpv4Addrs gets a reference to the given []string and assigns it to the Ipv4Addrs field.
func (o *EndPoint) SetIpv4Addrs(v []string) {
o.Ipv4Addrs = v
}
// GetIpv6Addrs returns the Ipv6Addrs field value if set, zero value otherwise.
func (o *EndPoint) GetIpv6Addrs() []string {
if o == nil || IsNil(o.Ipv6Addrs) {
var ret []string
return ret
}
return o.Ipv6Addrs
}
// GetIpv6AddrsOk returns a tuple with the Ipv6Addrs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EndPoint) GetIpv6AddrsOk() ([]string, bool) {
if o == nil || IsNil(o.Ipv6Addrs) {
return nil, false
}
return o.Ipv6Addrs, true
}
// HasIpv6Addrs returns a boolean if a field has been set.
func (o *EndPoint) HasIpv6Addrs() bool {
if o != nil && !IsNil(o.Ipv6Addrs) {
return true
}
return false
}
// SetIpv6Addrs gets a reference to the given []string and assigns it to the Ipv6Addrs field.
func (o *EndPoint) SetIpv6Addrs(v []string) {
o.Ipv6Addrs = v
}
// GetUri returns the Uri field value if set, zero value otherwise.
func (o *EndPoint) GetUri() string {
if o == nil || IsNil(o.Uri) {
var ret string
return ret
}
return *o.Uri
}
// GetUriOk returns a tuple with the Uri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EndPoint) GetUriOk() (*string, bool) {
if o == nil || IsNil(o.Uri) {
return nil, false
}
return o.Uri, true
}
// HasUri returns a boolean if a field has been set.
func (o *EndPoint) HasUri() bool {
if o != nil && !IsNil(o.Uri) {
return true
}
return false
}
// SetUri gets a reference to the given string and assigns it to the Uri field.
func (o *EndPoint) SetUri(v string) {
o.Uri = &v
}
func (o EndPoint) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o EndPoint) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Fqdn) {
toSerialize["fqdn"] = o.Fqdn
}
if !IsNil(o.Ipv4Addrs) {
toSerialize["ipv4Addrs"] = o.Ipv4Addrs
}
if !IsNil(o.Ipv6Addrs) {
toSerialize["ipv6Addrs"] = o.Ipv6Addrs
}
if !IsNil(o.Uri) {
toSerialize["uri"] = o.Uri
}
return toSerialize, nil
}
type NullableEndPoint struct {
value *EndPoint
isSet bool
}
func (v NullableEndPoint) Get() *EndPoint {
return v.value
}
func (v *NullableEndPoint) Set(val *EndPoint) {
v.value = val
v.isSet = true
}
func (v NullableEndPoint) IsSet() bool {
return v.isSet
}
func (v *NullableEndPoint) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableEndPoint(val *EndPoint) *NullableEndPoint {
return &NullableEndPoint{value: val, isSet: true}
}
func (v NullableEndPoint) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableEndPoint) 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

搜索帮助