code: func (s *PauseStateScheduleActionSettings) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "PauseStateScheduleActionSettings"}
  	if s.Pipelines != nil {
  		for i, v := range s.Pipelines {
  			if v == nil {
  				continue
  			}
  			if err := v.Validate(); err != nil {
  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Pipelines", i), err.(request.ErrInvalidParams))
  			}
  		}
  	}
  
  	if invalidParams.Len() > 0 {
  		return invalidParams
  	}
  	return nil
  }
docs: // Validate inspects the fields of the type to determine if they are valid.