// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package shared

type SourcePlausibleUpdate struct {
	// Plausible API Key. See the <a href="https://plausible.io/docs/stats-api">docs</a> for information on how to generate this key.
	APIKey string `json:"api_key"`
	// The API URL of your plausible instance. Change this if you self-host plausible. The default is https://plausible.io/api/v1/stats
	APIURL *string `json:"api_url,omitempty"`
	// The domain of the site you want to retrieve data for. Enter the name of your site as configured on Plausible, i.e., excluding "https://" and "www". Can be retrieved from the 'domain' field in your Plausible site settings.
	SiteID string `json:"site_id"`
	// Start date for data to retrieve, in ISO-8601 format.
	StartDate *string `json:"start_date,omitempty"`
}

func (o *SourcePlausibleUpdate) GetAPIKey() string {
	if o == nil {
		return ""
	}
	return o.APIKey
}

func (o *SourcePlausibleUpdate) GetAPIURL() *string {
	if o == nil {
		return nil
	}
	return o.APIURL
}

func (o *SourcePlausibleUpdate) GetSiteID() string {
	if o == nil {
		return ""
	}
	return o.SiteID
}

func (o *SourcePlausibleUpdate) GetStartDate() *string {
	if o == nil {
		return nil
	}
	return o.StartDate
}
