peridot/vendor/openapi.peridot.resf.org/peridotopenapi/model_v1_batch_filter.go

120 lines
2.9 KiB
Go

/*
* peridot/proto/v1/batch.proto
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: version not set
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package peridotopenapi
import (
"encoding/json"
)
// V1BatchFilter struct for V1BatchFilter
type V1BatchFilter struct {
Status *V1TaskStatus `json:"status,omitempty"`
}
// NewV1BatchFilter instantiates a new V1BatchFilter 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 NewV1BatchFilter() *V1BatchFilter {
this := V1BatchFilter{}
var status V1TaskStatus = UNSPECIFIED
this.Status = &status
return &this
}
// NewV1BatchFilterWithDefaults instantiates a new V1BatchFilter 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 NewV1BatchFilterWithDefaults() *V1BatchFilter {
this := V1BatchFilter{}
var status V1TaskStatus = UNSPECIFIED
this.Status = &status
return &this
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *V1BatchFilter) GetStatus() V1TaskStatus {
if o == nil || o.Status == nil {
var ret V1TaskStatus
return ret
}
return *o.Status
}
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *V1BatchFilter) GetStatusOk() (*V1TaskStatus, bool) {
if o == nil || o.Status == nil {
return nil, false
}
return o.Status, true
}
// HasStatus returns a boolean if a field has been set.
func (o *V1BatchFilter) HasStatus() bool {
if o != nil && o.Status != nil {
return true
}
return false
}
// SetStatus gets a reference to the given V1TaskStatus and assigns it to the Status field.
func (o *V1BatchFilter) SetStatus(v V1TaskStatus) {
o.Status = &v
}
func (o V1BatchFilter) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Status != nil {
toSerialize["status"] = o.Status
}
return json.Marshal(toSerialize)
}
type NullableV1BatchFilter struct {
value *V1BatchFilter
isSet bool
}
func (v NullableV1BatchFilter) Get() *V1BatchFilter {
return v.value
}
func (v *NullableV1BatchFilter) Set(val *V1BatchFilter) {
v.value = val
v.isSet = true
}
func (v NullableV1BatchFilter) IsSet() bool {
return v.isSet
}
func (v *NullableV1BatchFilter) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableV1BatchFilter(val *V1BatchFilter) *NullableV1BatchFilter {
return &NullableV1BatchFilter{value: val, isSet: true}
}
func (v NullableV1BatchFilter) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableV1BatchFilter) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}