// 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 SourceWordpressUpdate struct {
	// The domain of the WordPress site. Example: my-wordpress-website.host.com
	Domain string `json:"domain"`
	// Placeholder for basic HTTP auth password - should be set to empty string
	Password *string `default:"x" json:"password"`
	// Minimal Date to Retrieve Records when stream allow incremental.
	StartDate time.Time `json:"start_date"`
	// Placeholder for basic HTTP auth username - should be set to empty string
	Username *string `default:"x" json:"username"`
}

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

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

func (o *SourceWordpressUpdate) GetDomain() string {
	if o == nil {
		return ""
	}
	return o.Domain
}

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

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

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