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

package shared

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

type SourceThriveLearningUpdate struct {
	Password  *string   `json:"password,omitempty"`
	StartDate time.Time `json:"start_date"`
	// Your website Tenant ID (eu-west-000000 please contact support for your tenant)
	Username string `json:"username"`
}

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

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

func (o *SourceThriveLearningUpdate) GetPassword() *string {
	if o == nil {
		return nil
	}
	return o.Password
}

func (o *SourceThriveLearningUpdate) GetStartDate() time.Time {
	if o == nil {
		return time.Time{}
	}
	return o.StartDate
}

func (o *SourceThriveLearningUpdate) GetUsername() string {
	if o == nil {
		return ""
	}
	return o.Username
}
