code: func (s *UpdateModelInput) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "UpdateModelInput"}
  	if s.ApiId == nil {
  		invalidParams.Add(request.NewErrParamRequired("ApiId"))
  	}
  	if s.ApiId != nil && len(*s.ApiId) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("ApiId", 1))
  	}
  	if s.ModelId == nil {
  		invalidParams.Add(request.NewErrParamRequired("ModelId"))
  	}
  	if s.ModelId != nil && len(*s.ModelId) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("ModelId", 1))
  	}
  
  	if invalidParams.Len() > 0 {
  		return invalidParams
  	}
  	return nil
  }
docs: // Validate inspects the fields of the type to determine if they are valid.