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

package shared

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

type SourceKyveUpdate struct {
	// The IDs of the KYVE storage pool you want to archive. (Comma separated)
	PoolIds string `json:"pool_ids"`
	// The start-id defines, from which bundle id the pipeline should start to extract the data. (Comma separated)
	StartIds string `json:"start_ids"`
	// URL to the KYVE Chain API.
	URLBase *string `default:"https://api.kyve.network" json:"url_base"`
}

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

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

func (o *SourceKyveUpdate) GetPoolIds() string {
	if o == nil {
		return ""
	}
	return o.PoolIds
}

func (o *SourceKyveUpdate) GetStartIds() string {
	if o == nil {
		return ""
	}
	return o.StartIds
}

func (o *SourceKyveUpdate) GetURLBase() *string {
	if o == nil {
		return nil
	}
	return o.URLBase
}
