代码拉取完成,页面将自动刷新
/*
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)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。