1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_spending_limit_context.go 11.63 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
Nchf_SpendingLimitControl
Nchf Spending Limit Control Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.2.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nchf_SpendingLimitControl
import (
"encoding/json"
"time"
)
// checks if the SpendingLimitContext type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SpendingLimitContext{}
// SpendingLimitContext Represents the subscription data structure required for an individual CHF spending limit subscription.
type SpendingLimitContext struct {
// String identifying a Supi that shall contain either an IMSI, a network specific identifier, a Global Cable Identifier (GCI) or a Global Line Identifier (GLI) as specified in clause 2.2A of 3GPP TS 23.003. It shall be formatted as follows - for an IMSI \"imsi-<imsi>\", where <imsi> shall be formatted according to clause 2.2 of 3GPP TS 23.003 that describes an IMSI. - for a network specific identifier \"nai-<nai>, where <nai> shall be formatted according to clause 28.7.2 of 3GPP TS 23.003 that describes an NAI. - for a GCI \"gci-<gci>\", where <gci> shall be formatted according to clause 28.15.2 of 3GPP TS 23.003. - for a GLI \"gli-<gli>\", where <gli> shall be formatted according to clause 28.16.2 of 3GPP TS 23.003.To enable that the value is used as part of an URI, the string shall only contain characters allowed according to the \"lower-with-hyphen\" naming convention defined in 3GPP TS 29.501.
Supi *string `json:"supi,omitempty"`
// String identifying a Gpsi shall contain either an External Id or an MSISDN. It shall be formatted as follows -External Identifier= \"extid-'extid', where 'extid' shall be formatted according to clause 19.7.2 of 3GPP TS 23.003 that describes an External Identifier.
Gpsi *string `json:"gpsi,omitempty"`
// This is a list of policy counter identifier(s), which identifies policy counters maintained per subscriber within the CHF.
PolicyCounterIds []string `json:"policyCounterIds,omitempty"`
// String providing an URI formatted according to RFC 3986.
NotifUri *string `json:"notifUri,omitempty"`
// string with format 'date-time' as defined in OpenAPI.
Expiry *time.Time `json:"expiry,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"`
NotifId *string `json:"notifId,omitempty"`
}
// NewSpendingLimitContext instantiates a new SpendingLimitContext 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 NewSpendingLimitContext() *SpendingLimitContext {
this := SpendingLimitContext{}
return &this
}
// NewSpendingLimitContextWithDefaults instantiates a new SpendingLimitContext 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 NewSpendingLimitContextWithDefaults() *SpendingLimitContext {
this := SpendingLimitContext{}
return &this
}
// GetSupi returns the Supi field value if set, zero value otherwise.
func (o *SpendingLimitContext) GetSupi() string {
if o == nil || IsNil(o.Supi) {
var ret string
return ret
}
return *o.Supi
}
// GetSupiOk returns a tuple with the Supi field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SpendingLimitContext) GetSupiOk() (*string, bool) {
if o == nil || IsNil(o.Supi) {
return nil, false
}
return o.Supi, true
}
// HasSupi returns a boolean if a field has been set.
func (o *SpendingLimitContext) HasSupi() bool {
if o != nil && !IsNil(o.Supi) {
return true
}
return false
}
// SetSupi gets a reference to the given string and assigns it to the Supi field.
func (o *SpendingLimitContext) SetSupi(v string) {
o.Supi = &v
}
// GetGpsi returns the Gpsi field value if set, zero value otherwise.
func (o *SpendingLimitContext) GetGpsi() string {
if o == nil || IsNil(o.Gpsi) {
var ret string
return ret
}
return *o.Gpsi
}
// GetGpsiOk returns a tuple with the Gpsi field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SpendingLimitContext) GetGpsiOk() (*string, bool) {
if o == nil || IsNil(o.Gpsi) {
return nil, false
}
return o.Gpsi, true
}
// HasGpsi returns a boolean if a field has been set.
func (o *SpendingLimitContext) HasGpsi() bool {
if o != nil && !IsNil(o.Gpsi) {
return true
}
return false
}
// SetGpsi gets a reference to the given string and assigns it to the Gpsi field.
func (o *SpendingLimitContext) SetGpsi(v string) {
o.Gpsi = &v
}
// GetPolicyCounterIds returns the PolicyCounterIds field value if set, zero value otherwise.
func (o *SpendingLimitContext) GetPolicyCounterIds() []string {
if o == nil || IsNil(o.PolicyCounterIds) {
var ret []string
return ret
}
return o.PolicyCounterIds
}
// GetPolicyCounterIdsOk returns a tuple with the PolicyCounterIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SpendingLimitContext) GetPolicyCounterIdsOk() ([]string, bool) {
if o == nil || IsNil(o.PolicyCounterIds) {
return nil, false
}
return o.PolicyCounterIds, true
}
// HasPolicyCounterIds returns a boolean if a field has been set.
func (o *SpendingLimitContext) HasPolicyCounterIds() bool {
if o != nil && !IsNil(o.PolicyCounterIds) {
return true
}
return false
}
// SetPolicyCounterIds gets a reference to the given []string and assigns it to the PolicyCounterIds field.
func (o *SpendingLimitContext) SetPolicyCounterIds(v []string) {
o.PolicyCounterIds = v
}
// GetNotifUri returns the NotifUri field value if set, zero value otherwise.
func (o *SpendingLimitContext) GetNotifUri() string {
if o == nil || IsNil(o.NotifUri) {
var ret string
return ret
}
return *o.NotifUri
}
// GetNotifUriOk returns a tuple with the NotifUri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SpendingLimitContext) GetNotifUriOk() (*string, bool) {
if o == nil || IsNil(o.NotifUri) {
return nil, false
}
return o.NotifUri, true
}
// HasNotifUri returns a boolean if a field has been set.
func (o *SpendingLimitContext) HasNotifUri() bool {
if o != nil && !IsNil(o.NotifUri) {
return true
}
return false
}
// SetNotifUri gets a reference to the given string and assigns it to the NotifUri field.
func (o *SpendingLimitContext) SetNotifUri(v string) {
o.NotifUri = &v
}
// GetExpiry returns the Expiry field value if set, zero value otherwise.
func (o *SpendingLimitContext) GetExpiry() time.Time {
if o == nil || IsNil(o.Expiry) {
var ret time.Time
return ret
}
return *o.Expiry
}
// GetExpiryOk returns a tuple with the Expiry field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SpendingLimitContext) GetExpiryOk() (*time.Time, bool) {
if o == nil || IsNil(o.Expiry) {
return nil, false
}
return o.Expiry, true
}
// HasExpiry returns a boolean if a field has been set.
func (o *SpendingLimitContext) HasExpiry() bool {
if o != nil && !IsNil(o.Expiry) {
return true
}
return false
}
// SetExpiry gets a reference to the given time.Time and assigns it to the Expiry field.
func (o *SpendingLimitContext) SetExpiry(v time.Time) {
o.Expiry = &v
}
// GetSupportedFeatures returns the SupportedFeatures field value if set, zero value otherwise.
func (o *SpendingLimitContext) 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 *SpendingLimitContext) 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 *SpendingLimitContext) 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 *SpendingLimitContext) SetSupportedFeatures(v string) {
o.SupportedFeatures = &v
}
// GetNotifId returns the NotifId field value if set, zero value otherwise.
func (o *SpendingLimitContext) GetNotifId() string {
if o == nil || IsNil(o.NotifId) {
var ret string
return ret
}
return *o.NotifId
}
// GetNotifIdOk returns a tuple with the NotifId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SpendingLimitContext) GetNotifIdOk() (*string, bool) {
if o == nil || IsNil(o.NotifId) {
return nil, false
}
return o.NotifId, true
}
// HasNotifId returns a boolean if a field has been set.
func (o *SpendingLimitContext) HasNotifId() bool {
if o != nil && !IsNil(o.NotifId) {
return true
}
return false
}
// SetNotifId gets a reference to the given string and assigns it to the NotifId field.
func (o *SpendingLimitContext) SetNotifId(v string) {
o.NotifId = &v
}
func (o SpendingLimitContext) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SpendingLimitContext) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Supi) {
toSerialize["supi"] = o.Supi
}
if !IsNil(o.Gpsi) {
toSerialize["gpsi"] = o.Gpsi
}
if !IsNil(o.PolicyCounterIds) {
toSerialize["policyCounterIds"] = o.PolicyCounterIds
}
if !IsNil(o.NotifUri) {
toSerialize["notifUri"] = o.NotifUri
}
if !IsNil(o.Expiry) {
toSerialize["expiry"] = o.Expiry
}
if !IsNil(o.SupportedFeatures) {
toSerialize["supportedFeatures"] = o.SupportedFeatures
}
if !IsNil(o.NotifId) {
toSerialize["notifId"] = o.NotifId
}
return toSerialize, nil
}
type NullableSpendingLimitContext struct {
value *SpendingLimitContext
isSet bool
}
func (v NullableSpendingLimitContext) Get() *SpendingLimitContext {
return v.value
}
func (v *NullableSpendingLimitContext) Set(val *SpendingLimitContext) {
v.value = val
v.isSet = true
}
func (v NullableSpendingLimitContext) IsSet() bool {
return v.isSet
}
func (v *NullableSpendingLimitContext) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSpendingLimitContext(val *SpendingLimitContext) *NullableSpendingLimitContext {
return &NullableSpendingLimitContext{value: val, isSet: true}
}
func (v NullableSpendingLimitContext) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSpendingLimitContext) 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

搜索帮助