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