// This file is auto-generated, don't edit it. Thanks.
package client

import (
	"github.com/alibabacloud-go/tea/dara"
)

type iCreateRoutineRequest interface {
	dara.Model
	String() string
	GoString() string
	SetDescription(v string) *CreateRoutineRequest
	GetDescription() *string
	SetHasAssets(v bool) *CreateRoutineRequest
	GetHasAssets() *bool
	SetName(v string) *CreateRoutineRequest
	GetName() *string
}

type CreateRoutineRequest struct {
	// The description of the Edge Routine.
	//
	// example:
	//
	// the description of this routine
	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
	// Specifies whether the Edge Routine contains asset files.
	//
	// example:
	//
	// false
	HasAssets *bool `json:"HasAssets,omitempty" xml:"HasAssets,omitempty"`
	// The name of the Edge Routine. The name must be unique within the same account.
	//
	// This parameter is required.
	//
	// example:
	//
	// test-routine1
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
}

func (s CreateRoutineRequest) String() string {
	return dara.Prettify(s)
}

func (s CreateRoutineRequest) GoString() string {
	return s.String()
}

func (s *CreateRoutineRequest) GetDescription() *string {
	return s.Description
}

func (s *CreateRoutineRequest) GetHasAssets() *bool {
	return s.HasAssets
}

func (s *CreateRoutineRequest) GetName() *string {
	return s.Name
}

func (s *CreateRoutineRequest) SetDescription(v string) *CreateRoutineRequest {
	s.Description = &v
	return s
}

func (s *CreateRoutineRequest) SetHasAssets(v bool) *CreateRoutineRequest {
	s.HasAssets = &v
	return s
}

func (s *CreateRoutineRequest) SetName(v string) *CreateRoutineRequest {
	s.Name = &v
	return s
}

func (s *CreateRoutineRequest) Validate() error {
	return dara.Validate(s)
}
