代码拉取完成,页面将自动刷新
/*
N32 Handshake API
N32-c Handshake Service. © 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_N32_Handshake
import (
"encoding/json"
"fmt"
)
// checks if the SecNegotiateRspData type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SecNegotiateRspData{}
// SecNegotiateRspData Defines the selected security capabilities by a SEPP
type SecNegotiateRspData struct {
// Fully Qualified Domain Name
Sender string `json:"sender"`
SelectedSecCapability SecurityCapability `json:"selectedSecCapability"`
Var3GppSbiTargetApiRootSupported *bool `json:"3GppSbiTargetApiRootSupported,omitempty"`
PlmnIdList []PlmnId `json:"plmnIdList,omitempty"`
SnpnIdList []PlmnIdNid `json:"snpnIdList,omitempty"`
AllowedUsagePurpose []IntendedN32Purpose `json:"allowedUsagePurpose,omitempty"`
RejectedUsagePurpose []IntendedN32Purpose `json:"rejectedUsagePurpose,omitempty"`
// A string used to indicate the features supported by an API that is used as defined in clause 6.6 in 3GPP TS 29.500. The string shall contain a bitmask indicating supported features in hexadecimal representation Each character in the string shall take a value of \"0\" to \"9\", \"a\" to \"f\" or \"A\" to \"F\" and shall represent the support of 4 features as described in table 5.2.2-3. The most significant character representing the highest-numbered features shall appear first in the string, and the character representing features 1 to 4 shall appear last in the string. The list of features and their numbering (starting with 1) are defined separately for each API. If the string contains a lower number of characters than there are defined features for an API, all features that would be represented by characters that are not present in the string are not supported.
SupportedFeatures *string `json:"supportedFeatures,omitempty"`
}
type _SecNegotiateRspData SecNegotiateRspData
// NewSecNegotiateRspData instantiates a new SecNegotiateRspData 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 NewSecNegotiateRspData(sender string, selectedSecCapability SecurityCapability) *SecNegotiateRspData {
this := SecNegotiateRspData{}
this.Sender = sender
this.SelectedSecCapability = selectedSecCapability
var var3GppSbiTargetApiRootSupported bool = false
this.Var3GppSbiTargetApiRootSupported = &var3GppSbiTargetApiRootSupported
return &this
}
// NewSecNegotiateRspDataWithDefaults instantiates a new SecNegotiateRspData 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 NewSecNegotiateRspDataWithDefaults() *SecNegotiateRspData {
this := SecNegotiateRspData{}
var var3GppSbiTargetApiRootSupported bool = false
this.Var3GppSbiTargetApiRootSupported = &var3GppSbiTargetApiRootSupported
return &this
}
// GetSender returns the Sender field value
func (o *SecNegotiateRspData) GetSender() string {
if o == nil {
var ret string
return ret
}
return o.Sender
}
// GetSenderOk returns a tuple with the Sender field value
// and a boolean to check if the value has been set.
func (o *SecNegotiateRspData) GetSenderOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Sender, true
}
// SetSender sets field value
func (o *SecNegotiateRspData) SetSender(v string) {
o.Sender = v
}
// GetSelectedSecCapability returns the SelectedSecCapability field value
func (o *SecNegotiateRspData) GetSelectedSecCapability() SecurityCapability {
if o == nil {
var ret SecurityCapability
return ret
}
return o.SelectedSecCapability
}
// GetSelectedSecCapabilityOk returns a tuple with the SelectedSecCapability field value
// and a boolean to check if the value has been set.
func (o *SecNegotiateRspData) GetSelectedSecCapabilityOk() (*SecurityCapability, bool) {
if o == nil {
return nil, false
}
return &o.SelectedSecCapability, true
}
// SetSelectedSecCapability sets field value
func (o *SecNegotiateRspData) SetSelectedSecCapability(v SecurityCapability) {
o.SelectedSecCapability = v
}
// GetVar3GppSbiTargetApiRootSupported returns the Var3GppSbiTargetApiRootSupported field value if set, zero value otherwise.
func (o *SecNegotiateRspData) GetVar3GppSbiTargetApiRootSupported() bool {
if o == nil || IsNil(o.Var3GppSbiTargetApiRootSupported) {
var ret bool
return ret
}
return *o.Var3GppSbiTargetApiRootSupported
}
// GetVar3GppSbiTargetApiRootSupportedOk returns a tuple with the Var3GppSbiTargetApiRootSupported field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SecNegotiateRspData) GetVar3GppSbiTargetApiRootSupportedOk() (*bool, bool) {
if o == nil || IsNil(o.Var3GppSbiTargetApiRootSupported) {
return nil, false
}
return o.Var3GppSbiTargetApiRootSupported, true
}
// HasVar3GppSbiTargetApiRootSupported returns a boolean if a field has been set.
func (o *SecNegotiateRspData) HasVar3GppSbiTargetApiRootSupported() bool {
if o != nil && !IsNil(o.Var3GppSbiTargetApiRootSupported) {
return true
}
return false
}
// SetVar3GppSbiTargetApiRootSupported gets a reference to the given bool and assigns it to the Var3GppSbiTargetApiRootSupported field.
func (o *SecNegotiateRspData) SetVar3GppSbiTargetApiRootSupported(v bool) {
o.Var3GppSbiTargetApiRootSupported = &v
}
// GetPlmnIdList returns the PlmnIdList field value if set, zero value otherwise.
func (o *SecNegotiateRspData) GetPlmnIdList() []PlmnId {
if o == nil || IsNil(o.PlmnIdList) {
var ret []PlmnId
return ret
}
return o.PlmnIdList
}
// GetPlmnIdListOk returns a tuple with the PlmnIdList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SecNegotiateRspData) GetPlmnIdListOk() ([]PlmnId, bool) {
if o == nil || IsNil(o.PlmnIdList) {
return nil, false
}
return o.PlmnIdList, true
}
// HasPlmnIdList returns a boolean if a field has been set.
func (o *SecNegotiateRspData) HasPlmnIdList() bool {
if o != nil && !IsNil(o.PlmnIdList) {
return true
}
return false
}
// SetPlmnIdList gets a reference to the given []PlmnId and assigns it to the PlmnIdList field.
func (o *SecNegotiateRspData) SetPlmnIdList(v []PlmnId) {
o.PlmnIdList = v
}
// GetSnpnIdList returns the SnpnIdList field value if set, zero value otherwise.
func (o *SecNegotiateRspData) GetSnpnIdList() []PlmnIdNid {
if o == nil || IsNil(o.SnpnIdList) {
var ret []PlmnIdNid
return ret
}
return o.SnpnIdList
}
// GetSnpnIdListOk returns a tuple with the SnpnIdList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SecNegotiateRspData) GetSnpnIdListOk() ([]PlmnIdNid, bool) {
if o == nil || IsNil(o.SnpnIdList) {
return nil, false
}
return o.SnpnIdList, true
}
// HasSnpnIdList returns a boolean if a field has been set.
func (o *SecNegotiateRspData) HasSnpnIdList() bool {
if o != nil && !IsNil(o.SnpnIdList) {
return true
}
return false
}
// SetSnpnIdList gets a reference to the given []PlmnIdNid and assigns it to the SnpnIdList field.
func (o *SecNegotiateRspData) SetSnpnIdList(v []PlmnIdNid) {
o.SnpnIdList = v
}
// GetAllowedUsagePurpose returns the AllowedUsagePurpose field value if set, zero value otherwise.
func (o *SecNegotiateRspData) GetAllowedUsagePurpose() []IntendedN32Purpose {
if o == nil || IsNil(o.AllowedUsagePurpose) {
var ret []IntendedN32Purpose
return ret
}
return o.AllowedUsagePurpose
}
// GetAllowedUsagePurposeOk returns a tuple with the AllowedUsagePurpose field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SecNegotiateRspData) GetAllowedUsagePurposeOk() ([]IntendedN32Purpose, bool) {
if o == nil || IsNil(o.AllowedUsagePurpose) {
return nil, false
}
return o.AllowedUsagePurpose, true
}
// HasAllowedUsagePurpose returns a boolean if a field has been set.
func (o *SecNegotiateRspData) HasAllowedUsagePurpose() bool {
if o != nil && !IsNil(o.AllowedUsagePurpose) {
return true
}
return false
}
// SetAllowedUsagePurpose gets a reference to the given []IntendedN32Purpose and assigns it to the AllowedUsagePurpose field.
func (o *SecNegotiateRspData) SetAllowedUsagePurpose(v []IntendedN32Purpose) {
o.AllowedUsagePurpose = v
}
// GetRejectedUsagePurpose returns the RejectedUsagePurpose field value if set, zero value otherwise.
func (o *SecNegotiateRspData) GetRejectedUsagePurpose() []IntendedN32Purpose {
if o == nil || IsNil(o.RejectedUsagePurpose) {
var ret []IntendedN32Purpose
return ret
}
return o.RejectedUsagePurpose
}
// GetRejectedUsagePurposeOk returns a tuple with the RejectedUsagePurpose field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SecNegotiateRspData) GetRejectedUsagePurposeOk() ([]IntendedN32Purpose, bool) {
if o == nil || IsNil(o.RejectedUsagePurpose) {
return nil, false
}
return o.RejectedUsagePurpose, true
}
// HasRejectedUsagePurpose returns a boolean if a field has been set.
func (o *SecNegotiateRspData) HasRejectedUsagePurpose() bool {
if o != nil && !IsNil(o.RejectedUsagePurpose) {
return true
}
return false
}
// SetRejectedUsagePurpose gets a reference to the given []IntendedN32Purpose and assigns it to the RejectedUsagePurpose field.
func (o *SecNegotiateRspData) SetRejectedUsagePurpose(v []IntendedN32Purpose) {
o.RejectedUsagePurpose = v
}
// GetSupportedFeatures returns the SupportedFeatures field value if set, zero value otherwise.
func (o *SecNegotiateRspData) GetSupportedFeatures() string {
if o == nil || IsNil(o.SupportedFeatures) {
var ret string
return ret
}
return *o.SupportedFeatures
}
// GetSupportedFeaturesOk returns a tuple with the SupportedFeatures field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SecNegotiateRspData) GetSupportedFeaturesOk() (*string, bool) {
if o == nil || IsNil(o.SupportedFeatures) {
return nil, false
}
return o.SupportedFeatures, true
}
// HasSupportedFeatures returns a boolean if a field has been set.
func (o *SecNegotiateRspData) HasSupportedFeatures() bool {
if o != nil && !IsNil(o.SupportedFeatures) {
return true
}
return false
}
// SetSupportedFeatures gets a reference to the given string and assigns it to the SupportedFeatures field.
func (o *SecNegotiateRspData) SetSupportedFeatures(v string) {
o.SupportedFeatures = &v
}
func (o SecNegotiateRspData) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SecNegotiateRspData) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["sender"] = o.Sender
toSerialize["selectedSecCapability"] = o.SelectedSecCapability
if !IsNil(o.Var3GppSbiTargetApiRootSupported) {
toSerialize["3GppSbiTargetApiRootSupported"] = o.Var3GppSbiTargetApiRootSupported
}
if !IsNil(o.PlmnIdList) {
toSerialize["plmnIdList"] = o.PlmnIdList
}
if !IsNil(o.SnpnIdList) {
toSerialize["snpnIdList"] = o.SnpnIdList
}
if !IsNil(o.AllowedUsagePurpose) {
toSerialize["allowedUsagePurpose"] = o.AllowedUsagePurpose
}
if !IsNil(o.RejectedUsagePurpose) {
toSerialize["rejectedUsagePurpose"] = o.RejectedUsagePurpose
}
if !IsNil(o.SupportedFeatures) {
toSerialize["supportedFeatures"] = o.SupportedFeatures
}
return toSerialize, nil
}
func (o *SecNegotiateRspData) UnmarshalJSON(bytes []byte) (err error) {
// This validates that all required properties are included in the JSON object
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"sender",
"selectedSecCapability",
}
allProperties := make(map[string]interface{})
err = json.Unmarshal(bytes, &allProperties)
if err != nil {
return err
}
for _, requiredProperty := range requiredProperties {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
varSecNegotiateRspData := _SecNegotiateRspData{}
err = json.Unmarshal(bytes, &varSecNegotiateRspData)
if err != nil {
return err
}
*o = SecNegotiateRspData(varSecNegotiateRspData)
return err
}
type NullableSecNegotiateRspData struct {
value *SecNegotiateRspData
isSet bool
}
func (v NullableSecNegotiateRspData) Get() *SecNegotiateRspData {
return v.value
}
func (v *NullableSecNegotiateRspData) Set(val *SecNegotiateRspData) {
v.value = val
v.isSet = true
}
func (v NullableSecNegotiateRspData) IsSet() bool {
return v.isSet
}
func (v *NullableSecNegotiateRspData) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSecNegotiateRspData(val *SecNegotiateRspData) *NullableSecNegotiateRspData {
return &NullableSecNegotiateRspData{value: val, isSet: true}
}
func (v NullableSecNegotiateRspData) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSecNegotiateRspData) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。