// 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 SourceMuxUpdate struct {
	Password *string `json:"password,omitempty"`
	// The playback id for your video asset shown in website details
	PlaybackID *string   `json:"playback_id,omitempty"`
	StartDate  time.Time `json:"start_date"`
	Username   string    `json:"username"`
}

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

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

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

func (o *SourceMuxUpdate) GetPlaybackID() *string {
	if o == nil {
		return nil
	}
	return o.PlaybackID
}

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

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