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

package shared

import (
	"github.com/airbytehq/terraform-provider-airbyte/internal/sdk/internal/utils"
	"github.com/airbytehq/terraform-provider-airbyte/internal/sdk/types"
)

type SourceBrazeUpdate struct {
	// Braze REST API key
	APIKey string `json:"api_key"`
	// Rows after this date will be synced
	StartDate types.Date `json:"start_date"`
	// Braze REST API endpoint
	URL string `json:"url"`
}

func (s SourceBrazeUpdate) MarshalJSON() ([]byte, error) {
	return utils.MarshalJSON(s, "", false)
}

func (s *SourceBrazeUpdate) UnmarshalJSON(data []byte) error {
	if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
		return err
	}
	return nil
}

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

func (o *SourceBrazeUpdate) GetStartDate() types.Date {
	if o == nil {
		return types.Date{}
	}
	return o.StartDate
}

func (o *SourceBrazeUpdate) GetURL() string {
	if o == nil {
		return ""
	}
	return o.URL
}
