Skip to content

Latest commit

 

History

History
239 lines (128 loc) · 7.13 KB

CampaignTemplate.md

File metadata and controls

239 lines (128 loc) · 7.13 KB

CampaignTemplate

Properties

Name Type Description Notes
Id Pointer to string Id of the campaign template [optional]
Name string This template's name. Has no bearing on generated campaigns' names.
Description string This template's description. Has no bearing on generated campaigns' descriptions.
Created time.Time Creation date of Campaign Template [readonly]
Modified time.Time Modification date of Campaign Template [readonly]
Scheduled Pointer to bool Indicates if this campaign template has been scheduled. [optional] [readonly] [default to false]
OwnerRef Pointer to CampaignTemplateOwnerRef [optional]
DeadlineDuration Pointer to string The time period during which the campaign should be completed, formatted as an ISO-8601 Duration. When this template generates a campaign, the campaign's deadline will be the current date plus this duration. For example, if generation occurred on 2020-01-01 and this field was "P2W" (two weeks), the resulting campaign's deadline would be 2020-01-15 (the current date plus 14 days). [optional]
Campaign Campaign This will hold campaign related information like name, description etc.

Methods

NewCampaignTemplate

func NewCampaignTemplate(name string, description string, created time.Time, modified time.Time, campaign Campaign, ) *CampaignTemplate

NewCampaignTemplate instantiates a new CampaignTemplate 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

NewCampaignTemplateWithDefaults

func NewCampaignTemplateWithDefaults() *CampaignTemplate

NewCampaignTemplateWithDefaults instantiates a new CampaignTemplate 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 *CampaignTemplate) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *CampaignTemplate) 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 *CampaignTemplate) SetId(v string)

SetId sets Id field to given value.

HasId

func (o *CampaignTemplate) HasId() bool

HasId returns a boolean if a field has been set.

GetName

func (o *CampaignTemplate) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *CampaignTemplate) 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 *CampaignTemplate) SetName(v string)

SetName sets Name field to given value.

GetDescription

func (o *CampaignTemplate) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

GetDescriptionOk

func (o *CampaignTemplate) GetDescriptionOk() (*string, bool)

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

SetDescription

func (o *CampaignTemplate) SetDescription(v string)

SetDescription sets Description field to given value.

GetCreated

func (o *CampaignTemplate) GetCreated() time.Time

GetCreated returns the Created field if non-nil, zero value otherwise.

GetCreatedOk

func (o *CampaignTemplate) GetCreatedOk() (*time.Time, bool)

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

SetCreated

func (o *CampaignTemplate) SetCreated(v time.Time)

SetCreated sets Created field to given value.

GetModified

func (o *CampaignTemplate) GetModified() time.Time

GetModified returns the Modified field if non-nil, zero value otherwise.

GetModifiedOk

func (o *CampaignTemplate) GetModifiedOk() (*time.Time, bool)

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

SetModified

func (o *CampaignTemplate) SetModified(v time.Time)

SetModified sets Modified field to given value.

GetScheduled

func (o *CampaignTemplate) GetScheduled() bool

GetScheduled returns the Scheduled field if non-nil, zero value otherwise.

GetScheduledOk

func (o *CampaignTemplate) GetScheduledOk() (*bool, bool)

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

SetScheduled

func (o *CampaignTemplate) SetScheduled(v bool)

SetScheduled sets Scheduled field to given value.

HasScheduled

func (o *CampaignTemplate) HasScheduled() bool

HasScheduled returns a boolean if a field has been set.

GetOwnerRef

func (o *CampaignTemplate) GetOwnerRef() CampaignTemplateOwnerRef

GetOwnerRef returns the OwnerRef field if non-nil, zero value otherwise.

GetOwnerRefOk

func (o *CampaignTemplate) GetOwnerRefOk() (*CampaignTemplateOwnerRef, bool)

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

SetOwnerRef

func (o *CampaignTemplate) SetOwnerRef(v CampaignTemplateOwnerRef)

SetOwnerRef sets OwnerRef field to given value.

HasOwnerRef

func (o *CampaignTemplate) HasOwnerRef() bool

HasOwnerRef returns a boolean if a field has been set.

GetDeadlineDuration

func (o *CampaignTemplate) GetDeadlineDuration() string

GetDeadlineDuration returns the DeadlineDuration field if non-nil, zero value otherwise.

GetDeadlineDurationOk

func (o *CampaignTemplate) GetDeadlineDurationOk() (*string, bool)

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

SetDeadlineDuration

func (o *CampaignTemplate) SetDeadlineDuration(v string)

SetDeadlineDuration sets DeadlineDuration field to given value.

HasDeadlineDuration

func (o *CampaignTemplate) HasDeadlineDuration() bool

HasDeadlineDuration returns a boolean if a field has been set.

GetCampaign

func (o *CampaignTemplate) GetCampaign() Campaign

GetCampaign returns the Campaign field if non-nil, zero value otherwise.

GetCampaignOk

func (o *CampaignTemplate) GetCampaignOk() (*Campaign, bool)

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

SetCampaign

func (o *CampaignTemplate) SetCampaign(v Campaign)

SetCampaign sets Campaign field to given value.

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