Name | Type | Description | Notes |
---|---|---|---|
Pk | string | [readonly] | |
Severity | SeverityEnum | [readonly] | |
Body | string | [readonly] | |
Created | time.Time | [readonly] | |
Event | Pointer to Event | [optional] | |
Seen | Pointer to bool | [optional] |
func NewNotification(pk string, severity SeverityEnum, body string, created time.Time, ) *Notification
NewNotification instantiates a new Notification 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 NewNotificationWithDefaults() *Notification
NewNotificationWithDefaults instantiates a new Notification 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 (o *Notification) GetPk() string
GetPk returns the Pk field if non-nil, zero value otherwise.
func (o *Notification) GetPkOk() (*string, bool)
GetPkOk returns a tuple with the Pk field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Notification) SetPk(v string)
SetPk sets Pk field to given value.
func (o *Notification) GetSeverity() SeverityEnum
GetSeverity returns the Severity field if non-nil, zero value otherwise.
func (o *Notification) GetSeverityOk() (*SeverityEnum, bool)
GetSeverityOk returns a tuple with the Severity field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Notification) SetSeverity(v SeverityEnum)
SetSeverity sets Severity field to given value.
func (o *Notification) GetBody() string
GetBody returns the Body field if non-nil, zero value otherwise.
func (o *Notification) GetBodyOk() (*string, bool)
GetBodyOk returns a tuple with the Body field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Notification) SetBody(v string)
SetBody sets Body field to given value.
func (o *Notification) GetCreated() time.Time
GetCreated returns the Created field if non-nil, zero value otherwise.
func (o *Notification) GetCreatedOk() (*time.Time, bool)
GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Notification) SetCreated(v time.Time)
SetCreated sets Created field to given value.
func (o *Notification) GetEvent() Event
GetEvent returns the Event field if non-nil, zero value otherwise.
func (o *Notification) GetEventOk() (*Event, bool)
GetEventOk returns a tuple with the Event field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Notification) SetEvent(v Event)
SetEvent sets Event field to given value.
func (o *Notification) HasEvent() bool
HasEvent returns a boolean if a field has been set.
func (o *Notification) GetSeen() bool
GetSeen returns the Seen field if non-nil, zero value otherwise.
func (o *Notification) GetSeenOk() (*bool, bool)
GetSeenOk returns a tuple with the Seen field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Notification) SetSeen(v bool)
SetSeen sets Seen field to given value.
func (o *Notification) HasSeen() bool
HasSeen returns a boolean if a field has been set.