1 Star 0 Fork 0

MrCoder / openapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_sms_management_subscription_data_1.go 14.58 KB
一键复制 编辑 原始数据 按行查看 历史
MrCoder 提交于 2023-12-22 15:27 . update
/*
Nudr_DataRepository API OpenAPI file
Unified Data Repository Service. © 2023, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 2.2.4
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_Nudr_DR
import (
"encoding/json"
)
// checks if the SmsManagementSubscriptionData1 type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SmsManagementSubscriptionData1{}
// SmsManagementSubscriptionData1 struct for SmsManagementSubscriptionData1
type SmsManagementSubscriptionData1 struct {
// 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"`
MtSmsSubscribed *bool `json:"mtSmsSubscribed,omitempty"`
MtSmsBarringAll *bool `json:"mtSmsBarringAll,omitempty"`
MtSmsBarringRoaming *bool `json:"mtSmsBarringRoaming,omitempty"`
MoSmsSubscribed *bool `json:"moSmsSubscribed,omitempty"`
MoSmsBarringAll *bool `json:"moSmsBarringAll,omitempty"`
MoSmsBarringRoaming *bool `json:"moSmsBarringRoaming,omitempty"`
SharedSmsMngDataIds []string `json:"sharedSmsMngDataIds,omitempty"`
TraceData NullableTraceData `json:"traceData,omitempty"`
}
// NewSmsManagementSubscriptionData1 instantiates a new SmsManagementSubscriptionData1 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 NewSmsManagementSubscriptionData1() *SmsManagementSubscriptionData1 {
this := SmsManagementSubscriptionData1{}
return &this
}
// NewSmsManagementSubscriptionData1WithDefaults instantiates a new SmsManagementSubscriptionData1 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 NewSmsManagementSubscriptionData1WithDefaults() *SmsManagementSubscriptionData1 {
this := SmsManagementSubscriptionData1{}
return &this
}
// GetSupportedFeatures returns the SupportedFeatures field value if set, zero value otherwise.
func (o *SmsManagementSubscriptionData1) 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 *SmsManagementSubscriptionData1) 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 *SmsManagementSubscriptionData1) 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 *SmsManagementSubscriptionData1) SetSupportedFeatures(v string) {
o.SupportedFeatures = &v
}
// GetMtSmsSubscribed returns the MtSmsSubscribed field value if set, zero value otherwise.
func (o *SmsManagementSubscriptionData1) GetMtSmsSubscribed() bool {
if o == nil || IsNil(o.MtSmsSubscribed) {
var ret bool
return ret
}
return *o.MtSmsSubscribed
}
// GetMtSmsSubscribedOk returns a tuple with the MtSmsSubscribed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmsManagementSubscriptionData1) GetMtSmsSubscribedOk() (*bool, bool) {
if o == nil || IsNil(o.MtSmsSubscribed) {
return nil, false
}
return o.MtSmsSubscribed, true
}
// HasMtSmsSubscribed returns a boolean if a field has been set.
func (o *SmsManagementSubscriptionData1) HasMtSmsSubscribed() bool {
if o != nil && !IsNil(o.MtSmsSubscribed) {
return true
}
return false
}
// SetMtSmsSubscribed gets a reference to the given bool and assigns it to the MtSmsSubscribed field.
func (o *SmsManagementSubscriptionData1) SetMtSmsSubscribed(v bool) {
o.MtSmsSubscribed = &v
}
// GetMtSmsBarringAll returns the MtSmsBarringAll field value if set, zero value otherwise.
func (o *SmsManagementSubscriptionData1) GetMtSmsBarringAll() bool {
if o == nil || IsNil(o.MtSmsBarringAll) {
var ret bool
return ret
}
return *o.MtSmsBarringAll
}
// GetMtSmsBarringAllOk returns a tuple with the MtSmsBarringAll field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmsManagementSubscriptionData1) GetMtSmsBarringAllOk() (*bool, bool) {
if o == nil || IsNil(o.MtSmsBarringAll) {
return nil, false
}
return o.MtSmsBarringAll, true
}
// HasMtSmsBarringAll returns a boolean if a field has been set.
func (o *SmsManagementSubscriptionData1) HasMtSmsBarringAll() bool {
if o != nil && !IsNil(o.MtSmsBarringAll) {
return true
}
return false
}
// SetMtSmsBarringAll gets a reference to the given bool and assigns it to the MtSmsBarringAll field.
func (o *SmsManagementSubscriptionData1) SetMtSmsBarringAll(v bool) {
o.MtSmsBarringAll = &v
}
// GetMtSmsBarringRoaming returns the MtSmsBarringRoaming field value if set, zero value otherwise.
func (o *SmsManagementSubscriptionData1) GetMtSmsBarringRoaming() bool {
if o == nil || IsNil(o.MtSmsBarringRoaming) {
var ret bool
return ret
}
return *o.MtSmsBarringRoaming
}
// GetMtSmsBarringRoamingOk returns a tuple with the MtSmsBarringRoaming field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmsManagementSubscriptionData1) GetMtSmsBarringRoamingOk() (*bool, bool) {
if o == nil || IsNil(o.MtSmsBarringRoaming) {
return nil, false
}
return o.MtSmsBarringRoaming, true
}
// HasMtSmsBarringRoaming returns a boolean if a field has been set.
func (o *SmsManagementSubscriptionData1) HasMtSmsBarringRoaming() bool {
if o != nil && !IsNil(o.MtSmsBarringRoaming) {
return true
}
return false
}
// SetMtSmsBarringRoaming gets a reference to the given bool and assigns it to the MtSmsBarringRoaming field.
func (o *SmsManagementSubscriptionData1) SetMtSmsBarringRoaming(v bool) {
o.MtSmsBarringRoaming = &v
}
// GetMoSmsSubscribed returns the MoSmsSubscribed field value if set, zero value otherwise.
func (o *SmsManagementSubscriptionData1) GetMoSmsSubscribed() bool {
if o == nil || IsNil(o.MoSmsSubscribed) {
var ret bool
return ret
}
return *o.MoSmsSubscribed
}
// GetMoSmsSubscribedOk returns a tuple with the MoSmsSubscribed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmsManagementSubscriptionData1) GetMoSmsSubscribedOk() (*bool, bool) {
if o == nil || IsNil(o.MoSmsSubscribed) {
return nil, false
}
return o.MoSmsSubscribed, true
}
// HasMoSmsSubscribed returns a boolean if a field has been set.
func (o *SmsManagementSubscriptionData1) HasMoSmsSubscribed() bool {
if o != nil && !IsNil(o.MoSmsSubscribed) {
return true
}
return false
}
// SetMoSmsSubscribed gets a reference to the given bool and assigns it to the MoSmsSubscribed field.
func (o *SmsManagementSubscriptionData1) SetMoSmsSubscribed(v bool) {
o.MoSmsSubscribed = &v
}
// GetMoSmsBarringAll returns the MoSmsBarringAll field value if set, zero value otherwise.
func (o *SmsManagementSubscriptionData1) GetMoSmsBarringAll() bool {
if o == nil || IsNil(o.MoSmsBarringAll) {
var ret bool
return ret
}
return *o.MoSmsBarringAll
}
// GetMoSmsBarringAllOk returns a tuple with the MoSmsBarringAll field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmsManagementSubscriptionData1) GetMoSmsBarringAllOk() (*bool, bool) {
if o == nil || IsNil(o.MoSmsBarringAll) {
return nil, false
}
return o.MoSmsBarringAll, true
}
// HasMoSmsBarringAll returns a boolean if a field has been set.
func (o *SmsManagementSubscriptionData1) HasMoSmsBarringAll() bool {
if o != nil && !IsNil(o.MoSmsBarringAll) {
return true
}
return false
}
// SetMoSmsBarringAll gets a reference to the given bool and assigns it to the MoSmsBarringAll field.
func (o *SmsManagementSubscriptionData1) SetMoSmsBarringAll(v bool) {
o.MoSmsBarringAll = &v
}
// GetMoSmsBarringRoaming returns the MoSmsBarringRoaming field value if set, zero value otherwise.
func (o *SmsManagementSubscriptionData1) GetMoSmsBarringRoaming() bool {
if o == nil || IsNil(o.MoSmsBarringRoaming) {
var ret bool
return ret
}
return *o.MoSmsBarringRoaming
}
// GetMoSmsBarringRoamingOk returns a tuple with the MoSmsBarringRoaming field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmsManagementSubscriptionData1) GetMoSmsBarringRoamingOk() (*bool, bool) {
if o == nil || IsNil(o.MoSmsBarringRoaming) {
return nil, false
}
return o.MoSmsBarringRoaming, true
}
// HasMoSmsBarringRoaming returns a boolean if a field has been set.
func (o *SmsManagementSubscriptionData1) HasMoSmsBarringRoaming() bool {
if o != nil && !IsNil(o.MoSmsBarringRoaming) {
return true
}
return false
}
// SetMoSmsBarringRoaming gets a reference to the given bool and assigns it to the MoSmsBarringRoaming field.
func (o *SmsManagementSubscriptionData1) SetMoSmsBarringRoaming(v bool) {
o.MoSmsBarringRoaming = &v
}
// GetSharedSmsMngDataIds returns the SharedSmsMngDataIds field value if set, zero value otherwise.
func (o *SmsManagementSubscriptionData1) GetSharedSmsMngDataIds() []string {
if o == nil || IsNil(o.SharedSmsMngDataIds) {
var ret []string
return ret
}
return o.SharedSmsMngDataIds
}
// GetSharedSmsMngDataIdsOk returns a tuple with the SharedSmsMngDataIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SmsManagementSubscriptionData1) GetSharedSmsMngDataIdsOk() ([]string, bool) {
if o == nil || IsNil(o.SharedSmsMngDataIds) {
return nil, false
}
return o.SharedSmsMngDataIds, true
}
// HasSharedSmsMngDataIds returns a boolean if a field has been set.
func (o *SmsManagementSubscriptionData1) HasSharedSmsMngDataIds() bool {
if o != nil && !IsNil(o.SharedSmsMngDataIds) {
return true
}
return false
}
// SetSharedSmsMngDataIds gets a reference to the given []string and assigns it to the SharedSmsMngDataIds field.
func (o *SmsManagementSubscriptionData1) SetSharedSmsMngDataIds(v []string) {
o.SharedSmsMngDataIds = v
}
// GetTraceData returns the TraceData field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SmsManagementSubscriptionData1) GetTraceData() TraceData {
if o == nil || IsNil(o.TraceData.Get()) {
var ret TraceData
return ret
}
return *o.TraceData.Get()
}
// GetTraceDataOk returns a tuple with the TraceData field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *SmsManagementSubscriptionData1) GetTraceDataOk() (*TraceData, bool) {
if o == nil {
return nil, false
}
return o.TraceData.Get(), o.TraceData.IsSet()
}
// HasTraceData returns a boolean if a field has been set.
func (o *SmsManagementSubscriptionData1) HasTraceData() bool {
if o != nil && o.TraceData.IsSet() {
return true
}
return false
}
// SetTraceData gets a reference to the given NullableTraceData and assigns it to the TraceData field.
func (o *SmsManagementSubscriptionData1) SetTraceData(v TraceData) {
o.TraceData.Set(&v)
}
// SetTraceDataNil sets the value for TraceData to be an explicit nil
func (o *SmsManagementSubscriptionData1) SetTraceDataNil() {
o.TraceData.Set(nil)
}
// UnsetTraceData ensures that no value is present for TraceData, not even an explicit nil
func (o *SmsManagementSubscriptionData1) UnsetTraceData() {
o.TraceData.Unset()
}
func (o SmsManagementSubscriptionData1) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SmsManagementSubscriptionData1) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.SupportedFeatures) {
toSerialize["supportedFeatures"] = o.SupportedFeatures
}
if !IsNil(o.MtSmsSubscribed) {
toSerialize["mtSmsSubscribed"] = o.MtSmsSubscribed
}
if !IsNil(o.MtSmsBarringAll) {
toSerialize["mtSmsBarringAll"] = o.MtSmsBarringAll
}
if !IsNil(o.MtSmsBarringRoaming) {
toSerialize["mtSmsBarringRoaming"] = o.MtSmsBarringRoaming
}
if !IsNil(o.MoSmsSubscribed) {
toSerialize["moSmsSubscribed"] = o.MoSmsSubscribed
}
if !IsNil(o.MoSmsBarringAll) {
toSerialize["moSmsBarringAll"] = o.MoSmsBarringAll
}
if !IsNil(o.MoSmsBarringRoaming) {
toSerialize["moSmsBarringRoaming"] = o.MoSmsBarringRoaming
}
if !IsNil(o.SharedSmsMngDataIds) {
toSerialize["sharedSmsMngDataIds"] = o.SharedSmsMngDataIds
}
if o.TraceData.IsSet() {
toSerialize["traceData"] = o.TraceData.Get()
}
return toSerialize, nil
}
type NullableSmsManagementSubscriptionData1 struct {
value *SmsManagementSubscriptionData1
isSet bool
}
func (v NullableSmsManagementSubscriptionData1) Get() *SmsManagementSubscriptionData1 {
return v.value
}
func (v *NullableSmsManagementSubscriptionData1) Set(val *SmsManagementSubscriptionData1) {
v.value = val
v.isSet = true
}
func (v NullableSmsManagementSubscriptionData1) IsSet() bool {
return v.isSet
}
func (v *NullableSmsManagementSubscriptionData1) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSmsManagementSubscriptionData1(val *SmsManagementSubscriptionData1) *NullableSmsManagementSubscriptionData1 {
return &NullableSmsManagementSubscriptionData1{value: val, isSet: true}
}
func (v NullableSmsManagementSubscriptionData1) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSmsManagementSubscriptionData1) 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

搜索帮助