Record
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Id | string | Record identifier returned by the store adapter. | |
| Model | string | Model identifier used for this record. | |
| Version | string | Model version used for this record. | |
| Payload | map[string]interface{} | Opaque business payload routed to the IO adapter. |
Methods
NewRecord
func NewRecord(id string, model string, version string, payload map[string]interface{}, ) *Record
NewRecord instantiates a new Record 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
NewRecordWithDefaults
func NewRecordWithDefaults() *Record
NewRecordWithDefaults instantiates a new Record 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
GetId
func (o *Record) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
GetIdOk
func (o *Record) GetIdOk() (*string, 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.
SetId
func (o *Record) SetId(v string)
SetId sets Id field to given value.
GetModel
func (o *Record) GetModel() string
GetModel returns the Model field if non-nil, zero value otherwise.
GetModelOk
func (o *Record) GetModelOk() (*string, bool)
GetModelOk returns a tuple with the Model field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetModel
func (o *Record) SetModel(v string)
SetModel sets Model field to given value.
GetVersion
func (o *Record) GetVersion() string
GetVersion returns the Version field if non-nil, zero value otherwise.
GetVersionOk
func (o *Record) GetVersionOk() (*string, bool)
GetVersionOk returns a tuple with the Version field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetVersion
func (o *Record) SetVersion(v string)
SetVersion sets Version field to given value.
GetPayload
func (o *Record) GetPayload() map[string]interface{}
GetPayload returns the Payload field if non-nil, zero value otherwise.
GetPayloadOk
func (o *Record) GetPayloadOk() (*map[string]interface{}, bool)
GetPayloadOk returns a tuple with the Payload field if it’s non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPayload
func (o *Record) SetPayload(v map[string]interface{})
SetPayload sets Payload field to given value.