Files
sdk/docs/PubsubBusPublish.md

3.3 KiB

PubsubBusPublish

Properties

Name Type Description Notes
Data Pointer to string Data is the payload, carried verbatim as UTF-8 text (typically JSON). Binary payloads belong on the NATS port. [optional]
Headers Pointer to map[string]string Headers are optional message headers, one value per name. A Nats-Msg-Id header is JetStream's deduplication key: a repeat within the stream's dedup window is acknowledged as duplicate rather than stored twice. [optional]
Subject Pointer to string Subject is the subject to publish to, in the org's own namespace — e.g. orders.created. No wildcards. [optional]

Methods

NewPubsubBusPublish

func NewPubsubBusPublish() *PubsubBusPublish

NewPubsubBusPublish instantiates a new PubsubBusPublish 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

NewPubsubBusPublishWithDefaults

func NewPubsubBusPublishWithDefaults() *PubsubBusPublish

NewPubsubBusPublishWithDefaults instantiates a new PubsubBusPublish 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

GetData

func (o *PubsubBusPublish) GetData() string

GetData returns the Data field if non-nil, zero value otherwise.

GetDataOk

func (o *PubsubBusPublish) GetDataOk() (*string, bool)

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

SetData

func (o *PubsubBusPublish) SetData(v string)

SetData sets Data field to given value.

HasData

func (o *PubsubBusPublish) HasData() bool

HasData returns a boolean if a field has been set.

GetHeaders

func (o *PubsubBusPublish) GetHeaders() map[string]string

GetHeaders returns the Headers field if non-nil, zero value otherwise.

GetHeadersOk

func (o *PubsubBusPublish) GetHeadersOk() (*map[string]string, bool)

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

SetHeaders

func (o *PubsubBusPublish) SetHeaders(v map[string]string)

SetHeaders sets Headers field to given value.

HasHeaders

func (o *PubsubBusPublish) HasHeaders() bool

HasHeaders returns a boolean if a field has been set.

GetSubject

func (o *PubsubBusPublish) GetSubject() string

GetSubject returns the Subject field if non-nil, zero value otherwise.

GetSubjectOk

func (o *PubsubBusPublish) GetSubjectOk() (*string, bool)

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

SetSubject

func (o *PubsubBusPublish) SetSubject(v string)

SetSubject sets Subject field to given value.

HasSubject

func (o *PubsubBusPublish) HasSubject() bool

HasSubject returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]