7.7 KiB
MarketingAudience
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| CreatedAt | Pointer to int64 | CreatedAt is unix seconds when the filter was saved, server-assigned. | [optional] |
| Event | Pointer to string | Event is the analytics event a member must have fired. EMPTY MEANS NO FILTER: the audience is then every mailable customer in the org, and no warehouse is consulted. | [optional] |
| Id | Pointer to string | ID is the server-assigned audience id ("aud_" + 128 random bits). | [optional] |
| Kind | Pointer to string | Kind is what the audience is: cohort, a saved filter over the org's customers and their events; list, a mailing list's subscribed members; or segment, a saved filter over one list. Server-assigned; a create is a cohort. | [optional] |
| List | Pointer to string | List is the list a list or a segment audience belongs to. | [optional] |
| Name | Pointer to string | Name is the audience's label. Required, trimmed, capped at 1024 bytes. | [optional] |
| Subscribed | Pointer to int64 | Subscribed is how many subscribed members a list audience has, from the list's kept counts. | [optional] |
| UpdatedAt | Pointer to int64 | UpdatedAt is unix seconds of the last write, server-assigned, and the key the audience list is ordered by (newest first). A saved audience has no update route, so in practice it stays equal to CreatedAt: to change a filter you save another one. | [optional] |
| WindowDays | Pointer to int64 | WindowDays is how far back the event counts, ending now. 0 means 30 and nothing above 3650 is honoured. Ignored when Event is empty. | [optional] |
Methods
NewMarketingAudience
func NewMarketingAudience() *MarketingAudience
NewMarketingAudience instantiates a new MarketingAudience 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
NewMarketingAudienceWithDefaults
func NewMarketingAudienceWithDefaults() *MarketingAudience
NewMarketingAudienceWithDefaults instantiates a new MarketingAudience 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
GetCreatedAt
func (o *MarketingAudience) GetCreatedAt() int64
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
GetCreatedAtOk
func (o *MarketingAudience) GetCreatedAtOk() (*int64, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCreatedAt
func (o *MarketingAudience) SetCreatedAt(v int64)
SetCreatedAt sets CreatedAt field to given value.
HasCreatedAt
func (o *MarketingAudience) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
GetEvent
func (o *MarketingAudience) GetEvent() string
GetEvent returns the Event field if non-nil, zero value otherwise.
GetEventOk
func (o *MarketingAudience) GetEventOk() (*string, bool)
GetEventOk returns a tuple with the Event field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetEvent
func (o *MarketingAudience) SetEvent(v string)
SetEvent sets Event field to given value.
HasEvent
func (o *MarketingAudience) HasEvent() bool
HasEvent returns a boolean if a field has been set.
GetId
func (o *MarketingAudience) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
GetIdOk
func (o *MarketingAudience) 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 *MarketingAudience) SetId(v string)
SetId sets Id field to given value.
HasId
func (o *MarketingAudience) HasId() bool
HasId returns a boolean if a field has been set.
GetKind
func (o *MarketingAudience) GetKind() string
GetKind returns the Kind field if non-nil, zero value otherwise.
GetKindOk
func (o *MarketingAudience) GetKindOk() (*string, bool)
GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetKind
func (o *MarketingAudience) SetKind(v string)
SetKind sets Kind field to given value.
HasKind
func (o *MarketingAudience) HasKind() bool
HasKind returns a boolean if a field has been set.
GetList
func (o *MarketingAudience) GetList() string
GetList returns the List field if non-nil, zero value otherwise.
GetListOk
func (o *MarketingAudience) GetListOk() (*string, bool)
GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetList
func (o *MarketingAudience) SetList(v string)
SetList sets List field to given value.
HasList
func (o *MarketingAudience) HasList() bool
HasList returns a boolean if a field has been set.
GetName
func (o *MarketingAudience) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
GetNameOk
func (o *MarketingAudience) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetName
func (o *MarketingAudience) SetName(v string)
SetName sets Name field to given value.
HasName
func (o *MarketingAudience) HasName() bool
HasName returns a boolean if a field has been set.
GetSubscribed
func (o *MarketingAudience) GetSubscribed() int64
GetSubscribed returns the Subscribed field if non-nil, zero value otherwise.
GetSubscribedOk
func (o *MarketingAudience) GetSubscribedOk() (*int64, bool)
GetSubscribedOk returns a tuple with the Subscribed field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSubscribed
func (o *MarketingAudience) SetSubscribed(v int64)
SetSubscribed sets Subscribed field to given value.
HasSubscribed
func (o *MarketingAudience) HasSubscribed() bool
HasSubscribed returns a boolean if a field has been set.
GetUpdatedAt
func (o *MarketingAudience) GetUpdatedAt() int64
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
GetUpdatedAtOk
func (o *MarketingAudience) GetUpdatedAtOk() (*int64, bool)
GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetUpdatedAt
func (o *MarketingAudience) SetUpdatedAt(v int64)
SetUpdatedAt sets UpdatedAt field to given value.
HasUpdatedAt
func (o *MarketingAudience) HasUpdatedAt() bool
HasUpdatedAt returns a boolean if a field has been set.
GetWindowDays
func (o *MarketingAudience) GetWindowDays() int64
GetWindowDays returns the WindowDays field if non-nil, zero value otherwise.
GetWindowDaysOk
func (o *MarketingAudience) GetWindowDaysOk() (*int64, bool)
GetWindowDaysOk returns a tuple with the WindowDays field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetWindowDays
func (o *MarketingAudience) SetWindowDays(v int64)
SetWindowDays sets WindowDays field to given value.
HasWindowDays
func (o *MarketingAudience) HasWindowDays() bool
HasWindowDays returns a boolean if a field has been set.