Fetch the repository succeeded.
/*
UAE Server C2 Operation Mode Management Service
UAE Server C2 Operation Mode Management Service. © 2022, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package OpenAPI_UAE_C2OperationModeManagement
import (
"encoding/json"
)
// checks if the UasId type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &UasId{}
// UasId Represents the identifier of a UAS (i.e. pair of UAV and UAV-C).
type UasId struct {
// string containing a local identifier followed by \"@\" and a domain identifier. Both the local identifier and the domain identifier shall be encoded as strings that do not contain any \"@\" characters. See Clauses 4.6.2 and 4.6.3 of 3GPP TS 23.682 for more information.
GroupId *string `json:"groupId,omitempty"`
IndividualUasId []UavId `json:"individualUasId,omitempty"`
}
// NewUasId instantiates a new UasId 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 NewUasId() *UasId {
this := UasId{}
return &this
}
// NewUasIdWithDefaults instantiates a new UasId 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 NewUasIdWithDefaults() *UasId {
this := UasId{}
return &this
}
// GetGroupId returns the GroupId field value if set, zero value otherwise.
func (o *UasId) GetGroupId() string {
if o == nil || IsNil(o.GroupId) {
var ret string
return ret
}
return *o.GroupId
}
// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UasId) GetGroupIdOk() (*string, bool) {
if o == nil || IsNil(o.GroupId) {
return nil, false
}
return o.GroupId, true
}
// HasGroupId returns a boolean if a field has been set.
func (o *UasId) HasGroupId() bool {
if o != nil && !IsNil(o.GroupId) {
return true
}
return false
}
// SetGroupId gets a reference to the given string and assigns it to the GroupId field.
func (o *UasId) SetGroupId(v string) {
o.GroupId = &v
}
// GetIndividualUasId returns the IndividualUasId field value if set, zero value otherwise.
func (o *UasId) GetIndividualUasId() []UavId {
if o == nil || IsNil(o.IndividualUasId) {
var ret []UavId
return ret
}
return o.IndividualUasId
}
// GetIndividualUasIdOk returns a tuple with the IndividualUasId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UasId) GetIndividualUasIdOk() ([]UavId, bool) {
if o == nil || IsNil(o.IndividualUasId) {
return nil, false
}
return o.IndividualUasId, true
}
// HasIndividualUasId returns a boolean if a field has been set.
func (o *UasId) HasIndividualUasId() bool {
if o != nil && !IsNil(o.IndividualUasId) {
return true
}
return false
}
// SetIndividualUasId gets a reference to the given []UavId and assigns it to the IndividualUasId field.
func (o *UasId) SetIndividualUasId(v []UavId) {
o.IndividualUasId = v
}
func (o UasId) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o UasId) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.GroupId) {
toSerialize["groupId"] = o.GroupId
}
if !IsNil(o.IndividualUasId) {
toSerialize["individualUasId"] = o.IndividualUasId
}
return toSerialize, nil
}
type NullableUasId struct {
value *UasId
isSet bool
}
func (v NullableUasId) Get() *UasId {
return v.value
}
func (v *NullableUasId) Set(val *UasId) {
v.value = val
v.isSet = true
}
func (v NullableUasId) IsSet() bool {
return v.isSet
}
func (v *NullableUasId) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUasId(val *UasId) *NullableUasId {
return &NullableUasId{value: val, isSet: true}
}
func (v NullableUasId) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableUasId) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。