Name | Type | Description | Notes |
---|---|---|---|
Id | int32 | [readonly] | |
Url | string | [readonly] | |
Display | string | [readonly] | |
DeviceType | Pointer to NullableNestedDeviceType | [optional] | |
ModuleType | Pointer to NullableNestedModuleType | [optional] | |
Name | string | {module} is accepted as a substitution for the module bay position when attached to a module type. | |
Label | Pointer to string | Physical label | [optional] |
Type | Pointer to NullableCableLengthUnit | [optional] | |
MaximumDraw | Pointer to NullableInt32 | Maximum power draw (watts) | [optional] |
AllocatedDraw | Pointer to NullableInt32 | Allocated power draw (watts) | [optional] |
Description | Pointer to string | [optional] | |
Created | NullableTime | [readonly] | |
LastUpdated | NullableTime | [readonly] |
func NewPowerPortTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *PowerPortTemplate
NewPowerPortTemplate instantiates a new PowerPortTemplate 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 NewPowerPortTemplateWithDefaults() *PowerPortTemplate
NewPowerPortTemplateWithDefaults instantiates a new PowerPortTemplate 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 *PowerPortTemplate) GetId() int32
GetId returns the Id field if non-nil, zero value otherwise.
func (o *PowerPortTemplate) 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 *PowerPortTemplate) SetId(v int32)
SetId sets Id field to given value.
func (o *PowerPortTemplate) GetUrl() string
GetUrl returns the Url field if non-nil, zero value otherwise.
func (o *PowerPortTemplate) GetUrlOk() (*string, bool)
GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPortTemplate) SetUrl(v string)
SetUrl sets Url field to given value.
func (o *PowerPortTemplate) GetDisplay() string
GetDisplay returns the Display field if non-nil, zero value otherwise.
func (o *PowerPortTemplate) GetDisplayOk() (*string, bool)
GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPortTemplate) SetDisplay(v string)
SetDisplay sets Display field to given value.
func (o *PowerPortTemplate) GetDeviceType() NestedDeviceType
GetDeviceType returns the DeviceType field if non-nil, zero value otherwise.
func (o *PowerPortTemplate) GetDeviceTypeOk() (*NestedDeviceType, bool)
GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPortTemplate) SetDeviceType(v NestedDeviceType)
SetDeviceType sets DeviceType field to given value.
func (o *PowerPortTemplate) HasDeviceType() bool
HasDeviceType returns a boolean if a field has been set.
func (o *PowerPortTemplate) SetDeviceTypeNil(b bool)
SetDeviceTypeNil sets the value for DeviceType to be an explicit nil
func (o *PowerPortTemplate) UnsetDeviceType()
UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil
func (o *PowerPortTemplate) GetModuleType() NestedModuleType
GetModuleType returns the ModuleType field if non-nil, zero value otherwise.
func (o *PowerPortTemplate) GetModuleTypeOk() (*NestedModuleType, bool)
GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPortTemplate) SetModuleType(v NestedModuleType)
SetModuleType sets ModuleType field to given value.
func (o *PowerPortTemplate) HasModuleType() bool
HasModuleType returns a boolean if a field has been set.
func (o *PowerPortTemplate) SetModuleTypeNil(b bool)
SetModuleTypeNil sets the value for ModuleType to be an explicit nil
func (o *PowerPortTemplate) UnsetModuleType()
UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil
func (o *PowerPortTemplate) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *PowerPortTemplate) 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 *PowerPortTemplate) SetName(v string)
SetName sets Name field to given value.
func (o *PowerPortTemplate) GetLabel() string
GetLabel returns the Label field if non-nil, zero value otherwise.
func (o *PowerPortTemplate) GetLabelOk() (*string, bool)
GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPortTemplate) SetLabel(v string)
SetLabel sets Label field to given value.
func (o *PowerPortTemplate) HasLabel() bool
HasLabel returns a boolean if a field has been set.
func (o *PowerPortTemplate) GetType() CableLengthUnit
GetType returns the Type field if non-nil, zero value otherwise.
func (o *PowerPortTemplate) GetTypeOk() (*CableLengthUnit, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPortTemplate) SetType(v CableLengthUnit)
SetType sets Type field to given value.
func (o *PowerPortTemplate) HasType() bool
HasType returns a boolean if a field has been set.
func (o *PowerPortTemplate) SetTypeNil(b bool)
SetTypeNil sets the value for Type to be an explicit nil
func (o *PowerPortTemplate) UnsetType()
UnsetType ensures that no value is present for Type, not even an explicit nil
func (o *PowerPortTemplate) GetMaximumDraw() int32
GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise.
func (o *PowerPortTemplate) GetMaximumDrawOk() (*int32, bool)
GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPortTemplate) SetMaximumDraw(v int32)
SetMaximumDraw sets MaximumDraw field to given value.
func (o *PowerPortTemplate) HasMaximumDraw() bool
HasMaximumDraw returns a boolean if a field has been set.
func (o *PowerPortTemplate) SetMaximumDrawNil(b bool)
SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil
func (o *PowerPortTemplate) UnsetMaximumDraw()
UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil
func (o *PowerPortTemplate) GetAllocatedDraw() int32
GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise.
func (o *PowerPortTemplate) GetAllocatedDrawOk() (*int32, bool)
GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPortTemplate) SetAllocatedDraw(v int32)
SetAllocatedDraw sets AllocatedDraw field to given value.
func (o *PowerPortTemplate) HasAllocatedDraw() bool
HasAllocatedDraw returns a boolean if a field has been set.
func (o *PowerPortTemplate) SetAllocatedDrawNil(b bool)
SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil
func (o *PowerPortTemplate) UnsetAllocatedDraw()
UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil
func (o *PowerPortTemplate) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *PowerPortTemplate) GetDescriptionOk() (*string, bool)
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPortTemplate) SetDescription(v string)
SetDescription sets Description field to given value.
func (o *PowerPortTemplate) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *PowerPortTemplate) GetCreated() time.Time
GetCreated returns the Created field if non-nil, zero value otherwise.
func (o *PowerPortTemplate) 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 *PowerPortTemplate) SetCreated(v time.Time)
SetCreated sets Created field to given value.
func (o *PowerPortTemplate) SetCreatedNil(b bool)
SetCreatedNil sets the value for Created to be an explicit nil
func (o *PowerPortTemplate) UnsetCreated()
UnsetCreated ensures that no value is present for Created, not even an explicit nil
func (o *PowerPortTemplate) GetLastUpdated() time.Time
GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise.
func (o *PowerPortTemplate) GetLastUpdatedOk() (*time.Time, bool)
GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *PowerPortTemplate) SetLastUpdated(v time.Time)
SetLastUpdated sets LastUpdated field to given value.
func (o *PowerPortTemplate) SetLastUpdatedNil(b bool)
SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *PowerPortTemplate) UnsetLastUpdated()
UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil