forked from meraki/dashboard-api-go
/
model_get_network_alerts_history_200_response_inner_destinations_push.go
127 lines (101 loc) · 4.7 KB
/
model_get_network_alerts_history_200_response_inner_destinations_push.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
/*
Meraki Dashboard API
A RESTful API to programmatically manage and monitor Cisco Meraki networks at scale. > Date: 02 August, 2023 > > [Recent Updates](https://meraki.io/whats-new/) --- [API Documentation](https://meraki.io/api) [Community Support](https://meraki.io/community) [Meraki Homepage](https://www.meraki.com)
API version: 1.36.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
)
// checks if the GetNetworkAlertsHistory200ResponseInnerDestinationsPush type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GetNetworkAlertsHistory200ResponseInnerDestinationsPush{}
// GetNetworkAlertsHistory200ResponseInnerDestinationsPush push destinations for this alert
type GetNetworkAlertsHistory200ResponseInnerDestinationsPush struct {
// time when the alert was sent to the user(s) for this channel
SentAt *string `json:"sentAt,omitempty"`
}
// NewGetNetworkAlertsHistory200ResponseInnerDestinationsPush instantiates a new GetNetworkAlertsHistory200ResponseInnerDestinationsPush 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 NewGetNetworkAlertsHistory200ResponseInnerDestinationsPush() *GetNetworkAlertsHistory200ResponseInnerDestinationsPush {
this := GetNetworkAlertsHistory200ResponseInnerDestinationsPush{}
return &this
}
// NewGetNetworkAlertsHistory200ResponseInnerDestinationsPushWithDefaults instantiates a new GetNetworkAlertsHistory200ResponseInnerDestinationsPush 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 NewGetNetworkAlertsHistory200ResponseInnerDestinationsPushWithDefaults() *GetNetworkAlertsHistory200ResponseInnerDestinationsPush {
this := GetNetworkAlertsHistory200ResponseInnerDestinationsPush{}
return &this
}
// GetSentAt returns the SentAt field value if set, zero value otherwise.
func (o *GetNetworkAlertsHistory200ResponseInnerDestinationsPush) GetSentAt() string {
if o == nil || IsNil(o.SentAt) {
var ret string
return ret
}
return *o.SentAt
}
// GetSentAtOk returns a tuple with the SentAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetNetworkAlertsHistory200ResponseInnerDestinationsPush) GetSentAtOk() (*string, bool) {
if o == nil || IsNil(o.SentAt) {
return nil, false
}
return o.SentAt, true
}
// HasSentAt returns a boolean if a field has been set.
func (o *GetNetworkAlertsHistory200ResponseInnerDestinationsPush) HasSentAt() bool {
if o != nil && !IsNil(o.SentAt) {
return true
}
return false
}
// SetSentAt gets a reference to the given string and assigns it to the SentAt field.
func (o *GetNetworkAlertsHistory200ResponseInnerDestinationsPush) SetSentAt(v string) {
o.SentAt = &v
}
func (o GetNetworkAlertsHistory200ResponseInnerDestinationsPush) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o GetNetworkAlertsHistory200ResponseInnerDestinationsPush) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.SentAt) {
toSerialize["sentAt"] = o.SentAt
}
return toSerialize, nil
}
type NullableGetNetworkAlertsHistory200ResponseInnerDestinationsPush struct {
value *GetNetworkAlertsHistory200ResponseInnerDestinationsPush
isSet bool
}
func (v NullableGetNetworkAlertsHistory200ResponseInnerDestinationsPush) Get() *GetNetworkAlertsHistory200ResponseInnerDestinationsPush {
return v.value
}
func (v *NullableGetNetworkAlertsHistory200ResponseInnerDestinationsPush) Set(val *GetNetworkAlertsHistory200ResponseInnerDestinationsPush) {
v.value = val
v.isSet = true
}
func (v NullableGetNetworkAlertsHistory200ResponseInnerDestinationsPush) IsSet() bool {
return v.isSet
}
func (v *NullableGetNetworkAlertsHistory200ResponseInnerDestinationsPush) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGetNetworkAlertsHistory200ResponseInnerDestinationsPush(val *GetNetworkAlertsHistory200ResponseInnerDestinationsPush) *NullableGetNetworkAlertsHistory200ResponseInnerDestinationsPush {
return &NullableGetNetworkAlertsHistory200ResponseInnerDestinationsPush{value: val, isSet: true}
}
func (v NullableGetNetworkAlertsHistory200ResponseInnerDestinationsPush) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGetNetworkAlertsHistory200ResponseInnerDestinationsPush) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}