Name | Type | Description | Notes |
---|---|---|---|
Unit | Pointer to string | Validity unit | [optional] |
Duration | Pointer to int32 | Number of validity unit | [optional] |
func NewValidity() *Validity
NewValidity instantiates a new Validity 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 NewValidityWithDefaults() *Validity
NewValidityWithDefaults instantiates a new Validity 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 *Validity) GetUnit() string
GetUnit returns the Unit field if non-nil, zero value otherwise.
func (o *Validity) GetUnitOk() (*string, bool)
GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Validity) SetUnit(v string)
SetUnit sets Unit field to given value.
func (o *Validity) HasUnit() bool
HasUnit returns a boolean if a field has been set.
func (o *Validity) GetDuration() int32
GetDuration returns the Duration field if non-nil, zero value otherwise.
func (o *Validity) GetDurationOk() (*int32, bool)
GetDurationOk returns a tuple with the Duration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Validity) SetDuration(v int32)
SetDuration sets Duration field to given value.
func (o *Validity) HasDuration() bool
HasDuration returns a boolean if a field has been set.