Name | Type | Description | Notes |
---|---|---|---|
Id | Pointer to NullableInt32 | The internal Id of widget type | [optional] [readonly] |
Name | string | The unique name for this widget type | |
Custom | Pointer to bool | Is this a customer created type or not | [optional] [default to true] |
Translation | NullableTranslation | ||
Icon | Pointer to NullableString | Icon name corresponding to assets used in this widget | [optional] |
WithAlarm | Pointer to NullableBool | Show alarms in widget | [optional] [default to false] |
WithTimespan | Pointer to NullableBool | Show selection for timespan in widget | [optional] [default to false] |
Elements | []WidgetTypeElement | A list of elements for this widget (order matches the order of elements for this type) |
func NewWidgetType(name string, translation NullableTranslation, elements []WidgetTypeElement, ) *WidgetType
NewWidgetType instantiates a new WidgetType 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 NewWidgetTypeWithDefaults() *WidgetType
NewWidgetTypeWithDefaults instantiates a new WidgetType 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 *WidgetType) GetId() int32
GetId returns the Id field if non-nil, zero value otherwise.
func (o *WidgetType) GetIdOk() (*int32, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *WidgetType) SetId(v int32)
SetId sets Id field to given value.
func (o *WidgetType) HasId() bool
HasId returns a boolean if a field has been set.
func (o *WidgetType) SetIdNil(b bool)
SetIdNil sets the value for Id to be an explicit nil
func (o *WidgetType) UnsetId()
UnsetId ensures that no value is present for Id, not even an explicit nil
func (o *WidgetType) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *WidgetType) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *WidgetType) SetName(v string)
SetName sets Name field to given value.
func (o *WidgetType) GetCustom() bool
GetCustom returns the Custom field if non-nil, zero value otherwise.
func (o *WidgetType) GetCustomOk() (*bool, bool)
GetCustomOk returns a tuple with the Custom field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *WidgetType) SetCustom(v bool)
SetCustom sets Custom field to given value.
func (o *WidgetType) HasCustom() bool
HasCustom returns a boolean if a field has been set.
func (o *WidgetType) GetTranslation() Translation
GetTranslation returns the Translation field if non-nil, zero value otherwise.
func (o *WidgetType) GetTranslationOk() (*Translation, bool)
GetTranslationOk returns a tuple with the Translation field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *WidgetType) SetTranslation(v Translation)
SetTranslation sets Translation field to given value.
func (o *WidgetType) SetTranslationNil(b bool)
SetTranslationNil sets the value for Translation to be an explicit nil
func (o *WidgetType) UnsetTranslation()
UnsetTranslation ensures that no value is present for Translation, not even an explicit nil
func (o *WidgetType) GetIcon() string
GetIcon returns the Icon field if non-nil, zero value otherwise.
func (o *WidgetType) GetIconOk() (*string, bool)
GetIconOk returns a tuple with the Icon field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *WidgetType) SetIcon(v string)
SetIcon sets Icon field to given value.
func (o *WidgetType) HasIcon() bool
HasIcon returns a boolean if a field has been set.
func (o *WidgetType) SetIconNil(b bool)
SetIconNil sets the value for Icon to be an explicit nil
func (o *WidgetType) UnsetIcon()
UnsetIcon ensures that no value is present for Icon, not even an explicit nil
func (o *WidgetType) GetWithAlarm() bool
GetWithAlarm returns the WithAlarm field if non-nil, zero value otherwise.
func (o *WidgetType) GetWithAlarmOk() (*bool, bool)
GetWithAlarmOk returns a tuple with the WithAlarm field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *WidgetType) SetWithAlarm(v bool)
SetWithAlarm sets WithAlarm field to given value.
func (o *WidgetType) HasWithAlarm() bool
HasWithAlarm returns a boolean if a field has been set.
func (o *WidgetType) SetWithAlarmNil(b bool)
SetWithAlarmNil sets the value for WithAlarm to be an explicit nil
func (o *WidgetType) UnsetWithAlarm()
UnsetWithAlarm ensures that no value is present for WithAlarm, not even an explicit nil
func (o *WidgetType) GetWithTimespan() bool
GetWithTimespan returns the WithTimespan field if non-nil, zero value otherwise.
func (o *WidgetType) GetWithTimespanOk() (*bool, bool)
GetWithTimespanOk returns a tuple with the WithTimespan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *WidgetType) SetWithTimespan(v bool)
SetWithTimespan sets WithTimespan field to given value.
func (o *WidgetType) HasWithTimespan() bool
HasWithTimespan returns a boolean if a field has been set.
func (o *WidgetType) SetWithTimespanNil(b bool)
SetWithTimespanNil sets the value for WithTimespan to be an explicit nil
func (o *WidgetType) UnsetWithTimespan()
UnsetWithTimespan ensures that no value is present for WithTimespan, not even an explicit nil
func (o *WidgetType) GetElements() []WidgetTypeElement
GetElements returns the Elements field if non-nil, zero value otherwise.
func (o *WidgetType) GetElementsOk() (*[]WidgetTypeElement, bool)
GetElementsOk returns a tuple with the Elements field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *WidgetType) SetElements(v []WidgetTypeElement)
SetElements sets Elements field to given value.