-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_alert_configuration_target.go
153 lines (126 loc) · 3.96 KB
/
model_alert_configuration_target.go
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
150
151
/*
* YugabyteDB Anywhere APIs
*
* ALPHA - NOT FOR EXTERNAL USE
*
* API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package ywclient
import (
"encoding/json"
)
// AlertConfigurationTarget Alert target. Set to `all`, or specify one or more target UUIDs.
type AlertConfigurationTarget struct {
// Alert applicable to all targets
All *bool `json:"all,omitempty"`
// Alert target UUIDs
Uuids *[]string `json:"uuids,omitempty"`
}
// NewAlertConfigurationTarget instantiates a new AlertConfigurationTarget 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 NewAlertConfigurationTarget() *AlertConfigurationTarget {
this := AlertConfigurationTarget{}
return &this
}
// NewAlertConfigurationTargetWithDefaults instantiates a new AlertConfigurationTarget 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 NewAlertConfigurationTargetWithDefaults() *AlertConfigurationTarget {
this := AlertConfigurationTarget{}
return &this
}
// GetAll returns the All field value if set, zero value otherwise.
func (o *AlertConfigurationTarget) GetAll() bool {
if o == nil || o.All == nil {
var ret bool
return ret
}
return *o.All
}
// GetAllOk returns a tuple with the All field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlertConfigurationTarget) GetAllOk() (*bool, bool) {
if o == nil || o.All == nil {
return nil, false
}
return o.All, true
}
// HasAll returns a boolean if a field has been set.
func (o *AlertConfigurationTarget) HasAll() bool {
if o != nil && o.All != nil {
return true
}
return false
}
// SetAll gets a reference to the given bool and assigns it to the All field.
func (o *AlertConfigurationTarget) SetAll(v bool) {
o.All = &v
}
// GetUuids returns the Uuids field value if set, zero value otherwise.
func (o *AlertConfigurationTarget) GetUuids() []string {
if o == nil || o.Uuids == nil {
var ret []string
return ret
}
return *o.Uuids
}
// GetUuidsOk returns a tuple with the Uuids field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AlertConfigurationTarget) GetUuidsOk() (*[]string, bool) {
if o == nil || o.Uuids == nil {
return nil, false
}
return o.Uuids, true
}
// HasUuids returns a boolean if a field has been set.
func (o *AlertConfigurationTarget) HasUuids() bool {
if o != nil && o.Uuids != nil {
return true
}
return false
}
// SetUuids gets a reference to the given []string and assigns it to the Uuids field.
func (o *AlertConfigurationTarget) SetUuids(v []string) {
o.Uuids = &v
}
func (o AlertConfigurationTarget) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.All != nil {
toSerialize["all"] = o.All
}
if o.Uuids != nil {
toSerialize["uuids"] = o.Uuids
}
return json.Marshal(toSerialize)
}
type NullableAlertConfigurationTarget struct {
value *AlertConfigurationTarget
isSet bool
}
func (v NullableAlertConfigurationTarget) Get() *AlertConfigurationTarget {
return v.value
}
func (v *NullableAlertConfigurationTarget) Set(val *AlertConfigurationTarget) {
v.value = val
v.isSet = true
}
func (v NullableAlertConfigurationTarget) IsSet() bool {
return v.isSet
}
func (v *NullableAlertConfigurationTarget) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAlertConfigurationTarget(val *AlertConfigurationTarget) *NullableAlertConfigurationTarget {
return &NullableAlertConfigurationTarget{value: val, isSet: true}
}
func (v NullableAlertConfigurationTarget) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAlertConfigurationTarget) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}