-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel_v3_cluster_list_data.go
More file actions
151 lines (122 loc) · 3.91 KB
/
model_v3_cluster_list_data.go
File metadata and controls
151 lines (122 loc) · 3.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/*
Couchbase Public API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: 2.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package couchbasecapella
import (
"encoding/json"
)
// V3ClusterListData struct for V3ClusterListData
type V3ClusterListData struct {
TenantId *string `json:"tenantId,omitempty"`
Items *[]V3ClusterListDataItems `json:"items,omitempty"`
}
// NewV3ClusterListData instantiates a new V3ClusterListData 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 NewV3ClusterListData() *V3ClusterListData {
this := V3ClusterListData{}
return &this
}
// NewV3ClusterListDataWithDefaults instantiates a new V3ClusterListData 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 NewV3ClusterListDataWithDefaults() *V3ClusterListData {
this := V3ClusterListData{}
return &this
}
// GetTenantId returns the TenantId field value if set, zero value otherwise.
func (o *V3ClusterListData) GetTenantId() string {
if o == nil || o.TenantId == nil {
var ret string
return ret
}
return *o.TenantId
}
// GetTenantIdOk returns a tuple with the TenantId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V3ClusterListData) GetTenantIdOk() (*string, bool) {
if o == nil || o.TenantId == nil {
return nil, false
}
return o.TenantId, true
}
// HasTenantId returns a boolean if a field has been set.
func (o *V3ClusterListData) HasTenantId() bool {
if o != nil && o.TenantId != nil {
return true
}
return false
}
// SetTenantId gets a reference to the given string and assigns it to the TenantId field.
func (o *V3ClusterListData) SetTenantId(v string) {
o.TenantId = &v
}
// GetItems returns the Items field value if set, zero value otherwise.
func (o *V3ClusterListData) GetItems() []V3ClusterListDataItems {
if o == nil || o.Items == nil {
var ret []V3ClusterListDataItems
return ret
}
return *o.Items
}
// GetItemsOk returns a tuple with the Items field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V3ClusterListData) GetItemsOk() (*[]V3ClusterListDataItems, bool) {
if o == nil || o.Items == nil {
return nil, false
}
return o.Items, true
}
// HasItems returns a boolean if a field has been set.
func (o *V3ClusterListData) HasItems() bool {
if o != nil && o.Items != nil {
return true
}
return false
}
// SetItems gets a reference to the given []V3ClusterListDataItems and assigns it to the Items field.
func (o *V3ClusterListData) SetItems(v []V3ClusterListDataItems) {
o.Items = &v
}
func (o V3ClusterListData) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.TenantId != nil {
toSerialize["tenantId"] = o.TenantId
}
if o.Items != nil {
toSerialize["items"] = o.Items
}
return json.Marshal(toSerialize)
}
type NullableV3ClusterListData struct {
value *V3ClusterListData
isSet bool
}
func (v NullableV3ClusterListData) Get() *V3ClusterListData {
return v.value
}
func (v *NullableV3ClusterListData) Set(val *V3ClusterListData) {
v.value = val
v.isSet = true
}
func (v NullableV3ClusterListData) IsSet() bool {
return v.isSet
}
func (v *NullableV3ClusterListData) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableV3ClusterListData(val *V3ClusterListData) *NullableV3ClusterListData {
return &NullableV3ClusterListData{value: val, isSet: true}
}
func (v NullableV3ClusterListData) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableV3ClusterListData) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}