/* Flowpipe Flowpipe is workflow and pipelines for DevSecOps. API version: 0.1.0 Contact: [email protected] */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package flowpipeapi import ( "encoding/json" ) // checks if the ModconfigStepForEach type satisfies the MappedNullable interface at compile time var _ MappedNullable = &ModconfigStepForEach{} // ModconfigStepForEach struct for ModconfigStepForEach type ModconfigStepForEach struct { ForEachStep *bool `json:"for_each_step,omitempty"` Key string `json:"key"` Output *ModconfigOutput `json:"output,omitempty"` TotalCount int32 `json:"total_count"` } func (o ModconfigStepForEach) GetResourceType() string { return "ModconfigStepForEach" } // NewModconfigStepForEach instantiates a new ModconfigStepForEach 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 NewModconfigStepForEach(key string, totalCount int32) *ModconfigStepForEach { this := ModconfigStepForEach{} this.Key = key this.TotalCount = totalCount return &this } // NewModconfigStepForEachWithDefaults instantiates a new ModconfigStepForEach 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 NewModconfigStepForEachWithDefaults() *ModconfigStepForEach { this := ModconfigStepForEach{} return &this } // GetForEachStep returns the ForEachStep field value if set, zero value otherwise. func (o *ModconfigStepForEach) GetForEachStep() bool { if o == nil || IsNil(o.ForEachStep) { var ret bool return ret } return *o.ForEachStep } // GetForEachStepOk returns a tuple with the ForEachStep field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ModconfigStepForEach) GetForEachStepOk() (*bool, bool) { if o == nil || IsNil(o.ForEachStep) { return nil, false } return o.ForEachStep, true } // HasForEachStep returns a boolean if a field has been set. func (o *ModconfigStepForEach) HasForEachStep() bool { if o != nil && !IsNil(o.ForEachStep) { return true } return false } // SetForEachStep gets a reference to the given bool and assigns it to the ForEachStep field. func (o *ModconfigStepForEach) SetForEachStep(v bool) { o.ForEachStep = &v } // GetKey returns the Key field value func (o *ModconfigStepForEach) GetKey() string { if o == nil { var ret string return ret } return o.Key } // GetKeyOk returns a tuple with the Key field value // and a boolean to check if the value has been set. func (o *ModconfigStepForEach) GetKeyOk() (*string, bool) { if o == nil { return nil, false } return &o.Key, true } // SetKey sets field value func (o *ModconfigStepForEach) SetKey(v string) { o.Key = v } // GetOutput returns the Output field value if set, zero value otherwise. func (o *ModconfigStepForEach) GetOutput() ModconfigOutput { if o == nil || IsNil(o.Output) { var ret ModconfigOutput return ret } return *o.Output } // GetOutputOk returns a tuple with the Output field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ModconfigStepForEach) GetOutputOk() (*ModconfigOutput, bool) { if o == nil || IsNil(o.Output) { return nil, false } return o.Output, true } // HasOutput returns a boolean if a field has been set. func (o *ModconfigStepForEach) HasOutput() bool { if o != nil && !IsNil(o.Output) { return true } return false } // SetOutput gets a reference to the given ModconfigOutput and assigns it to the Output field. func (o *ModconfigStepForEach) SetOutput(v ModconfigOutput) { o.Output = &v } // GetTotalCount returns the TotalCount field value func (o *ModconfigStepForEach) GetTotalCount() int32 { if o == nil { var ret int32 return ret } return o.TotalCount } // GetTotalCountOk returns a tuple with the TotalCount field value // and a boolean to check if the value has been set. func (o *ModconfigStepForEach) GetTotalCountOk() (*int32, bool) { if o == nil { return nil, false } return &o.TotalCount, true } // SetTotalCount sets field value func (o *ModconfigStepForEach) SetTotalCount(v int32) { o.TotalCount = v } func (o ModconfigStepForEach) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o ModconfigStepForEach) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.ForEachStep) { toSerialize["for_each_step"] = o.ForEachStep } toSerialize["key"] = o.Key if !IsNil(o.Output) { toSerialize["output"] = o.Output } toSerialize["total_count"] = o.TotalCount return toSerialize, nil } type NullableModconfigStepForEach struct { value *ModconfigStepForEach isSet bool } func (v NullableModconfigStepForEach) Get() *ModconfigStepForEach { return v.value } func (v *NullableModconfigStepForEach) Set(val *ModconfigStepForEach) { v.value = val v.isSet = true } func (v NullableModconfigStepForEach) IsSet() bool { return v.isSet } func (v *NullableModconfigStepForEach) Unset() { v.value = nil v.isSet = false } func NewNullableModconfigStepForEach(val *ModconfigStepForEach) *NullableModconfigStepForEach { return &NullableModconfigStepForEach{value: val, isSet: true} } func (v NullableModconfigStepForEach) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableModconfigStepForEach) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }