Files
sdk/model_trust_subprocessor_list.go

155 lines
4.4 KiB
Go

/*
Hanzo Cloud API
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package hanzoai
import (
"encoding/json"
)
// checks if the TrustSubprocessorList type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TrustSubprocessorList{}
// TrustSubprocessorList struct for TrustSubprocessorList
type TrustSubprocessorList struct {
// Subprocessors is the list, each naming at least what it is and what it is for — a name alone says nothing.
Subprocessors []interface{} `json:"subprocessors,omitempty"`
AdditionalProperties map[string]interface{}
}
type _TrustSubprocessorList TrustSubprocessorList
// NewTrustSubprocessorList instantiates a new TrustSubprocessorList 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 NewTrustSubprocessorList() *TrustSubprocessorList {
this := TrustSubprocessorList{}
return &this
}
// NewTrustSubprocessorListWithDefaults instantiates a new TrustSubprocessorList 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 NewTrustSubprocessorListWithDefaults() *TrustSubprocessorList {
this := TrustSubprocessorList{}
return &this
}
// GetSubprocessors returns the Subprocessors field value if set, zero value otherwise.
func (o *TrustSubprocessorList) GetSubprocessors() []interface{} {
if o == nil || IsNil(o.Subprocessors) {
var ret []interface{}
return ret
}
return o.Subprocessors
}
// GetSubprocessorsOk returns a tuple with the Subprocessors field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *TrustSubprocessorList) GetSubprocessorsOk() ([]interface{}, bool) {
if o == nil || IsNil(o.Subprocessors) {
return nil, false
}
return o.Subprocessors, true
}
// HasSubprocessors returns a boolean if a field has been set.
func (o *TrustSubprocessorList) HasSubprocessors() bool {
if o != nil && !IsNil(o.Subprocessors) {
return true
}
return false
}
// SetSubprocessors gets a reference to the given []interface{} and assigns it to the Subprocessors field.
func (o *TrustSubprocessorList) SetSubprocessors(v []interface{}) {
o.Subprocessors = v
}
func (o TrustSubprocessorList) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o TrustSubprocessorList) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Subprocessors) {
toSerialize["subprocessors"] = o.Subprocessors
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *TrustSubprocessorList) UnmarshalJSON(data []byte) (err error) {
varTrustSubprocessorList := _TrustSubprocessorList{}
err = json.Unmarshal(data, &varTrustSubprocessorList)
if err != nil {
return err
}
*o = TrustSubprocessorList(varTrustSubprocessorList)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "subprocessors")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableTrustSubprocessorList struct {
value *TrustSubprocessorList
isSet bool
}
func (v NullableTrustSubprocessorList) Get() *TrustSubprocessorList {
return v.value
}
func (v *NullableTrustSubprocessorList) Set(val *TrustSubprocessorList) {
v.value = val
v.isSet = true
}
func (v NullableTrustSubprocessorList) IsSet() bool {
return v.isSet
}
func (v *NullableTrustSubprocessorList) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableTrustSubprocessorList(val *TrustSubprocessorList) *NullableTrustSubprocessorList {
return &NullableTrustSubprocessorList{value: val, isSet: true}
}
func (v NullableTrustSubprocessorList) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableTrustSubprocessorList) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}