Files
sdk/model_captable_captable_equity_plan_in.go

383 lines
12 KiB
Go

/*
Hanzo Cloud API
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package hanzoai
import (
"encoding/json"
)
// checks if the CaptableCaptableEquityPlanIn type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CaptableCaptableEquityPlanIn{}
// CaptableCaptableEquityPlanIn struct for CaptableCaptableEquityPlanIn
type CaptableCaptableEquityPlanIn struct {
BoardApprovalDate interface{} `json:"boardApprovalDate,omitempty"`
Comments interface{} `json:"comments,omitempty"`
DefaultCancellatonBehavior interface{} `json:"defaultCancellatonBehavior,omitempty"`
InitialSharesReserved interface{} `json:"initialSharesReserved,omitempty"`
Name interface{} `json:"name,omitempty"`
PlanEffectiveDate interface{} `json:"planEffectiveDate,omitempty"`
ShareClassId interface{} `json:"shareClassId,omitempty"`
AdditionalProperties map[string]interface{}
}
type _CaptableCaptableEquityPlanIn CaptableCaptableEquityPlanIn
// NewCaptableCaptableEquityPlanIn instantiates a new CaptableCaptableEquityPlanIn 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 NewCaptableCaptableEquityPlanIn() *CaptableCaptableEquityPlanIn {
this := CaptableCaptableEquityPlanIn{}
return &this
}
// NewCaptableCaptableEquityPlanInWithDefaults instantiates a new CaptableCaptableEquityPlanIn 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 NewCaptableCaptableEquityPlanInWithDefaults() *CaptableCaptableEquityPlanIn {
this := CaptableCaptableEquityPlanIn{}
return &this
}
// GetBoardApprovalDate returns the BoardApprovalDate field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CaptableCaptableEquityPlanIn) GetBoardApprovalDate() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.BoardApprovalDate
}
// GetBoardApprovalDateOk returns a tuple with the BoardApprovalDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *CaptableCaptableEquityPlanIn) GetBoardApprovalDateOk() (*interface{}, bool) {
if o == nil || IsNil(o.BoardApprovalDate) {
return nil, false
}
return &o.BoardApprovalDate, true
}
// HasBoardApprovalDate returns a boolean if a field has been set.
func (o *CaptableCaptableEquityPlanIn) HasBoardApprovalDate() bool {
if o != nil && !IsNil(o.BoardApprovalDate) {
return true
}
return false
}
// SetBoardApprovalDate gets a reference to the given interface{} and assigns it to the BoardApprovalDate field.
func (o *CaptableCaptableEquityPlanIn) SetBoardApprovalDate(v interface{}) {
o.BoardApprovalDate = v
}
// GetComments returns the Comments field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CaptableCaptableEquityPlanIn) GetComments() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.Comments
}
// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *CaptableCaptableEquityPlanIn) GetCommentsOk() (*interface{}, bool) {
if o == nil || IsNil(o.Comments) {
return nil, false
}
return &o.Comments, true
}
// HasComments returns a boolean if a field has been set.
func (o *CaptableCaptableEquityPlanIn) HasComments() bool {
if o != nil && !IsNil(o.Comments) {
return true
}
return false
}
// SetComments gets a reference to the given interface{} and assigns it to the Comments field.
func (o *CaptableCaptableEquityPlanIn) SetComments(v interface{}) {
o.Comments = v
}
// GetDefaultCancellatonBehavior returns the DefaultCancellatonBehavior field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CaptableCaptableEquityPlanIn) GetDefaultCancellatonBehavior() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.DefaultCancellatonBehavior
}
// GetDefaultCancellatonBehaviorOk returns a tuple with the DefaultCancellatonBehavior field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *CaptableCaptableEquityPlanIn) GetDefaultCancellatonBehaviorOk() (*interface{}, bool) {
if o == nil || IsNil(o.DefaultCancellatonBehavior) {
return nil, false
}
return &o.DefaultCancellatonBehavior, true
}
// HasDefaultCancellatonBehavior returns a boolean if a field has been set.
func (o *CaptableCaptableEquityPlanIn) HasDefaultCancellatonBehavior() bool {
if o != nil && !IsNil(o.DefaultCancellatonBehavior) {
return true
}
return false
}
// SetDefaultCancellatonBehavior gets a reference to the given interface{} and assigns it to the DefaultCancellatonBehavior field.
func (o *CaptableCaptableEquityPlanIn) SetDefaultCancellatonBehavior(v interface{}) {
o.DefaultCancellatonBehavior = v
}
// GetInitialSharesReserved returns the InitialSharesReserved field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CaptableCaptableEquityPlanIn) GetInitialSharesReserved() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.InitialSharesReserved
}
// GetInitialSharesReservedOk returns a tuple with the InitialSharesReserved field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *CaptableCaptableEquityPlanIn) GetInitialSharesReservedOk() (*interface{}, bool) {
if o == nil || IsNil(o.InitialSharesReserved) {
return nil, false
}
return &o.InitialSharesReserved, true
}
// HasInitialSharesReserved returns a boolean if a field has been set.
func (o *CaptableCaptableEquityPlanIn) HasInitialSharesReserved() bool {
if o != nil && !IsNil(o.InitialSharesReserved) {
return true
}
return false
}
// SetInitialSharesReserved gets a reference to the given interface{} and assigns it to the InitialSharesReserved field.
func (o *CaptableCaptableEquityPlanIn) SetInitialSharesReserved(v interface{}) {
o.InitialSharesReserved = v
}
// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CaptableCaptableEquityPlanIn) GetName() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *CaptableCaptableEquityPlanIn) GetNameOk() (*interface{}, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
return &o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *CaptableCaptableEquityPlanIn) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given interface{} and assigns it to the Name field.
func (o *CaptableCaptableEquityPlanIn) SetName(v interface{}) {
o.Name = v
}
// GetPlanEffectiveDate returns the PlanEffectiveDate field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CaptableCaptableEquityPlanIn) GetPlanEffectiveDate() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.PlanEffectiveDate
}
// GetPlanEffectiveDateOk returns a tuple with the PlanEffectiveDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *CaptableCaptableEquityPlanIn) GetPlanEffectiveDateOk() (*interface{}, bool) {
if o == nil || IsNil(o.PlanEffectiveDate) {
return nil, false
}
return &o.PlanEffectiveDate, true
}
// HasPlanEffectiveDate returns a boolean if a field has been set.
func (o *CaptableCaptableEquityPlanIn) HasPlanEffectiveDate() bool {
if o != nil && !IsNil(o.PlanEffectiveDate) {
return true
}
return false
}
// SetPlanEffectiveDate gets a reference to the given interface{} and assigns it to the PlanEffectiveDate field.
func (o *CaptableCaptableEquityPlanIn) SetPlanEffectiveDate(v interface{}) {
o.PlanEffectiveDate = v
}
// GetShareClassId returns the ShareClassId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CaptableCaptableEquityPlanIn) GetShareClassId() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.ShareClassId
}
// GetShareClassIdOk returns a tuple with the ShareClassId field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *CaptableCaptableEquityPlanIn) GetShareClassIdOk() (*interface{}, bool) {
if o == nil || IsNil(o.ShareClassId) {
return nil, false
}
return &o.ShareClassId, true
}
// HasShareClassId returns a boolean if a field has been set.
func (o *CaptableCaptableEquityPlanIn) HasShareClassId() bool {
if o != nil && !IsNil(o.ShareClassId) {
return true
}
return false
}
// SetShareClassId gets a reference to the given interface{} and assigns it to the ShareClassId field.
func (o *CaptableCaptableEquityPlanIn) SetShareClassId(v interface{}) {
o.ShareClassId = v
}
func (o CaptableCaptableEquityPlanIn) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o CaptableCaptableEquityPlanIn) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.BoardApprovalDate != nil {
toSerialize["boardApprovalDate"] = o.BoardApprovalDate
}
if o.Comments != nil {
toSerialize["comments"] = o.Comments
}
if o.DefaultCancellatonBehavior != nil {
toSerialize["defaultCancellatonBehavior"] = o.DefaultCancellatonBehavior
}
if o.InitialSharesReserved != nil {
toSerialize["initialSharesReserved"] = o.InitialSharesReserved
}
if o.Name != nil {
toSerialize["name"] = o.Name
}
if o.PlanEffectiveDate != nil {
toSerialize["planEffectiveDate"] = o.PlanEffectiveDate
}
if o.ShareClassId != nil {
toSerialize["shareClassId"] = o.ShareClassId
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *CaptableCaptableEquityPlanIn) UnmarshalJSON(data []byte) (err error) {
varCaptableCaptableEquityPlanIn := _CaptableCaptableEquityPlanIn{}
err = json.Unmarshal(data, &varCaptableCaptableEquityPlanIn)
if err != nil {
return err
}
*o = CaptableCaptableEquityPlanIn(varCaptableCaptableEquityPlanIn)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "boardApprovalDate")
delete(additionalProperties, "comments")
delete(additionalProperties, "defaultCancellatonBehavior")
delete(additionalProperties, "initialSharesReserved")
delete(additionalProperties, "name")
delete(additionalProperties, "planEffectiveDate")
delete(additionalProperties, "shareClassId")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableCaptableCaptableEquityPlanIn struct {
value *CaptableCaptableEquityPlanIn
isSet bool
}
func (v NullableCaptableCaptableEquityPlanIn) Get() *CaptableCaptableEquityPlanIn {
return v.value
}
func (v *NullableCaptableCaptableEquityPlanIn) Set(val *CaptableCaptableEquityPlanIn) {
v.value = val
v.isSet = true
}
func (v NullableCaptableCaptableEquityPlanIn) IsSet() bool {
return v.isSet
}
func (v *NullableCaptableCaptableEquityPlanIn) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCaptableCaptableEquityPlanIn(val *CaptableCaptableEquityPlanIn) *NullableCaptableCaptableEquityPlanIn {
return &NullableCaptableCaptableEquityPlanIn{value: val, isSet: true}
}
func (v NullableCaptableCaptableEquityPlanIn) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableCaptableCaptableEquityPlanIn) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}