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

package shared

type DestinationTypesenseCreateRequest struct {
	// Name of the destination e.g. dev-mysql-instance.
	Name string `json:"name"`
	// The UUID of the connector definition. One of configuration.destinationType or definitionId must be provided.
	DefinitionID  *string              `json:"definitionId,omitempty"`
	WorkspaceID   string               `json:"workspaceId"`
	Configuration DestinationTypesense `json:"configuration"`
}

func (o *DestinationTypesenseCreateRequest) GetName() string {
	if o == nil {
		return ""
	}
	return o.Name
}

func (o *DestinationTypesenseCreateRequest) GetDefinitionID() *string {
	if o == nil {
		return nil
	}
	return o.DefinitionID
}

func (o *DestinationTypesenseCreateRequest) GetWorkspaceID() string {
	if o == nil {
		return ""
	}
	return o.WorkspaceID
}

func (o *DestinationTypesenseCreateRequest) GetConfiguration() DestinationTypesense {
	if o == nil {
		return DestinationTypesense{}
	}
	return o.Configuration
}
