代码拉取完成,页面将自动刷新
/*
CAPIF_API_Invoker_Management_API
API for API invoker management. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_CAPIF_API_Invoker_Management_API
import (
"encoding/json"
)
// checks if the InterfaceDescription type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &InterfaceDescription{}
// InterfaceDescription Represents the description of an API's interface.
type InterfaceDescription struct {
// string identifying a Ipv4 address formatted in the \"dotted decimal\" notation as defined in IETF RFC 1166.
Ipv4Addr *string `json:"ipv4Addr,omitempty"`
// string identifying a Ipv6 address formatted according to clause 4 in IETF RFC 5952. The mixed Ipv4 Ipv6 notation according to clause 5 of IETF RFC 5952 shall not be used.
Ipv6Addr *string `json:"ipv6Addr,omitempty"`
// Unsigned integer with valid values between 0 and 65535.
Port *int32 `json:"port,omitempty"`
// Security methods supported by the interface, it take precedence over the security methods provided in AefProfile, for this specific interface.
SecurityMethods []SecurityMethod `json:"securityMethods,omitempty"`
}
// NewInterfaceDescription instantiates a new InterfaceDescription 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 NewInterfaceDescription() *InterfaceDescription {
this := InterfaceDescription{}
return &this
}
// NewInterfaceDescriptionWithDefaults instantiates a new InterfaceDescription 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 NewInterfaceDescriptionWithDefaults() *InterfaceDescription {
this := InterfaceDescription{}
return &this
}
// GetIpv4Addr returns the Ipv4Addr field value if set, zero value otherwise.
func (o *InterfaceDescription) GetIpv4Addr() string {
if o == nil || IsNil(o.Ipv4Addr) {
var ret string
return ret
}
return *o.Ipv4Addr
}
// GetIpv4AddrOk returns a tuple with the Ipv4Addr field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InterfaceDescription) GetIpv4AddrOk() (*string, bool) {
if o == nil || IsNil(o.Ipv4Addr) {
return nil, false
}
return o.Ipv4Addr, true
}
// HasIpv4Addr returns a boolean if a field has been set.
func (o *InterfaceDescription) HasIpv4Addr() bool {
if o != nil && !IsNil(o.Ipv4Addr) {
return true
}
return false
}
// SetIpv4Addr gets a reference to the given string and assigns it to the Ipv4Addr field.
func (o *InterfaceDescription) SetIpv4Addr(v string) {
o.Ipv4Addr = &v
}
// GetIpv6Addr returns the Ipv6Addr field value if set, zero value otherwise.
func (o *InterfaceDescription) GetIpv6Addr() string {
if o == nil || IsNil(o.Ipv6Addr) {
var ret string
return ret
}
return *o.Ipv6Addr
}
// GetIpv6AddrOk returns a tuple with the Ipv6Addr field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InterfaceDescription) GetIpv6AddrOk() (*string, bool) {
if o == nil || IsNil(o.Ipv6Addr) {
return nil, false
}
return o.Ipv6Addr, true
}
// HasIpv6Addr returns a boolean if a field has been set.
func (o *InterfaceDescription) HasIpv6Addr() bool {
if o != nil && !IsNil(o.Ipv6Addr) {
return true
}
return false
}
// SetIpv6Addr gets a reference to the given string and assigns it to the Ipv6Addr field.
func (o *InterfaceDescription) SetIpv6Addr(v string) {
o.Ipv6Addr = &v
}
// GetPort returns the Port field value if set, zero value otherwise.
func (o *InterfaceDescription) GetPort() int32 {
if o == nil || IsNil(o.Port) {
var ret int32
return ret
}
return *o.Port
}
// GetPortOk returns a tuple with the Port field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InterfaceDescription) GetPortOk() (*int32, bool) {
if o == nil || IsNil(o.Port) {
return nil, false
}
return o.Port, true
}
// HasPort returns a boolean if a field has been set.
func (o *InterfaceDescription) HasPort() bool {
if o != nil && !IsNil(o.Port) {
return true
}
return false
}
// SetPort gets a reference to the given int32 and assigns it to the Port field.
func (o *InterfaceDescription) SetPort(v int32) {
o.Port = &v
}
// GetSecurityMethods returns the SecurityMethods field value if set, zero value otherwise.
func (o *InterfaceDescription) GetSecurityMethods() []SecurityMethod {
if o == nil || IsNil(o.SecurityMethods) {
var ret []SecurityMethod
return ret
}
return o.SecurityMethods
}
// GetSecurityMethodsOk returns a tuple with the SecurityMethods field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InterfaceDescription) GetSecurityMethodsOk() ([]SecurityMethod, bool) {
if o == nil || IsNil(o.SecurityMethods) {
return nil, false
}
return o.SecurityMethods, true
}
// HasSecurityMethods returns a boolean if a field has been set.
func (o *InterfaceDescription) HasSecurityMethods() bool {
if o != nil && !IsNil(o.SecurityMethods) {
return true
}
return false
}
// SetSecurityMethods gets a reference to the given []SecurityMethod and assigns it to the SecurityMethods field.
func (o *InterfaceDescription) SetSecurityMethods(v []SecurityMethod) {
o.SecurityMethods = v
}
func (o InterfaceDescription) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o InterfaceDescription) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Ipv4Addr) {
toSerialize["ipv4Addr"] = o.Ipv4Addr
}
if !IsNil(o.Ipv6Addr) {
toSerialize["ipv6Addr"] = o.Ipv6Addr
}
if !IsNil(o.Port) {
toSerialize["port"] = o.Port
}
if !IsNil(o.SecurityMethods) {
toSerialize["securityMethods"] = o.SecurityMethods
}
return toSerialize, nil
}
type NullableInterfaceDescription struct {
value *InterfaceDescription
isSet bool
}
func (v NullableInterfaceDescription) Get() *InterfaceDescription {
return v.value
}
func (v *NullableInterfaceDescription) Set(val *InterfaceDescription) {
v.value = val
v.isSet = true
}
func (v NullableInterfaceDescription) IsSet() bool {
return v.isSet
}
func (v *NullableInterfaceDescription) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInterfaceDescription(val *InterfaceDescription) *NullableInterfaceDescription {
return &NullableInterfaceDescription{value: val, isSet: true}
}
func (v NullableInterfaceDescription) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableInterfaceDescription) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。