GoodMem
ReferenceClient SDKsGoModels

JsonMemoryCreationContentRequirement Model

JsonMemoryCreationContentRequirement Model documentation for Go SDK

Properties

NameTypeDescriptionNotes
OriginalContentstringOriginal content as plain text
OriginalContentB64stringOriginal content as base64-encoded binary

Methods

NewJsonMemoryCreationContentRequirement

func NewJsonMemoryCreationContentRequirement(originalContent interface{}, originalContentB64 interface{}, ) *JsonMemoryCreationContentRequirement

NewJsonMemoryCreationContentRequirement instantiates a new JsonMemoryCreationContentRequirement 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

NewJsonMemoryCreationContentRequirementWithDefaults

func NewJsonMemoryCreationContentRequirementWithDefaults() *JsonMemoryCreationContentRequirement

NewJsonMemoryCreationContentRequirementWithDefaults instantiates a new JsonMemoryCreationContentRequirement 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

GetOriginalContent

func (o *JsonMemoryCreationContentRequirement) GetOriginalContent() interface{}

GetOriginalContent returns the OriginalContent field if non-nil, zero value otherwise.

GetOriginalContentOk

func (o *JsonMemoryCreationContentRequirement) GetOriginalContentOk() (*interface{}, bool)

GetOriginalContentOk returns a tuple with the OriginalContent field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetOriginalContent

func (o *JsonMemoryCreationContentRequirement) SetOriginalContent(v interface{})

SetOriginalContent sets OriginalContent field to given value.

SetOriginalContentNil

func (o *JsonMemoryCreationContentRequirement) SetOriginalContentNil(b bool)

SetOriginalContentNil sets the value for OriginalContent to be an explicit nil

UnsetOriginalContent

func (o *JsonMemoryCreationContentRequirement) UnsetOriginalContent()

UnsetOriginalContent ensures that no value is present for OriginalContent, not even an explicit nil

GetOriginalContentB64

func (o *JsonMemoryCreationContentRequirement) GetOriginalContentB64() interface{}

GetOriginalContentB64 returns the OriginalContentB64 field if non-nil, zero value otherwise.

GetOriginalContentB64Ok

func (o *JsonMemoryCreationContentRequirement) GetOriginalContentB64Ok() (*interface{}, bool)

GetOriginalContentB64Ok returns a tuple with the OriginalContentB64 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetOriginalContentB64

func (o *JsonMemoryCreationContentRequirement) SetOriginalContentB64(v interface{})

SetOriginalContentB64 sets OriginalContentB64 field to given value.

SetOriginalContentB64Nil

func (o *JsonMemoryCreationContentRequirement) SetOriginalContentB64Nil(b bool)

SetOriginalContentB64Nil sets the value for OriginalContentB64 to be an explicit nil

UnsetOriginalContentB64

func (o *JsonMemoryCreationContentRequirement) UnsetOriginalContentB64()

UnsetOriginalContentB64 ensures that no value is present for OriginalContentB64, not even an explicit nil

Usage Example

import goodmem "github.com/PAIR-Systems-Inc/goodmem/clients/go"

// Text content
req := goodmem.NewJsonMemoryCreationRequest(spaceId, "text content", nil, "text/plain")

// Binary content (base64)
req := goodmem.NewJsonMemoryCreationRequest(spaceId, nil, pdfBase64, "application/pdf")